Add -fast command line option to lli. It enables fast codegen path.

llvm-svn: 54524
This commit is contained in:
Evan Cheng 2008-08-08 08:12:06 +00:00
parent 7ff05bf541
commit 06d988eaa3
1 changed files with 7 additions and 1 deletions

View File

@ -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);