Ignore:
Timestamp:
Mar 20, 2018, 4:05:54 PM (13 months ago)
Author:
xwa163
Message:
  1. Initial checkin for new approach for lz4 index decoder that always use 4MB buffer
  2. Add test case for new approach (for now test cases will fail when test file is larger than 4MB)
File:
1 edited

Legend:

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

    r5905 r5921  
    66#include <iostream>
    77
    8 #define APPLY_64PACK_ACCELERATION
     8//#define APPLY_64PACK_ACCELERATION
    99// TODO May be we can change it to 256 PACK Acceleration based on SIMD instruction
    1010
     
    423423//    iBuilder->CallPrintInt("tokenPos", this->getCursorValue(iBuilder, "extender"));
    424424    Value* token = this->generateLoadSourceInputByte(iBuilder, "byteStream", this->getCursorValue(iBuilder, "extender"));
     425
     426    iBuilder->CallPrintInt("tokenPos", this->getCursorValue(iBuilder, "extender"));
    425427//    iBuilder->CallPrintInt("token", token);
    426 //    iBuilder->CallPrintInt("tokenPos", this->getCursorValue(iBuilder, "extender"));
    427428
    428429//    iBuilder->CreateAssert(iBuilder->CreateICmpULT(this->getCursorValue(iBuilder, "extender"), iBuilder->getSize(0xcb32a)), "ee");
     
    451452    Value* literalLengthEndPos = this->getCursorValue(iBuilder, "extender");
    452453    Value* literalExtensionSize = iBuilder->CreateSub(literalLengthEndPos, iBuilder->getScalarField("tokenPos"));
     454//    iBuilder->CallPrintInt("literalExtensionSize", literalExtensionSize);
    453455    Value* finalLengthByte = this->generateLoadSourceInputByte(iBuilder, "byteStream", this->getCursorValue(iBuilder, "extender"));
    454456
     
    471473
    472474
    473     Value* previousOffsetPos = iBuilder->getScalarField("offsetPos");
    474 
    475475    Value* offsetPos = iBuilder->CreateAdd(
    476476            iBuilder->CreateAdd(
     
    479479            iBuilder->getSize(1));
    480480    iBuilder->setScalarField("offsetPos", offsetPos);
     481//    iBuilder->CallPrintInt("offsetPos", offsetPos);
    481482//    iBuilder->CallPrintInt("literalStart", iBuilder->CreateAdd(literalLengthEndPos, iBuilder->getSize(1)));
    482483//    iBuilder->CallPrintInt("literalLength", literalLength);
     
    528529    matchLengthStartPos = iBuilder->getScalarField("matchLengthStartPos");
    529530    Value* oldMatchExtensionSize = iBuilder->CreateSub(this->getCursorValue(iBuilder, "extender"), matchLengthStartPos);
     531    iBuilder->CallPrintInt("aaa", oldMatchExtensionSize);
    530532
    531533    token = iBuilder->getScalarField("token");
     
    600602    this->increaseScalarField(iBuilder, "m0OutputPos", matchLength);
    601603    this->advanceCursor(iBuilder, "extender", iBuilder->getSize(1));
     604//    iBuilder->CallPrintInt("bbb", this->getCursorValue(iBuilder, "extender"));
    602605
    603606    iBuilder->CreateBr(compressedBlockLoopFinal);
Note: See TracChangeset for help on using the changeset viewer.