Ignore:
Timestamp:
Oct 10, 2016, 2:53:36 PM (3 years ago)
Author:
faldebey
Message:

LLVM-3.6 Support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/toolchain.cpp

    r5175 r5186  
    4040static cl::opt<bool> DumpGeneratedIR("dump-generated-IR", cl::init(false), cl::desc("Print LLVM IR generated by Pablo Compiler."), cl::cat(CodeGenOptions));
    4141static cl::opt<std::string> IROutputFilename("dump-generated-IR-output", cl::init(""), cl::desc("output IR filename"), cl::cat(CodeGenOptions));
     42#if LLVM_VERSION_MINOR > 6
    4243static cl::opt<bool> DumpASM("DumpASM", cl::init(false), cl::desc("Print Assembly Code."), cl::cat(CodeGenOptions));
     44#endif
    4345static cl::opt<std::string> ASMOutputFilename("asm-output", cl::init(""), cl::desc("output ASM filename"), cl::cat(CodeGenOptions));
    4446static cl::opt<bool> AsmVerbose("asm-verbose",
     
    127129}
    128130
    129 
     131#if LLVM_VERSION_MINOR > 6
    130132void WriteAssembly (llvm::TargetMachine *TM, Module * m) {
    131133    llvm::legacy::PassManager PM;
     
    147149    }
    148150}
     151#endif
    149152
    150153ExecutionEngine * JIT_to_ExecutionEngine (Module * m) {
     
    188191        }
    189192    }
     193#if LLVM_VERSION_MINOR > 6
    190194
    191195    if (codegen::DumpASM) {
    192196      WriteAssembly(builder.selectTarget(), m);
    193197    }
     198#endif
    194199    ExecutionEngine * engine = builder.create();
    195200    if (engine == nullptr) {
Note: See TracChangeset for help on using the changeset viewer.