Ignore:
Timestamp:
Feb 3, 2017, 1:25:53 PM (2 years ago)
Author:
nmedfort
Message:

Partial removal of BlockNo?

File:
1 edited

Legend:

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

    r5296 r5297  
    3838}
    3939
    40 void PrintableBits::generateDoBlockMethod(Value * blockNo) {   
    41     Value * strmPtr = getStream("bitStream", blockNo, iBuilder->getInt32(0));
     40void PrintableBits::generateDoBlockMethod() {
     41    Value * strmPtr = getStream("bitStream", iBuilder->getInt32(0));
    4242   
    4343    Value * bitStrmVal = iBuilder->CreateBlockAlignedLoad(strmPtr);
     
    5757   
    5858    for (unsigned j = 0; j < 8; ++j) {
    59         Value * ptr = getStream("byteStream", blockNo, iBuilder->getInt32(0), iBuilder->getInt32(j));
     59        Value * ptr = getStream("byteStream", iBuilder->getInt32(0), iBuilder->getInt32(j));
    6060        iBuilder->CreateBlockAlignedStore(iBuilder->bitCast(printableBytes[j]), ptr);
    6161    }
     
    7878}
    7979
    80 void SelectStream::generateDoBlockMethod(Value * blockNo) {   
     80void SelectStream::generateDoBlockMethod() {
    8181    if (mStreamIndex >= mSizeInputStreamSet)
    8282        llvm::report_fatal_error("Stream index out of bounds.\n");
    8383   
    84     Value * strmPtr = getStream("bitStreams", blockNo, iBuilder->getInt32(mStreamIndex));
     84    Value * strmPtr = getStream("bitStreams", iBuilder->getInt32(mStreamIndex));
    8585    Value * bitStrmVal = iBuilder->CreateBlockAlignedLoad(strmPtr);
    8686
    87     Value * ptr = getStream("bitStream", blockNo, iBuilder->getInt32(0));
     87    Value * ptr = getStream("bitStream", iBuilder->getInt32(0));
    8888    iBuilder->CreateBlockAlignedStore(bitStrmVal, ptr);
    8989}
Note: See TracChangeset for help on using the changeset viewer.