Ignore:
Timestamp:
May 17, 2018, 3:41:00 PM (16 months ago)
Author:
nmedfort
Message:

Major refactoring of buffer types. Static buffers replace Circular and CircularCopyback?. External buffers unify Source/External?.

File:
1 edited

Legend:

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

    r6046 r6047  
    3636    ConstantInt * const BLOCK_WIDTH = b->getSize(b->getBitBlockWidth());
    3737    ConstantInt * const PDEP_WIDTH = b->getSize(pdepWidth);
    38 
    39     Function * pdep = nullptr;
    40     if (pdepWidth == 64) {
    41         pdep = Intrinsic::getDeclaration(b->getModule(), Intrinsic::x86_bmi_pdep_64);
    42     } else if (pdepWidth == 32) {
    43         pdep = Intrinsic::getDeclaration(b->getModule(), Intrinsic::x86_bmi_pdep_32);
    44     } else {
    45         report_fatal_error(getName() + ": PDEP width must be 32 or 64");
    46     }
    4738
    4839    Constant * const ZERO = b->getSize(0);
     
    367358        llvm::report_fatal_error("StreamDepositCompiler only compresses bit streams (for now)");
    368359    }
    369     parabix::StreamSetBuffer * expandedStreams = mDriver.addBuffer<parabix::CircularBuffer>(iBuilder, iBuilder->getStreamSetTy(N), mBufferBlocks);
     360    parabix::StreamSetBuffer * expandedStreams = mDriver.addBuffer<parabix::StaticBuffer>(iBuilder, iBuilder->getStreamSetTy(N), mBufferBlocks);
    370361    Kernel * streamK = mDriver.addKernelInstance<StreamExpandKernel>(iBuilder, mFieldWidth, N);
    371362    mDriver.makeKernelCall(streamK, {depositMask, inputs}, {expandedStreams});
Note: See TracChangeset for help on using the changeset viewer.