Ignore:
Timestamp:
Jul 30, 2016, 1:12:45 PM (3 years ago)
Author:
cameron
Message:

DoBlock/FinalBlock/DoSegment? Kernel functions always return void; clean-up

File:
1 edited

Legend:

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

    r5106 r5111  
    5858        iBuilder->SetInsertPoint(segmentBodyBlock);
    5959        Value * segBlocks = ConstantInt::get(size_ty, segmentSize);
    60         Value * rslt = kernels[0]->createDoSegmentCall(instances[0], segBlocks);
    61         for (unsigned i = 1; i < kernels.size(); i++) {
    62             rslt = kernels[i]->createDoSegmentCall(instances[i], rslt->getType()->isVoidTy() ? segBlocks : rslt);
     60        for (unsigned i = 0; i < kernels.size(); i++) {
     61            kernels[i]->createDoSegmentCall(instances[i], segBlocks);
    6362        }
    6463        remainingBytes->addIncoming(iBuilder->CreateSub(remainingBytes, step), segmentBodyBlock);
     
    8887    // Full Block Pipeline loop
    8988    iBuilder->SetInsertPoint(fullBodyBlock);
    90     rslt = kernels[0]->createDoSegmentCall(instances[0], ConstantInt::get(size_ty, 1));
    91     for (unsigned i = 1; i < kernels.size(); i++) {
    92         rslt = kernels[i]->createDoSegmentCall(instances[i], rslt->getType()->isVoidTy() ? ConstantInt::get(size_ty, 1) : rslt);
     89    for (unsigned i = 0; i < kernels.size(); i++) {
     90        kernels[i]->createDoSegmentCall(instances[i], ConstantInt::get(size_ty, 1));
    9391    }
    9492   
Note: See TracChangeset for help on using the changeset viewer.