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

LLVM-3.6 Support

Location:
icGREP/icgrep-devel/icgrep
Files:
2 edited

Legend:

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

    r5180 r5186  
    1010#include <llvm/Support/ErrorHandling.h>
    1111#include <llvm/Support/Signals.h>
     12#include <llvm/Config/config.h>
    1213#include <re/re_alt.h>
    1314#include <re/re_parser.h>
     
    321322int main(int argc, char *argv[]) {
    322323    llvm::install_fatal_error_handler(&icgrep_error_handler);
     324#if LLVM_VERSION_MINOR > 6
    323325    cl::HideUnrelatedOptions(ArrayRef<const cl::OptionCategory *>{&LegacyGrepOptions, &EnhancedGrepOptions, re::re_toolchain_flags(), pablo::pablo_toolchain_flags(), codegen::codegen_flags()});
     326#endif
    324327    cl::ParseCommandLineOptions(argc, argv);
    325328#ifdef FUTURE
  • 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.