Ignore:
Timestamp:
Oct 4, 2014, 1:14:35 PM (5 years ago)
Author:
nmedfort
Message:

First stage of code generator revamp

File:
1 edited

Legend:

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

    r4207 r4210  
    367367}
    368368
    369 LLVM_Gen_RetVal LLVM_Generator::Generate_LLVMIR(CodeGenState cg_state, CodeGenState subexpression_cg_state, List cc_cgo_stmtsl)
     369LLVM_Gen_RetVal LLVM_Generator::Generate_LLVMIR(const CodeGenState & cg_state)
    370370{
    371371    //Create the module.
     
    388388    DefineTypes();
    389389    DeclareFunctions();
    390     DeclareCallFunctions(cg_state.stmtsl);
     390    DeclareCallFunctions(cg_state.expressions());
    391391
    392392    Function::arg_iterator args = mFunc_process_block->arg_begin();
     
    400400    //Create the carry queue.
    401401    mCarryQueueIdx = 0;
    402     mCarryQueueSize = LLVM_Generator_Helper::CarryCount_PabloStatements(subexpression_cg_state.stmtsl);
    403     mCarryQueueSize += LLVM_Generator_Helper::CarryCount_PabloStatements(cg_state.stmtsl);
     402    mCarryQueueSize += LLVM_Generator_Helper::CarryCount_PabloStatements(cg_state.expressions());
    404403    /* The following may be needed if carry-generating operations are ever inserted
    405404       by the character class compiler.
     
    423422
    424423    //Generate the IR instructions for the function.
    425 
    426     Generate_PabloStatements(cc_cgo_stmtsl);
    427     Generate_PabloStatements(subexpression_cg_state.stmtsl);
    428     Generate_PabloStatements(cg_state.stmtsl);
     424    Generate_PabloStatements(cg_state.expressions());
    429425    SetReturnMarker(cg_state.newsym, 0);
    430426    SetReturnMarker(m_name_map.find("LineFeed")->second, 1);
Note: See TracChangeset for help on using the changeset viewer.