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

Decoupling PabloKernels? from CC_compiler

File:
1 edited

Legend:

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

    r5836 r5842  
    1919
    2020void U8U32KernelBuilder::generatePabloMethod() {
     21    PabloBuilder main(getEntryScope());
     22   
    2123    //  input: 8 basis bit streams
    22    
    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: 32 u8-indexed streams, + delmask stream + error stream
    2630   
    2731    cc::CC_Compiler ccc(this, u8bitSet);
    28    
    29     PabloBuilder & main = ccc.getBuilder();
    30     const auto u8_bits = ccc.getBasisBits();
    3132   
    3233    Zeroes * zeroes = main.createZeroes();
Note: See TracChangeset for help on using the changeset viewer.