[PATCH] D98931: [lli] Make -jit-kind=orc the default JIT engine

Stefan Gränitz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 19 02:20:36 PDT 2021


sgraenitz created this revision.
sgraenitz added reviewers: lhames, dblaikie, serge-sans-paille.
sgraenitz requested review of this revision.
Herald added a project: LLVM.

MCJIT served well as the default JIT engine in lli for a long time, but the code is getting old and maintenance efforts don't seem to be in sight. In the meantime Orc became mature enough to fill that gap. The newly added greddy mode is very similar to the execution model of MCJIT. It should work as a drop-in replacement for common JIT tasks.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98931

Files:
  llvm/tools/lli/lli.cpp


Index: llvm/tools/lli/lli.cpp
===================================================================
--- llvm/tools/lli/lli.cpp
+++ llvm/tools/lli/lli.cpp
@@ -99,7 +99,7 @@
 
   cl::opt<JITKind> UseJITKind(
       "jit-kind", cl::desc("Choose underlying JIT kind."),
-      cl::init(JITKind::MCJIT),
+      cl::init(JITKind::Orc),
       cl::values(clEnumValN(JITKind::MCJIT, "mcjit", "MCJIT"),
                  clEnumValN(JITKind::Orc, "orc", "Orc JIT"),
                  clEnumValN(JITKind::OrcLazy, "orc-lazy",


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98931.331801.patch
Type: text/x-patch
Size: 513 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210319/dfaaf31a/attachment-0001.bin>


More information about the llvm-commits mailing list