Ignore:
Timestamp:
Feb 2, 2017, 9:17:55 PM (2 years ago)
Author:
cameron
Message:

Debug Options: SerializeThreads?; unify ShowIR, ShowPablo?, ShowREs, ShowASM

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

Legend:

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

    r5267 r5295  
    4141   
    4242static cl::bits<PabloDebugFlags>
    43 DebugOptions(cl::values(clEnumVal(PrintOptimizedREcode, "print final optimized Pablo code"),
    44                         clEnumVal(PrintCompiledCCcode, "print Pablo output from character class compiler"),
    45                         clEnumVal(PrintCompiledREcode, "print Pablo output from the regular expression compiler"),
     43DebugOptions(cl::values(clEnumVal(ShowPablo, "Print generated Pablo code"),
     44                        clEnumVal(ShowOptimizedPablo, "Print optimizeed Pablo code"),
     45                        clEnumVal(ShowUnloweredPablo, "Print Pablo code prior to lowering."),
    4646                        clEnumVal(DumpTrace, "Generate dynamic traces of executed Pablo assignments."),
    47                         clEnumVal(PrintUnloweredCode, "print Pablo output prior to lowering."),
    4847                        clEnumValEnd), cl::cat(PabloOptions));
    4948   
     
    171170void pablo_function_passes(PabloKernel * kernel) {
    172171   
    173     if (DebugOptions.isSet(PrintCompiledREcode)) {
     172    if (DebugOptions.isSet(ShowPablo)) {
    174173        //Print to the terminal the AST that was generated by the pararallel bit-stream compiler.
    175174        errs() << "Initial Pablo AST:\n";
     
    237236    }
    238237#ifdef ENABLE_MULTIPLEXING
    239     if (DebugOptions.isSet(PrintUnloweredCode)) {
     238    if (DebugOptions.isSet(ShowUnloweredPablo)) {
    240239        //Print to the terminal the AST that was generated by the pararallel bit-stream compiler.
    241240        errs() << "Unlowered Pablo AST:\n";
     
    259258    const timestamp_t optimization_end = read_cycle_counter();
    260259#endif
    261     if (DebugOptions.isSet(PrintOptimizedREcode)) {
     260    if (DebugOptions.isSet(ShowOptimizedPablo)) {
    262261        if (PabloOutputFilename.empty()) {
    263262            //Print to the terminal the AST that was generated by the pararallel bit-stream compiler.
  • icGREP/icgrep-devel/icgrep/pablo/pablo_toolchain.h

    r5267 r5295  
    1414
    1515enum PabloDebugFlags {
    16     PrintOptimizedREcode, PrintCompiledCCcode, PrintCompiledREcode, DumpTrace, PrintUnloweredCode
     16    ShowPablo, ShowOptimizedPablo, ShowUnloweredPablo, DumpTrace,
    1717};
    1818
Note: See TracChangeset for help on using the changeset viewer.