Ignore:
Timestamp:
Dec 15, 2015, 7:47:23 AM (3 years ago)
Author:
cameron
Message:

hi_mask in s2p, lo_mask

File:
1 edited

Legend:

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

    r4894 r4895  
    3636}
    3737
    38 Constant * IDISA_Builder::simd_himask(unsigned fw) {
    39     return Constant::getIntegerValue(mLLVMBuilder->getIntNTy(mBitBlockWidth), APInt::getSplat(mBitBlockWidth, APInt::getHighBitsSet(fw, fw/2)));
    40 }
    41 
    42 Value * IDISA_Builder::simd_add(unsigned fw, Value * a, Value * b) {
     38    Constant * IDISA_Builder::simd_himask(unsigned fw) {
     39        return Constant::getIntegerValue(mLLVMBuilder->getIntNTy(mBitBlockWidth), APInt::getSplat(mBitBlockWidth, APInt::getHighBitsSet(fw, fw/2)));
     40    }
     41   
     42    Constant * IDISA_Builder::simd_lomask(unsigned fw) {
     43        return Constant::getIntegerValue(mLLVMBuilder->getIntNTy(mBitBlockWidth), APInt::getSplat(mBitBlockWidth, APInt::getLowBitsSet(fw, fw/2)));
     44    }
     45   
     46    Value * IDISA_Builder::simd_add(unsigned fw, Value * a, Value * b) {
    4347    return mLLVMBuilder->CreateAdd(fwCast(fw, a), fwCast(fw, b));
    4448}
Note: See TracChangeset for help on using the changeset viewer.