Ignore:
Timestamp:
Dec 18, 2014, 1:08:55 PM (5 years ago)
Author:
cameron
Message:

-print-REs, -print-pablo, -dump-generated-IR command-line options

File:
1 edited

Legend:

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

    r4346 r4348  
    5959
    6060//#define DUMP_GENERATED_IR
     61#include "llvm/Support/CommandLine.h"
     62static cl::opt<bool> DumpGeneratedIR("dump-generated-IR", cl::init(false), cl::desc("print LLVM IR generated by RE compilation"));
    6163
    6264extern "C" {
     
    237239    ReturnInst::Create(mMod->getContext(), mBasicBlock);
    238240
    239     //Un-comment this line in order to display the IR that has been generated by this module.
    240     #if defined(DUMP_GENERATED_IR)
    241     mMod->dump();
    242     #endif
     241    //Display the IR that has been generated by this module.
     242    if (DumpGeneratedIR) {
     243      mMod->dump();
     244    }
    243245
    244246
Note: See TracChangeset for help on using the changeset viewer.