Ignore:
Timestamp:
May 10, 2017, 4:26:11 PM (2 years ago)
Author:
nmedfort
Message:

Large refactoring step. Removed IR generation code from Kernel (formally KernelBuilder?) and moved it into the new KernelBuilder? class.

File:
1 edited

Legend:

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

    r5436 r5440  
    1616    }
    1717
    18 void MatchCount::generateDoBlockMethod() {
     18void MatchCount::generateDoBlockMethod(const std::unique_ptr<KernelBuilder> & iBuilder) {
    1919
    2020    const unsigned counterSize = iBuilder->getSizeTy()->getBitWidth();
    21     Value * to_count = loadInputStreamBlock("matches", iBuilder->getInt32(0));
    22     Value * count = getScalarField("matchedLineCount");
     21    Value * to_count = iBuilder->loadInputStreamBlock("matches", iBuilder->getInt32(0));
     22    Value * count = iBuilder->getScalarField("matchedLineCount");
    2323   
    2424    Value * value = nullptr;
     
    3535    }
    3636    value = iBuilder->CreateAdd(value, count);
    37     setScalarField("matchedLineCount", value);
     37    iBuilder->setScalarField("matchedLineCount", value);
    3838}
    3939
Note: See TracChangeset for help on using the changeset viewer.