Changeset 5939 for icGREP/icgrep-devel


Ignore:
Timestamp:
Apr 2, 2018, 10:56:03 AM (18 months ago)
Author:
cameron
Message:

Some cleanups

Location:
icGREP/icgrep-devel/icgrep
Files:
9 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/character_deletion.cpp

    r5856 r5939  
    6464
    6565    std::string fileName = inputFile;
    66     char targetCharacter = characterToBeDeleted;
    6766
    6867    std::ifstream f(fileName, std::ios::binary | std::ios::ate);
  • icGREP/icgrep-devel/icgrep/kernels/lz4/lz4_deposit_uncompressed.cpp

    r5864 r5939  
    1616
    1717    void LZ4DepositUncompressedKernel::generateDoSegmentMethod(const std::unique_ptr<KernelBuilder> &iBuilder) {
    18         BasicBlock* entryBlock = iBuilder->GetInsertBlock();
    1918        BasicBlock* exitBlock = iBuilder->CreateBasicBlock("exit_block");
    2019
  • icGREP/icgrep-devel/icgrep/kernels/lz4/lz4_extract_e_m0.cpp

    r5922 r5939  
    1616
    1717void LZ4ExtractEM0Kernel::generateDoSequentialSegmentMethod(const std::unique_ptr<KernelBuilder> &iBuilder) {
    18     BasicBlock* entryBlock = iBuilder->GetInsertBlock();
    1918
    2019    BasicBlock* blockDataLoopCon = iBuilder->CreateBasicBlock("block_data_loop_con");
     
    6160
    6261BasicBlock* LZ4ExtractEM0Kernel::generateHandleCompressedBlock(const std::unique_ptr<kernel::KernelBuilder> & iBuilder) {
    63     BasicBlock* entryBlock = iBuilder->GetInsertBlock();
    6462    BasicBlock* exitBlock = iBuilder->CreateBasicBlock("block_data_loop_handle_compressed_exit");
    6563
     
    485483    this->markCircularOutputBitstream(iBuilder, "e1Marker", iBuilder->CreateAdd(literalLengthEndPos, iBuilder->getSize(1)), offsetPos, true);
    486484
    487     Value* basePtr = iBuilder->CreatePointerCast(iBuilder->getRawOutputPointer("e1Marker", iBuilder->getSize(0)), iBuilder->getInt64Ty()->getPointerTo());
     485//    Value* basePtr = iBuilder->CreatePointerCast(iBuilder->getRawOutputPointer("e1Marker", iBuilder->getSize(0)), iBuilder->getInt64Ty()->getPointerTo());
    488486
    489487    this->increaseScalarField(iBuilder, "m0OutputPos", literalLength);
  • icGREP/icgrep-devel/icgrep/kernels/lz4/lz4_index_builder.cpp

    r5926 r5939  
    276276
    277277    void LZ4IndexBuilderKernel::generateProcessCompressedBlock(const std::unique_ptr<KernelBuilder> &iBuilder, Value* blockStart, Value* blockEnd) {
    278         // Constant
    279         Constant* INT64_ONE = iBuilder->getInt64(1);
    280278
    281279        BasicBlock* entryBlock = iBuilder->GetInsertBlock();
     
    357355        Constant* INT64_BIT_BLOCK_WIDTH = iBuilder->getInt64(bitBlockWidth);
    358356        Constant* SIZE_ZERO = iBuilder->getSize(0);
    359         Type* bitBlockType = iBuilder->getBitBlockType();
    360357        Type* bitBlockWidthIntTy = iBuilder->getIntNTy(bitBlockWidth);
    361358
  • icGREP/icgrep-devel/icgrep/kernels/lz4/lz4_numbers_to_bitstream_kernel.cpp

    r5926 r5939  
    8282//        Value *inputEndBasePtr = iBuilder->getInputStreamBlockPtr(END_NUM_STREAM_NAME, SIZE_ZERO);
    8383//        inputEndBasePtr = iBuilder->CreatePointerCast(inputEndBasePtr, iBuilder->getInt64Ty()->getPointerTo());
    84         Value *outputBasePtr = iBuilder->getOutputStreamBlockPtr(OUTPUT_BIT_STREAM_NAME, SIZE_ZERO);
     84//        Value *outputBasePtr = iBuilder->getOutputStreamBlockPtr(OUTPUT_BIT_STREAM_NAME, SIZE_ZERO);
    8585        Value *initCarryBit = iBuilder->getScalarField("carryBit");
    8686
  • icGREP/icgrep-devel/icgrep/lz4d_ext_dep.cpp

    r5924 r5939  
    7373    // Since mmap offset has to be multiples of pages, we can't use it to skip headers.
    7474    mappedFile.open(fileName , lz4Frame.getBlocksLength() + lz4Frame.getBlocksStart());
    75     size_t headerLength = lz4Frame.getBlocksStart();
    7675    //char *fileBuffer = const_cast<char *>(mappedFile.data()) + lz4Frame.getBlocksStart();
    7776    char *fileBuffer = const_cast<char *>(mappedFile.data());
Note: See TracChangeset for help on using the changeset viewer.