Ignore:
Timestamp:
Aug 11, 2016, 1:27:17 PM (3 years ago)
Author:
cameron
Message:

Add getStride to IDISA builders; allows Stride > BlockSize? on GPU

File:
1 edited

Legend:

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

    r5121 r5126  
    2727    , mBitBlockType(bitBlockType)
    2828    , mBitBlockWidth(bitBlockType->isIntegerTy() ? cast<IntegerType>(bitBlockType)->getIntegerBitWidth() : cast<VectorType>(bitBlockType)->getBitWidth())
     29    , mStride(mBitBlockWidth)
    2930    , mZeroInitializer(Constant::getNullValue(bitBlockType))
    3031    , mOneInitializer(Constant::getAllOnesValue(bitBlockType))
     
    4748    unsigned getBitBlockWidth() const {
    4849        return mBitBlockWidth;
     50    }
     51
     52    unsigned getStride() const {
     53        return mStride;
    4954    }
    5055
     
    139144    Type * mBitBlockType;
    140145    unsigned mBitBlockWidth;
     146    unsigned mStride;
    141147    Constant * mZeroInitializer;
    142148    Constant * mOneInitializer;
Note: See TracChangeset for help on using the changeset viewer.