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/grep_kernel.cpp

    r5436 r5440  
    4040}
    4141
    42 std::string ICgrepKernelBuilder::makeSignature() {
     42std::string ICgrepKernelBuilder::makeSignature(const std::unique_ptr<kernel::KernelBuilder> &) {
    4343    return mSignature;
    4444}
     
    4848}
    4949
    50 void InvertMatchesKernel::generateDoBlockMethod() {
    51     Value * input = loadInputStreamBlock("matchedLines", iBuilder->getInt32(0));
    52     Value * lbs = loadInputStreamBlock("lineBreaks", iBuilder->getInt32(0));
     50void InvertMatchesKernel::generateDoBlockMethod(const std::unique_ptr<KernelBuilder> & iBuilder) {
     51    Value * input = iBuilder->loadInputStreamBlock("matchedLines", iBuilder->getInt32(0));
     52    Value * lbs = iBuilder->loadInputStreamBlock("lineBreaks", iBuilder->getInt32(0));
    5353    Value * inverted = iBuilder->CreateXor(input, lbs);
    54     storeOutputStreamBlock("nonMatches", iBuilder->getInt32(0), inverted);
     54    iBuilder->storeOutputStreamBlock("nonMatches", iBuilder->getInt32(0), inverted);
    5555}
    5656
Note: See TracChangeset for help on using the changeset viewer.