Skip to content

Commit e4f0829

Browse files
[Orc] Let LLJIT default to JITLink for ELF-based ARM targets (#77313)
The JITLink AArch32 backend reached feature-parity with RuntimeDyld on ELF-based systems. This patch changes the default JIT-linker in Orc's LLJIT for these platforms. This allows us to run clang-repl with JITLink on ARM and use all the features we had with RuntimeDyld before. All existing tests for clang-repl are passing.
1 parent 15fdc76 commit e4f0829

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/lib/ExecutionEngine/Orc/LLJIT.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,12 @@ Error LLJITBuilderState::prepareForConstruction() {
734734
case Triple::aarch64:
735735
UseJITLink = !TT.isOSBinFormatCOFF();
736736
break;
737+
case Triple::arm:
738+
case Triple::armeb:
739+
case Triple::thumb:
740+
case Triple::thumbeb:
741+
UseJITLink = TT.isOSBinFormatELF();
742+
break;
737743
case Triple::x86_64:
738744
UseJITLink = !TT.isOSBinFormatCOFF();
739745
break;

0 commit comments

Comments
 (0)