Ignore:
Timestamp:
Feb 10, 2017, 1:48:34 PM (3 years ago)
Author:
nmedfort
Message:

Adjusted pablo compiler to use getInputStream and getOutputStream when accessing packed stream fields.

File:
1 edited

Legend:

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

    r5307 r5310  
    6060
    6161    if (mHasLoop) {
    62         mKernel->addScalar(iBuilder->getInt32Ty(), "loopSelector");
     62        mKernel->addScalar(iBuilder->getInt32Ty(), "selector");
    6363    }
    6464}
     
    8282
    8383    if (mHasLoop) {
    84         mLoopSelector = mKernel->getScalarField("loopSelector");
     84        mLoopSelector = mKernel->getScalarField("selector");
    8585    }
    8686}
     
    9191void CarryManager::finalizeCodeGen() {
    9292    if (mHasLoop) {
    93         mKernel->setScalarField("loopSelector", iBuilder->CreateXor(mLoopSelector, iBuilder->getInt32(1)));
     93        mKernel->setScalarField("selector", iBuilder->CreateXor(mLoopSelector, iBuilder->getInt32(1)));
    9494    }
    9595}
Note: See TracChangeset for help on using the changeset viewer.