adding tunable parameters

This commit is contained in:
Philippe Tillet
2019-08-22 19:21:01 -07:00
parent 87072203c1
commit 845c0e5b93
9 changed files with 76 additions and 99 deletions

View File

@@ -106,10 +106,10 @@ void module::compile_llvm_module(llvm::Module* module, const std::string& triple
file_type_t ft) {
init_llvm();
// debug
// llvm::legacy::PassManager pm;
// pm.add(llvm::createPrintModulePass(llvm::outs()));
// pm.add(llvm::createVerifierPass());
// pm.run(*module);
llvm::legacy::PassManager pm;
pm.add(llvm::createPrintModulePass(llvm::outs()));
pm.add(llvm::createVerifierPass());
pm.run(*module);
// create machine
module->setTargetTriple(triple);
std::string error;