Ignore:
Timestamp:
Jul 20, 2015, 3:43:57 PM (4 years ago)
Author:
nmedfort
Message:

Added optional CMake command -DDISABLE_PREGENERATED_UCD_FUNCTIONS.

File:
1 edited

Legend:

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

    r4684 r4686  
    5252
    5353static cl::OptionCategory eIRDumpOptions("LLVM IR Dump Options", "These options control dumping of LLVM IR.");
    54 static cl::opt<bool> DumpGeneratedIR("dump-generated-IR", cl::init(false), cl::desc("print LLVM IR generated by RE compilation"), cl::cat(eIRDumpOptions));
     54static cl::opt<bool> DumpGeneratedIR("dump-generated-IR", cl::init(false), cl::desc("Print LLVM IR generated by Pablo Compiler."), cl::cat(eIRDumpOptions));
    5555
    5656static cl::OptionCategory fTracingOptions("Run-time Tracing Options", "These options control execution traces.");
     
    131131        throw std::runtime_error("Could not create ExecutionEngine: " + errMessage);
    132132    }
    133     DeclareFunctions();
     133    DeclareDebugFunctions();
    134134
    135135    auto func = compile(function, mMod);
     
    334334void PabloCompiler::Examine(PabloBlock & block) {
    335335    for (Statement * stmt : block) {
    336         if (Call * call = dyn_cast<Call>(stmt)) {
    337             mCalleeMap.insert(std::make_pair(call->getCallee(), nullptr));
    338         }
    339         else if (If * ifStatement = dyn_cast<If>(stmt)) {
     336        if (If * ifStatement = dyn_cast<If>(stmt)) {
    340337            Examine(ifStatement->getBody());
    341338        }
     
    348345}
    349346
    350 inline void PabloCompiler::DeclareFunctions() {
     347inline void PabloCompiler::DeclareDebugFunctions() {
    351348    if (DumpTrace || TraceNext) {
    352349        //This function can be used for testing to print the contents of a register from JIT'd code to the terminal window.
Note: See TracChangeset for help on using the changeset viewer.