Ignore:
Timestamp:
Oct 25, 2017, 4:57:58 PM (20 months ago)
Author:
nmedfort
Message:

First stage of MultiBlockKernel? and pipeline restructuring

File:
1 edited

Legend:

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

    r5645 r5706  
    3232            iBuilder->getSize(iBuilder->getBitBlockWidth()),
    3333            iBuilder->CreateSub(iBuilder->getAvailableItemCount("literalIndexes"), iBuilder->getProcessedItemCount("literalIndexes")));
    34     Value * inputBufferBasePtr = iBuilder->getRawInputPointer("inputStream", iBuilder->getSize(0), iBuilder->getSize(0));
    35     Value * outputBufferBasePtr = iBuilder->getRawOutputPointer("outputStream", iBuilder->getSize(0), iBuilder->getSize(0));
     34    Value * inputBufferBasePtr = iBuilder->getRawInputPointer("inputStream", iBuilder->getSize(0));
     35    Value * outputBufferBasePtr = iBuilder->getRawOutputPointer("outputStream", iBuilder->getSize(0));
    3636    iBuilder->CreateBr(loopBody);
    3737
     
    5555    Value * matchLength = iBuilder->CreateZExt(iBuilder->CreateLoad(matchLengthPtr), iBuilder->getSizeTy());
    5656
    57 #if 0
    58     Value * processedItem = iBuilder->CreateAdd(iBuilder->getProcessedItemCount("literalIndexes"), phiInputIndex);
    59     iBuilder->CallPrintInt("ProccessedItem", processedItem);
    60     iBuilder->CallPrintInt("LiteralStart", literalStart);
    61     iBuilder->CallPrintInt("LiteralLength", literalLength);
    62     iBuilder->CallPrintInt("MatchOffset", matchOffset);
    63     iBuilder->CallPrintInt("MatchLength", matchLength);
    64 #endif
     57//    iBuilder->CallPrintInt(" ----- literalStart", literalStart);
     58//    iBuilder->CallPrintInt(" ----- literalLength", literalLength);
     59//    iBuilder->CallPrintInt(" ----- matchOffset", matchOffset);
     60//    iBuilder->CallPrintInt(" ----- matchLength", matchLength);
     61
     62//#if 0
     63//    Value * processedItem = iBuilder->CreateAdd(iBuilder->getProcessedItemCount("literalIndexes"), phiInputIndex);
     64//    iBuilder->CallPrintInt("ProccessedItem", processedItem);
     65//    iBuilder->CallPrintInt("LiteralStart", literalStart);
     66//    iBuilder->CallPrintInt("LiteralLength", literalLength);
     67//    iBuilder->CallPrintInt("MatchOffset", matchOffset);
     68//    iBuilder->CallPrintInt("MatchLength", matchLength);
     69//#endif
    6570
    6671    // =================================================
     
    114119
    115120    iBuilder->SetInsertPoint(cpyLoopBody);
    116 #ifndef NDEBUG
    117     iBuilder->CallPrintIntToStderr("srcOffset", phiSrcOffset);
    118     iBuilder->CallPrintIntToStderr("dstOffset", phiDstOffset);
    119 #endif
     121//#ifndef NDEBUG
     122//    iBuilder->CallPrintIntToStderr("srcOffset", phiSrcOffset);
     123//    iBuilder->CallPrintIntToStderr("dstOffset", phiDstOffset);
     124//#endif
    120125    BasicBlock * reachingBufferEnd_then = iBuilder->CreateBasicBlock("matchcopy_reaching_buf_end_then");
    121126    BasicBlock * reachingBufferEnd_else = iBuilder->CreateBasicBlock("matchcopy_reaching_buf_end_else");
     
    182187
    183188    iBuilder->SetInsertPoint(loopExit);
    184 #ifndef NDEBUG
    185     iBuilder->CallPrintInt("Decompressed bytes", iBuilder->getProducedItemCount("outputStream"));
    186 #endif
     189//#ifndef NDEBUG
     190//    iBuilder->CallPrintInt("Decompressed bytes", iBuilder->getProducedItemCount("outputStream"));
     191//#endif
    187192}
    188193
     
    193198    {Binding{iBuilder->getStreamSetTy(2, 32), "literalIndexes"},
    194199     Binding{iBuilder->getStreamSetTy(2, 32), "matchIndexes"},
    195      Binding{iBuilder->getStreamSetTy(1, 8), "inputStream", UnknownRate()}},
     200     Binding{iBuilder->getStreamSetTy(1, 8), "inputStream", UnknownRate(), LookBehind(65536)}},
    196201    // Outputs
    197202    {Binding{iBuilder->getStreamSetTy(1, 8), "outputStream", UnknownRate()}},
Note: See TracChangeset for help on using the changeset viewer.