Ignore:
Timestamp:
Oct 18, 2015, 8:03:54 AM (4 years ago)
Author:
cameron
Message:

Move genPrintRegister into IDISA builder; fix GCB defs

File:
1 edited

Legend:

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

    r4837 r4843  
    2626    , mBitBlockWidth(bitBlockType->isIntegerTy() ? cast<IntegerType>(bitBlockType)->getIntegerBitWidth() : cast<VectorType>(bitBlockType)->getBitWidth())
    2727    , mZeroInitializer(Constant::getNullValue(bitBlockType))
    28     , mOneInitializer(Constant::getAllOnesValue(bitBlockType)) {
     28    , mOneInitializer(Constant::getAllOnesValue(bitBlockType))
     29    , mPrintRegisterFunction(nullptr) {
    2930
    3031    }
     
    3839    Value * bitCast(Value * a) {return a->getType() == mBitBlockType ? a : mLLVMBuilder->CreateBitCast(a, mBitBlockType);}
    3940    int getBitBlockWidth() { return mBitBlockWidth;}
     41    void genPrintRegister(std::string regName, Value * bitblockValue);
    4042   
    4143   
     
    8789    Constant * mZeroInitializer;
    8890    Constant * mOneInitializer;
     91    Constant * mPrintRegisterFunction;
    8992   
    9093    Value * bitBlockCast(Value * a);
Note: See TracChangeset for help on using the changeset viewer.