[llvm] 0f45e45 - Ensure `lli --force-interpreter` disables the OrcJIT too (#73717)

via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 13:18:53 PST 2023


Author: Alex Light
Date: 2023-12-05T13:18:48-08:00
New Revision: 0f45e45847a5f2969b8021c787a566531fc96473

URL: https://github.com/llvm/llvm-project/commit/0f45e45847a5f2969b8021c787a566531fc96473
DIFF: https://github.com/llvm/llvm-project/commit/0f45e45847a5f2969b8021c787a566531fc96473.diff

LOG: Ensure `lli --force-interpreter` disables the OrcJIT too (#73717)

Unless the OrcJIT was explicitly disabled it would be used by lli even
if the --force-interpreter flag was passed.

Added: 
    

Modified: 
    llvm/tools/lli/lli.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp
index 9d95cbcb29c25..36fca4c40ed06 100644
--- a/llvm/tools/lli/lli.cpp
+++ b/llvm/tools/lli/lli.cpp
@@ -453,7 +453,7 @@ int main(int argc, char **argv, char * const *envp) {
     exit(1);
   }
 
-  if (UseJITKind == JITKind::MCJIT)
+  if (UseJITKind == JITKind::MCJIT || ForceInterpreter)
     disallowOrcOptions();
   else
     return runOrcJIT(argv[0]);


        


More information about the llvm-commits mailing list