Ignore:
Timestamp:
Feb 24, 2015, 12:57:35 PM (5 years ago)
Author:
cameron
Message:

-print-pablo now prints out final Pablo code only

File:
1 edited

Legend:

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

    r4510 r4513  
    4444static cl::opt<bool> PrintUTF8REs("print-utf8-REs", cl::init(false), cl::desc("print out UTF-8 REs"), cl::cat(cRegexOutputOptions));
    4545static cl::opt<bool> PrintSimplifiedREs("print-simplified-REs", cl::init(false), cl::desc("print out final simplified REs"), cl::cat(cRegexOutputOptions));
    46 static cl::opt<bool> PrintAllPablo("print-pablo", cl::init(false), cl::desc("print Pablo code passes"), cl::cat(dPabloDumpOptions));
    4746static cl::opt<bool> PrintCompiledCCcode("print-CC-pablo", cl::init(false), cl::desc("print Pablo output from character class compiler"), cl::cat(dPabloDumpOptions));
    4847static cl::opt<bool> PrintCompiledREcode("print-RE-pablo", cl::init(false), cl::desc("print Pablo output from the regular expression compiler"), cl::cat(dPabloDumpOptions));
    49 static cl::opt<bool> PrintOptimizedREcode("print-optimized-pablo", cl::init(false), cl::desc("print final optimized Pablo code"), cl::cat(dPabloDumpOptions));
     48static cl::opt<bool> PrintOptimizedREcode("print-pablo", cl::init(false), cl::desc("print final optimized Pablo code"), cl::cat(dPabloDumpOptions));
    5049
    5150
     
    125124   
    126125    auto basisBits = cc_compiler.getBasisBits(nameMap);
    127     if (PrintAllPablo || PrintCompiledCCcode) {
     126    if (PrintCompiledCCcode) {
    128127      //Print to the terminal the AST that was generated by the character class compiler.
    129128      std::cerr << "CC AST:" << std::endl;
     
    134133    re_compiler.initializeRequiredStreams(cc_compiler);
    135134    re_compiler.finalizeMatchResult(re_compiler.compile(re_ast));
    136     if (PrintAllPablo || PrintCompiledREcode) {
     135    if (PrintCompiledREcode) {
    137136      //Print to the terminal the AST that was generated by the pararallel bit-stream compiler.
    138137      std::cerr << "Initial Pablo AST:\n";
     
    143142    Simplifier::optimize(main);
    144143
    145     if (PrintAllPablo || PrintOptimizedREcode) {
     144    if (PrintOptimizedREcode) {
    146145      //Print to the terminal the AST that was generated by the pararallel bit-stream compiler.
    147146      std::cerr << "Final Pablo AST:\n";
Note: See TracChangeset for help on using the changeset viewer.