summaryrefslogtreecommitdiff
path: root/tools/lli
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-08-08 08:12:06 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-08-08 08:12:06 +0000
commite1a4eda990a765952434d39d7c14299d1d4614a5 (patch)
tree0c466fb4ea156f4c6a7c7a4a6191bac280b6bf2c /tools/lli
parent502f20b17ede40de84503010b7699b328a4f2867 (diff)
downloadllvm-e1a4eda990a765952434d39d7c14299d1d4614a5.tar.gz
llvm-e1a4eda990a765952434d39d7c14299d1d4614a5.tar.bz2
llvm-e1a4eda990a765952434d39d7c14299d1d4614a5.tar.xz
Add -fast command line option to lli. It enables fast codegen path.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54524 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lli')
-rw-r--r--tools/lli/lli.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp
index 67b1424d83..74ea3dd415 100644
--- a/tools/lli/lli.cpp
+++ b/tools/lli/lli.cpp
@@ -41,6 +41,12 @@ namespace {
cl::opt<bool> ForceInterpreter("force-interpreter",
cl::desc("Force interpretation: disable JIT"),
cl::init(false));
+
+ cl::opt<bool> Fast("fast",
+ cl::desc("Generate code quickly, "
+ "potentially sacrificing code quality"),
+ cl::init(false));
+
cl::opt<std::string>
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);