Ignore:
Timestamp:
May 3, 2017, 1:13:04 PM (2 years ago)
Author:
nmedfort
Message:

partial refactoring check in with change for Linda.

File:
1 edited

Legend:

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

    r5429 r5431  
    9797    sourceBuffer = iBuilder->CreatePtrToInt(sourceBuffer, consumedTy);
    9898    Value * consumedBuffer = iBuilder->CreateAdd(sourceBuffer, consumed);
     99
     100
     101
     102
    99103    Value * readableBuffer = getScalarField("readableBuffer");
    100104    readableBuffer = iBuilder->CreatePtrToInt(readableBuffer, consumedTy);
    101105    Value * unnecessaryBytes = iBuilder->CreateSub(consumedBuffer, readableBuffer);
     106
     107
     108
    102109    // avoid calling madvise unless an actual page table change could occur
    103110    Value * hasPagesToDrop = iBuilder->CreateICmpEQ(unnecessaryBytes, ConstantInt::getNullValue(unnecessaryBytes->getType()));
     
    135142
    136143MMapSourceKernel::MMapSourceKernel(IDISA::IDISA_Builder * iBuilder, unsigned blocksPerSegment, unsigned codeUnitWidth)
    137 : SegmentOrientedKernel(iBuilder, "Parabix:mmap_source" + std::to_string(blocksPerSegment) + "@" + std::to_string(codeUnitWidth),
     144: SegmentOrientedKernel(iBuilder, "mmap_source" + std::to_string(blocksPerSegment) + "@" + std::to_string(codeUnitWidth),
    138145{},
    139146{Binding{iBuilder->getStreamSetTy(1, codeUnitWidth), "sourceBuffer"}},
     
    275282
    276283ReadSourceKernel::ReadSourceKernel(IDISA::IDISA_Builder * iBuilder, unsigned blocksPerSegment, unsigned codeUnitWidth)
    277 : SegmentOrientedKernel(iBuilder, "Parabix:read_source"
     284: SegmentOrientedKernel(iBuilder, "read_source"
    278285, {}
    279286, {Binding{iBuilder->getStreamSetTy(1, codeUnitWidth), "sourceBuffer"}}
     
    320327
    321328MemorySourceKernel::MemorySourceKernel(IDISA::IDISA_Builder * iBuilder, Type * type, unsigned blocksPerSegment, unsigned codeUnitWidth)
    322 : SegmentOrientedKernel(iBuilder, "Parabix:memory_source",
     329: SegmentOrientedKernel(iBuilder, "memory_source",
    323330    {},
    324331    {Binding{iBuilder->getStreamSetTy(1, codeUnitWidth), "sourceBuffer"}},
Note: See TracChangeset for help on using the changeset viewer.