Skip to content

Commit

Permalink
[Orc] Let LLJIT default to JITLink for ELF-based ARM targets (#77313)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
weliveindetail authored Jan 23, 2024
1 parent 15fdc76 commit e4f0829
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,12 @@ Error LLJITBuilderState::prepareForConstruction() {
case Triple::aarch64:
UseJITLink = !TT.isOSBinFormatCOFF();
break;
case Triple::arm:
case Triple::armeb:
case Triple::thumb:
case Triple::thumbeb:
UseJITLink = TT.isOSBinFormatELF();
break;
case Triple::x86_64:
UseJITLink = !TT.isOSBinFormatCOFF();
break;
Expand Down

0 comments on commit e4f0829

Please sign in to comment.