Ignore:
Timestamp:
May 23, 2015, 7:45:50 AM (4 years ago)
Author:
cameron
Message:

Use LLVM 3.6 by default, or specify USE_LLVM_3_5

File:
1 edited

Legend:

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

    r4568 r4572  
    6565PabloCompiler::PabloCompiler(const std::vector<Var*> & basisBits)
    6666: mBasisBits(basisBits)
     67#ifdef USE_LLVM_3_5
    6768, mMod(new Module("icgrep", getGlobalContext()))
     69#else
     70, mModOwner(make_unique<Module>("icgrep", getGlobalContext()))
     71, mMod(mModOwner.get())
     72#endif
    6873, mBasicBlock(nullptr)
    6974, mExecutionEngine(nullptr)
     
    123128    mCarryDataSummaryIdx.resize(totalCarryDataSize);
    124129    std::string errMessage;
     130#ifdef USE_LLVM_3_5
    125131    EngineBuilder builder(mMod);
     132#else
     133    EngineBuilder builder(std::move(mModOwner));
     134#endif
    126135    builder.setErrorStr(&errMessage);
    127136    builder.setMCPU(sys::getHostCPUName());
     137#ifdef USE_LLVM_3_5
    128138    builder.setUseMCJIT(true);
     139#endif
    129140    builder.setOptLevel(mMaxWhileDepth ? CodeGenOpt::Level::Less : CodeGenOpt::Level::None);
    130141    mExecutionEngine = builder.create();
Note: See TracChangeset for help on using the changeset viewer.