Ignore:
Timestamp:
Aug 5, 2015, 11:47:53 AM (4 years ago)
Author:
cameron
Message:

Dynamic selection of carry strategy options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/carry_manager.h

    r4712 r4715  
    2424*/
    2525
     26enum CarryManagerStrategy {BitBlockStrategy, SequentialFullyPackedStrategy};
     27
     28
    2629using namespace llvm;
    2730
     
    3639 
    3740    CarryManager(IRBuilder <> * b, VectorType * bitBlockType, ConstantAggregateZero * zero, Constant * one, IDISA::IDISA_Builder * idb)
    38     : mBuilder(b)
     41    : mPACK_SIZE(BLOCK_SIZE)
     42    , mITEMS_PER_PACK(1)
     43    , mBuilder(b)
    3944    , mBitBlockType(bitBlockType)
    4045    , mZeroInitializer(zero)
     
    4651    , mCurrentFrameIndex(0)
    4752    , mCarryPackBasePtr(nullptr)
    48 #ifdef PACKING
    4953    , mCarryBitBlockPtr(nullptr)
    50 #endif
    5154    , mBlockNoPtr(nullptr)
    5255    , mBlockNo(nullptr)
     
    106109   
    107110private:
     111    unsigned mPACK_SIZE;
     112    unsigned mITEMS_PER_PACK;
    108113    IRBuilder <> * mBuilder;
    109114    VectorType * mBitBlockType;
     
    116121    unsigned mCurrentFrameIndex;
    117122    Value * mCarryPackBasePtr;
    118 #ifdef PACKING
    119123    Type * mCarryPackType;
    120124    Value * mCarryBitBlockPtr;
    121 #endif
    122125    Value * mBlockNoPtr;
    123126    Value * mBlockNo;
Note: See TracChangeset for help on using the changeset viewer.