Ignore:
Timestamp:
Jan 25, 2018, 2:03:09 PM (15 months ago)
Author:
cameron
Message:

CC Compiler refactoring step

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/cc/cc_compiler.cpp

    r5836 r5843  
    2222namespace cc {
    2323
    24 CC_Compiler::CC_Compiler(pablo::PabloKernel * kernel, pablo::Var * basisBits)
     24CC_Compiler::CC_Compiler(pablo::PabloKernel * kernel, std::vector<pablo::PabloAST *> basisBitSet)
    2525: mBuilder(kernel->getEntryScope())
    26 , mEncodingBits(basisBits->getType()->getArrayNumElements())
    27 , mBasisBit(mEncodingBits) {
    28     for (unsigned i = 0; i != mEncodingBits; i++) {
    29         mBasisBit[i] = mBuilder.createExtract(basisBits, mBuilder.getInteger(i)); assert (mBasisBit[i]);
    30     }
     26, mEncodingBits(basisBitSet.size())
     27, mBasisBit(basisBitSet) {
    3128    mEncodingMask = (static_cast<unsigned>(1) << mEncodingBits) - static_cast<unsigned>(1);
    3229}
Note: See TracChangeset for help on using the changeset viewer.