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

    r5436 r5440  
    2727}
    2828
    29 void DirectCharacterClassKernelBuilder::generateDoBlockMethod() {
     29void DirectCharacterClassKernelBuilder::generateDoBlockMethod(const std::unique_ptr<KernelBuilder> & iBuilder) {
    3030    unsigned packCount = 8 * mCodeUnitSize; 
    3131    unsigned codeUnitWidth = 8 * mCodeUnitSize;
    3232    Value * codeUnitPack[packCount];
    3333    for (unsigned i = 0; i < packCount; i++) {
    34         codeUnitPack[i] = loadInputStreamPack("codeUnitStream", iBuilder->getInt32(0), iBuilder->getInt32(i));
     34        codeUnitPack[i] = iBuilder->loadInputStreamPack("codeUnitStream", iBuilder->getInt32(0), iBuilder->getInt32(i));
    3535    }
    3636    for (unsigned j = 0; j < mCharClasses.size();  j++) {
     
    6666            theCCstream = iBuilder->simd_or(theCCstream, pack);
    6767        }
    68         storeOutputStreamBlock("ccStream", iBuilder->getInt32(j), theCCstream);
     68        iBuilder->storeOutputStreamBlock("ccStream", iBuilder->getInt32(j), theCCstream);
    6969    }
    7070}
Note: See TracChangeset for help on using the changeset viewer.