Ignore:
Timestamp:
Jan 17, 2017, 1:29:52 PM (2 years ago)
Author:
cameron
Message:

Eliminate unneeded doBlock functions

File:
1 edited

Legend:

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

    r5263 r5265  
    5555}
    5656
    57 // The doBlock method is deprecated.   But in case it is used, just call doSegment with
    58 // 1 as the number of blocks to do.
    59 void MMapSourceKernel::generateDoBlockMethod() const {
    60     auto savePoint = iBuilder->saveIP();
    61     Module * m = iBuilder->getModule();
    62     Function * doBlockFunction = m->getFunction(mKernelName + doBlock_suffix);
    63     Function * doSegmentFunction = m->getFunction(mKernelName + doSegment_suffix);
    64     iBuilder->SetInsertPoint(BasicBlock::Create(iBuilder->getContext(), "entry", doBlockFunction, 0));
    65     Value * self = getParameter(doBlockFunction, "self");
    66     iBuilder->CreateCall(doSegmentFunction, {self, ConstantInt::getNullValue(iBuilder->getInt1Ty())});
    67     iBuilder->CreateRetVoid();
    68     iBuilder->restoreIP(savePoint);
    69 }
    7057
    7158MMapSourceKernel::MMapSourceKernel(IDISA::IDISA_Builder * iBuilder, unsigned blocksPerSegment, unsigned codeUnitWidth) :
Note: See TracChangeset for help on using the changeset viewer.