From 06d988eaa369830e20f08ed81f15a02076852dfa Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Fri, 8 Aug 2008 08:12:06 +0000 Subject: [PATCH] Add -fast command line option to lli. It enables fast codegen path. llvm-svn: 54524 --- llvm/tools/lli/lli.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp index 67b1424d839f..74ea3dd41542 100644 --- a/llvm/tools/lli/lli.cpp +++ b/llvm/tools/lli/lli.cpp @@ -41,6 +41,12 @@ namespace { cl::opt ForceInterpreter("force-interpreter", cl::desc("Force interpretation: disable JIT"), cl::init(false)); + + cl::opt Fast("fast", + cl::desc("Generate code quickly, " + "potentially sacrificing code quality"), + cl::init(false)); + cl::opt TargetTriple("mtriple", cl::desc("Override target triple for module")); @@ -106,7 +112,7 @@ int main(int argc, char **argv, char * const *envp) { if (!TargetTriple.empty()) Mod->setTargetTriple(TargetTriple); - EE = ExecutionEngine::create(MP, ForceInterpreter, &ErrorMsg); + EE = ExecutionEngine::create(MP, ForceInterpreter, &ErrorMsg, Fast); if (!EE && !ErrorMsg.empty()) { std::cerr << argv[0] << ":error creating EE: " << ErrorMsg << "\n"; exit(1);