Ignore:
Timestamp:
Dec 13, 2015, 10:23:28 PM (3 years ago)
Author:
cameron
Message:

Initial check-in of s2p generation

File:
1 edited

Legend:

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

    r4881 r4891  
    117117}
    118118
     119Value * IDISA_Builder::simd_if(unsigned fw, Value * cond, Value * a, Value * b) {
     120    Value * aVec = fwCast(fw, a);
     121    Value * bVec = fwCast(fw, b);
     122    return mLLVMBuilder->CreateSelect(mLLVMBuilder->CreateICmpSLT(cond, mZeroInitializer), aVec, bVec);
     123}
     124
     125   
    119126Value * IDISA_Builder::esimd_mergeh(unsigned fw, Value * a, Value * b) {
    120127    unsigned field_count = mBitBlockWidth/fw;
Note: See TracChangeset for help on using the changeset viewer.