Ignore:
Timestamp:
Mar 13, 2017, 3:02:13 PM (2 years ago)
Author:
nmedfort
Message:

Work on non-carry collapsing mode.

File:
1 edited

Legend:

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

    r5357 r5361  
    189189    Value * bufferSize = iBuilder->CreateLoad(iBuilder->CreateGEP(bufferSizesPtr, bid));
    190190
    191     if (CountOnly){
     191    if (CountOnly) {
    192192        Value * strideBlocks = ConstantInt::get(int32ty, iBuilder->getStride() / iBuilder->getBitBlockWidth());
    193193        Value * outputThreadPtr = iBuilder->CreateGEP(outputPtr, iBuilder->CreateAdd(iBuilder->CreateMul(bid, strideBlocks), tid));
    194194        Value * result = iBuilder->CreateCall(mainFunc, {inputStream, bufferSize});
    195195        iBuilder->CreateStore(result, outputThreadPtr);
    196     }
    197     else {
     196    } else {
    198197        Type * const outputStremType = PointerType::get(ArrayType::get(iBuilder->getBitBlockType(), 1), 1);
    199198        Value * outputStreamPtr = iBuilder->CreateGEP(iBuilder->CreateBitCast(outputPtr, outputStremType), startBlock);
     
    345344        iBuilder->CreateRet(matchCountK.getScalarField(matchCountK.getInstance(), "matchedLineCount"));
    346345
    347     }
    348     else{
     346    } else {
    349347        kernel::ScanMatchKernel scanMatchK(iBuilder, mGrepType);
    350348        scanMatchK.generateKernel({&mergedResults, &LineBreakStream}, {});               
     
    353351        KernelList.push_back(&scanMatchK);
    354352
    355         if (pipelineParallel){
     353        if (pipelineParallel) {
    356354            generatePipelineParallel(iBuilder, KernelList);
    357         } else if (segmentPipelineParallel){
     355        } else if (segmentPipelineParallel) {
    358356            generateSegmentParallelPipeline(iBuilder, KernelList);
    359         }  else{
     357        } else {
    360358            generatePipelineLoop(iBuilder, KernelList);
    361359        }
Note: See TracChangeset for help on using the changeset viewer.