Changeset 4993


Ignore:
Timestamp:
Mar 29, 2016, 9:13:09 AM (18 months ago)
Author:
cameron
Message:

Clean ups of casefold demo app.

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

Legend:

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

    r4990 r4993  
    102102
    103103//
    104 //  Function replacing re2pablo_compiler.
     104//  Generate Pablo code for case folding.
    105105//
    106106
     
    108108    pablo::PabloFunction * function = pablo::PabloFunction::Create("casefold_block", 8, 8);
    109109    cc::CC_Compiler cc_compiler(*function, encoding);
    110    
    111110    pablo::PabloBuilder pBuilder(cc_compiler.getBuilder().getPabloBlock(), cc_compiler.getBuilder());
    112111    const std::vector<pablo::Var *> basis_bits = cc_compiler.getBasisBits();
    113112   
    114    
    115     pablo::PabloAST * alpha = cc_compiler.compileCC(re::makeCC(re::makeCC(0x41, 0x5A), re::makeCC(0x61,0x7A)));  // ASCII A-Z
    116    
    117    
     113    pablo::PabloAST * alpha = cc_compiler.compileCC(re::makeCC(0x41, 0x5A));  // ASCII A-Z
    118114   
    119115    function->setResult(0, pBuilder.createAssign("b0", basis_bits[0]));
    120116    function->setResult(1, pBuilder.createAssign("b1", basis_bits[1]));
    121117    function->setResult(2, pBuilder.createAssign("b2", pBuilder.createXor(basis_bits[2], alpha)));
    122     //function->setResult(2, pBuilder.createAssign("b2", basis_bits[2]));
    123118    function->setResult(3, pBuilder.createAssign("b3", basis_bits[3]));
    124119    function->setResult(4, pBuilder.createAssign("b4", basis_bits[4]));
     
    233228
    234229    for (unsigned i = 0; i != inputFiles.size(); ++i) {
    235         std::cerr << inputFiles[i] << " beginning\n";
    236230        doCaseFold(fn_ptr, inputFiles[i]);
    237231    }
  • icGREP/icgrep-devel/icgrep/kernels/p2s_kernel.cpp

    r4988 r4993  
    5151    }
    5252    kBuilder->finalize();
    53     m->dump();
    5453}
    5554
Note: See TracChangeset for help on using the changeset viewer.