Ignore:
Timestamp:
Nov 2, 2018, 7:18:31 PM (6 months ago)
Author:
nmedfort
Message:

Initial version of PipelineKernel? + revised StreamSet? model.

File:
1 edited

Legend:

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

    r5836 r6184  
    129129    kernel->setCarryDataTy(analyse(iBuilder, mCurrentScope));
    130130
    131     kernel->addScalar(kernel->getCarryDataTy(), "carries");
     131    kernel->addInternalScalar(kernel->getCarryDataTy(), "carries");
    132132
    133133    if (mHasLoop) {
    134         kernel->addScalar(iBuilder->getInt32Ty(), "selector");
     134        kernel->addInternalScalar(iBuilder->getInt32Ty(), "selector");
    135135    }
    136136    if (mHasLongAdvance) {
    137         kernel->addScalar(iBuilder->getSizeTy(), "CarryBlockIndex");
     137        kernel->addInternalScalar(iBuilder->getSizeTy(), "CarryBlockIndex");
    138138    }
    139139}
     
    678678                Value * const stream = iBuilder->CreateBitCast(iBuilder->CreateOr(iBuilder->CreateShl(prior, 1), carry), iBuilder->getBitBlockType());
    679679                if (LLVM_LIKELY(i == summarySize)) {
    680                     Value * const maskedStream = iBuilder->CreateAnd(stream, iBuilder->bitblock_mask_from(iBuilder->getInt32(summarySize % iBuilder->getBitBlockWidth())));
     680                    Value * const summeryOffset = iBuilder->getInt32(summarySize % iBuilder->getBitBlockWidth());
     681                    Value * const maskedStream = iBuilder->CreateAnd(stream, iBuilder->bitblock_mask_from(summeryOffset, true));
    681682                    addToCarryOutSummary(iBuilder, maskedStream);
    682683                    iBuilder->CreateBlockAlignedStore(maskedStream, ptr);
Note: See TracChangeset for help on using the changeset viewer.