mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
LLVM fix (skylake) (#2269)
This commit is contained in:
parent
fbf8231642
commit
fb56c14853
@ -4,7 +4,7 @@ dist: trusty
|
|||||||
|
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
- osx
|
# - osx
|
||||||
|
|
||||||
osx_image: xcode6.4
|
osx_image: xcode6.4
|
||||||
|
|
||||||
|
@ -245,13 +245,14 @@ jit_compiler::jit_compiler(std::unique_ptr<llvm::Module>&& _module, std::unorder
|
|||||||
llvm::InitializeNativeTarget();
|
llvm::InitializeNativeTarget();
|
||||||
llvm::InitializeNativeTargetAsmPrinter();
|
llvm::InitializeNativeTargetAsmPrinter();
|
||||||
LLVMLinkInMCJIT();
|
LLVMLinkInMCJIT();
|
||||||
|
const auto _cpu = llvm::sys::getHostCPUName();
|
||||||
|
|
||||||
m_engine.reset(llvm::EngineBuilder(std::move(_module))
|
m_engine.reset(llvm::EngineBuilder(std::move(_module))
|
||||||
.setErrorStr(&result)
|
.setErrorStr(&result)
|
||||||
.setMCJITMemoryManager(std::make_unique<MemoryManager>(std::move(table)))
|
.setMCJITMemoryManager(std::make_unique<MemoryManager>(std::move(table)))
|
||||||
.setOptLevel(llvm::CodeGenOpt::Aggressive)
|
.setOptLevel(llvm::CodeGenOpt::Aggressive)
|
||||||
.setCodeModel((u64)s_memory <= 0x60000000 ? llvm::CodeModel::Small : llvm::CodeModel::Large) // TODO
|
.setCodeModel((u64)s_memory <= 0x60000000 ? llvm::CodeModel::Small : llvm::CodeModel::Large) // TODO
|
||||||
.setMCPU(llvm::sys::getHostCPUName())
|
.setMCPU(_cpu == "skylake" ? "haswell" : _cpu)
|
||||||
.create());
|
.create());
|
||||||
|
|
||||||
if (!m_engine)
|
if (!m_engine)
|
||||||
|
Loading…
Reference in New Issue
Block a user