Ignore:
Timestamp:
Oct 5, 2014, 10:30:15 PM (5 years ago)
Author:
nmedfort
Message:

Removed string based CC lookup in CC Compiler.

File:
1 edited

Legend:

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

    r4214 r4215  
    401401    mCarryQueueIdx = 0;
    402402    mCarryQueueSize += LLVM_Generator_Helper::CarryCount_PabloStatements(cg_state.expressions());
    403     /* The following may be needed if carry-generating operations are ever inserted
    404        by the character class compiler.
    405     mCarryQueueSize += LLVM_Generator_Helper::CarryCount_PabloStatements(cc_cgo_stmtsl);
    406     */
    407 
    408403    mBasicBlock = BasicBlock::Create(mMod->getContext(), "parabix_entry", mFunc_process_block,0);
    409404
     
    637632}
    638633
    639 void LLVM_Generator::DeclareCallFunctions(List stmts) {
     634void LLVM_Generator::DeclareCallFunctions(ExpressionList stmts) {
    640635    for (auto it = stmts.begin(); it != stmts.end(); ++it) {
    641636        DeclareCallFunctions_PabloS(*it);
     
    656651    else if (While * whl = dyn_cast<While>(stmt))
    657652    {
    658         DeclareCallFunctions_PabloE(whl->getExpr());
     653        DeclareCallFunctions_PabloE(whl->getCondition());
    659654        DeclareCallFunctions(whl->getPSList());
    660655    }
     
    870865}
    871866
    872 std::string LLVM_Generator::Generate_PabloStatements(List stmts) {
     867std::string LLVM_Generator::Generate_PabloStatements(ExpressionList stmts) {
    873868    std::string retVal = "";
    874869    for (auto it = stmts.begin(); it != stmts.end(); ++it) {
     
    955950        IRBuilder<> b_cond(whileCondBlock);
    956951
    957         Value* expression_marker_value = Generate_PabloE(whl->getExpr());
     952        Value* expression_marker_value = Generate_PabloE(whl->getCondition());
    958953        Value* int_tobool1 = genBitBlockAny(expression_marker_value);
    959954
Note: See TracChangeset for help on using the changeset viewer.