Ignore:
Timestamp:
Feb 29, 2016, 3:09:51 PM (4 years ago)
Author:
lindanl
Message:

Use kernel state methods.

File:
1 edited

Legend:

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

    r4942 r4945  
    149149    struct Outputs outputs;
    150150    mFunction = mKBuilder->getDoBlockFunction();
     151    Value * kernelStuctParam = mKBuilder->getKernelStructParam();
    151152
    152153    mCarryManager->initialize_setPtrs(mKBuilder);
     
    160161        compileBlock(mainScope);
    161162
    162         Value * filePos = iBuilder->CreateAdd(mKBuilder->getKernelInternalState(mFilePosIdx), iBuilder->getInt64(iBuilder->getBitBlockWidth()));
    163         mKBuilder->changeKernelInternalState(mFilePosIdx, filePos);
     163        Value * filePos = iBuilder->CreateAdd(mKBuilder->getKernelInternalState(kernelStuctParam, mFilePosIdx), iBuilder->getInt64(iBuilder->getBitBlockWidth()));
     164        mKBuilder->changeKernelInternalState(kernelStuctParam, mFilePosIdx, filePos);
    164165
    165166        mCarryManager->set_BlockNo(mKBuilder);
Note: See TracChangeset for help on using the changeset viewer.