Ignore:
Timestamp:
Jan 21, 2018, 6:57:46 AM (18 months ago)
Author:
cameron
Message:

Decoupling PabloKernels? from CC_compiler

File:
1 edited

Legend:

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

    r5836 r5842  
    1919
    2020void DelMaskKernelBuilder::generatePabloMethod() {
     21    PabloBuilder main(getEntryScope());
    2122    //  input: 8 basis bit streams
    2223   
    2324    const auto u8bitSet = this->getInputStreamVar("u8bit");
    24    
     25    PabloAST * u8_bits[8];
     26    for (int i = 0; i < 8; ++i) {
     27        u8_bits[i] = main.createExtract(u8bitSet, main.getInteger(i));
     28    }
    2529    //  output: delmask stream + error stream
    2630   
    2731    cc::CC_Compiler ccc(this, u8bitSet);
    2832   
    29     PabloBuilder & main = ccc.getBuilder();
    30     const auto u8_bits = ccc.getBasisBits();
    3133    Zeroes * zeroes = main.createZeroes();
    3234
Note: See TracChangeset for help on using the changeset viewer.