Ignore:
Timestamp:
May 8, 2016, 7:01:04 PM (3 years ago)
Author:
cameron
Message:

Add EOFmask internal state value to generated Pablo functions; implement pablo.inFile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/pipeline.cpp

    r5033 r5035  
    211211    Value * EOF_pos = iBuilder->CreateShl(ConstantInt::get(iBuilder->getIntNTy(mBlockSize), 1), remaining);
    212212    EOF_pos = iBuilder->CreateBitCast(EOF_pos, mBitBlockType);
     213    Value * EOF_mask = iBuilder->CreateShl(Constant::getAllOnesValue(iBuilder->getIntNTy(mBlockSize)), remaining);
     214        icGrepInstance->setInternalState("EOFmask", iBuilder->CreateBitCast(EOF_mask, mBitBlockType));
    213215
    214216
Note: See TracChangeset for help on using the changeset viewer.