Ignore:
Timestamp:
May 12, 2017, 4:54:11 PM (2 years ago)
Author:
nmedfort
Message:

Refactoring work + correction for getRawItemPointer

File:
1 edited

Legend:

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

    r5440 r5446  
    7373    iBuilder->SetInsertPoint(BasicBlock::Create(M->getContext(), "entry", main, 0));
    7474
    75     StreamSetBuffer * const ByteStream = pxDriver.addBuffer(make_unique<SourceBuffer>(iBuilder, iBuilder->getStreamSetTy(1, 8)));
     75    StreamSetBuffer * const ByteStream = pxDriver.addBuffer(make_unique<SourceBuffer>(iBuilder, iBuilder->getStreamSetTy(1, 8), segmentSize * bufferSegments));
    7676    StreamSetBuffer * const BasisBits = pxDriver.addBuffer(make_unique<CircularBuffer>(iBuilder, iBuilder->getStreamSetTy(8, 1), segmentSize * bufferSegments));
    7777    StreamSetBuffer * const Extenders = pxDriver.addBuffer(make_unique<CircularBuffer>(iBuilder, iBuilder->getStreamSetTy(1, 1), segmentSize * bufferSegments));
     
    8181
    8282   
    83     kernel::Kernel * sourceK = pxDriver.addKernelInstance(make_unique<kernel::MemorySourceKernel>(iBuilder, iBuilder->getInt8PtrTy(), segmentSize));
     83    kernel::Kernel * sourceK = pxDriver.addKernelInstance(make_unique<MemorySourceKernel>(iBuilder, iBuilder->getInt8PtrTy(), segmentSize));
    8484    sourceK->setInitialArguments({inputStream, fileSize});
    8585    pxDriver.makeKernelCall(sourceK, {}, {ByteStream});
     
    100100
    101101    Kernel * outK = pxDriver.addKernelInstance(make_unique<FileSink>(iBuilder, 8));
    102     outK->setInitialArguments({iBuilder->CreatePointerCast(iBuilder->GetString(outputFile), iBuilder->getInt8PtrTy())});
     102    outK->setInitialArguments({iBuilder->GetString(outputFile)});
    103103    pxDriver.makeKernelCall(outK, {DecompressedByteStream}, {});
    104104 
Note: See TracChangeset for help on using the changeset viewer.