mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[ORC] Add case statements for AArch64 to the local stub and callback manager
creation functions. This should allow lli to lazily execute code using OrcLazyJIT on AArch64. llvm-svn: 310938
This commit is contained in:
parent
5e33d4eb27
commit
74ce2c9ff1
@ -28,6 +28,11 @@ createLocalCompileCallbackManager(const Triple &T,
|
||||
switch (T.getArch()) {
|
||||
default: return nullptr;
|
||||
|
||||
case Triple::aarch64: {
|
||||
typedef orc::LocalJITCompileCallbackManager<orc::OrcAArch64> CCMgrT;
|
||||
return llvm::make_unique<CCMgrT>(ErrorHandlerAddress);
|
||||
}
|
||||
|
||||
case Triple::x86: {
|
||||
typedef orc::LocalJITCompileCallbackManager<orc::OrcI386> CCMgrT;
|
||||
return llvm::make_unique<CCMgrT>(ErrorHandlerAddress);
|
||||
@ -42,6 +47,7 @@ createLocalCompileCallbackManager(const Triple &T,
|
||||
return llvm::make_unique<CCMgrT>(ErrorHandlerAddress);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -50,6 +56,12 @@ createLocalIndirectStubsManagerBuilder(const Triple &T) {
|
||||
switch (T.getArch()) {
|
||||
default: return nullptr;
|
||||
|
||||
case Triple::aarch64:
|
||||
return [](){
|
||||
return llvm::make_unique<
|
||||
orc::LocalIndirectStubsManager<orc::OrcAArch64>>();
|
||||
};
|
||||
|
||||
case Triple::x86:
|
||||
return [](){
|
||||
return llvm::make_unique<
|
||||
@ -68,6 +80,7 @@ createLocalIndirectStubsManagerBuilder(const Triple &T) {
|
||||
orc::LocalIndirectStubsManager<orc::OrcX86_64_SysV>>();
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user