mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
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
This commit is contained in:
parent
502f20b17e
commit
e1a4eda990
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user