Ignore:
Timestamp:
Oct 26, 2017, 8:31:35 AM (18 months ago)
Author:
cameron
Message:

createIndexedAdvance

File:
1 edited

Legend:

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

    r5446 r5709  
    302302}
    303303
    304 /// TERNARY CREATE FUNCTION
     304/// TERNARY CREATE FUNCTIONS
    305305
    306306Sel * PabloBlock::createSel(PabloAST * condition, PabloAST * trueExpr, PabloAST * falseExpr, String * name) {
     
    311311    return insertAtInsertionPoint(new (mAllocator) Sel(condition, trueExpr, falseExpr, name, mAllocator));
    312312}
     313
     314IndexedAdvance * PabloBlock::createIndexedAdvance(PabloAST * expr, PabloAST * indexStream, PabloAST * shiftAmount, String * name) {
     315    if (name == nullptr) {
     316        name = makeName("indexed_advance");
     317    }
     318    return insertAtInsertionPoint(new (mAllocator) IndexedAdvance(expr, indexStream, shiftAmount, name, mAllocator));
     319}
     320   
    313321
    314322/** ------------------------------------------------------------------------------------------------------------- *
Note: See TracChangeset for help on using the changeset viewer.