Ignore:
Timestamp:
Dec 14, 2015, 6:10:58 PM (3 years ago)
Author:
cameron
Message:

simd_himask

File:
1 edited

Legend:

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

    r4892 r4894  
    3636}
    3737
    38    
     38Constant * IDISA_Builder::simd_himask(unsigned fw) {
     39    return Constant::getIntegerValue(mLLVMBuilder->getIntNTy(mBitBlockWidth), APInt::getSplat(mBitBlockWidth, APInt::getHighBitsSet(fw, fw/2)));
     40}
     41
    3942Value * IDISA_Builder::simd_add(unsigned fw, Value * a, Value * b) {
    4043    return mLLVMBuilder->CreateAdd(fwCast(fw, a), fwCast(fw, b));
Note: See TracChangeset for help on using the changeset viewer.