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

    r5436 r5440  
    177177    pxDriver.generatePipelineIR();
    178178   
    179     Value * const fileSize = mmapK->getAccumulator("fileSize");
    180     Value * const lineCount = wck->getAccumulator("lineCount");
    181     Value * const wordCount = wck->getAccumulator("wordCount");
    182     Value * const charCount = wck->getAccumulator("charCount");
     179    iBuilder->setKernel(mmapK);
     180    Value * const fileSize = iBuilder->getAccumulator("fileSize");
     181    iBuilder->setKernel(wck);
     182    Value * const lineCount = iBuilder->getAccumulator("lineCount");
     183    Value * const wordCount = iBuilder->getAccumulator("wordCount");
     184    Value * const charCount = iBuilder->getAccumulator("charCount");
    183185
    184186    iBuilder->CreateCall(recordCounts, {lineCount, wordCount, charCount, fileSize, fileIdx});
Note: See TracChangeset for help on using the changeset viewer.