Ignore:
Timestamp:
Oct 9, 2015, 10:24:51 AM (4 years ago)
Author:
cameron
Message:

Parameterize carry_manager to inherit BitBlockWidth? from idisa builder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IDISA/idisa_builder.h

    r4821 r4827  
    2424    , mLLVMBuilder(nullptr)
    2525    , mBitBlockType(bitBlockType)
    26     , mBitBlockSize(bitBlockType->isIntegerTy() ? cast<IntegerType>(bitBlockType)->getIntegerBitWidth() : cast<VectorType>(bitBlockType)->getBitWidth())
     26    , mBitBlockWidth(bitBlockType->isIntegerTy() ? cast<IntegerType>(bitBlockType)->getIntegerBitWidth() : cast<VectorType>(bitBlockType)->getBitWidth())
    2727    , mZeroInitializer(Constant::getNullValue(bitBlockType))
    2828    , mOneInitializer(Constant::getAllOnesValue(bitBlockType)) {
     
    3636   
    3737    Type * getBitBlockType() { return mBitBlockType;}
    38     int getBitBlockSize() { return mBitBlockSize;}
     38    int getBitBlockWidth() { return mBitBlockWidth;}
    3939    Constant * allZeroes() {return mZeroInitializer;}
    4040    Constant * allOnes() {return mOneInitializer;}
     
    7878    IRBuilder <> * mLLVMBuilder;
    7979    Type * mBitBlockType;
    80     unsigned mBitBlockSize;
     80    unsigned mBitBlockWidth;
    8181    Constant * mZeroInitializer;
    8282    Constant * mOneInitializer;
Note: See TracChangeset for help on using the changeset viewer.