Ignore:
Timestamp:
Apr 21, 2016, 12:18:06 PM (3 years ago)
Author:
cameron
Message:

Some updates for compatibility with LLVM 3.8

File:
1 edited

Legend:

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

    r4997 r5014  
    106106    if ((fw == 128) && (mBitBlockWidth == 256)) {
    107107        Value * vperm2i128func = Intrinsic::getDeclaration(mMod, Intrinsic::x86_avx2_vperm2i128);
    108         return CreateCall3(vperm2i128func, fwCast(64, a), fwCast(64, b), getInt8(0x31));
     108        return CreateCall(vperm2i128func, {fwCast(64, a), fwCast(64, b), getInt8(0x31)});
    109109    }
    110110    // Otherwise use default SSE logic.
     
    115115    if ((fw == 128) && (mBitBlockWidth == 256)) {
    116116        Value * vperm2i128func = Intrinsic::getDeclaration(mMod, Intrinsic::x86_avx2_vperm2i128);
    117         return CreateCall3(vperm2i128func, fwCast(64, a), fwCast(64, b), getInt8(0x20));
     117        return CreateCall(vperm2i128func, {fwCast(64, a), fwCast(64, b), getInt8(0x20)});
    118118    }
    119119    // Otherwise use default SSE logic.
     
    126126        Value * a_low = fwCast(16, simd_and(a, simd_lomask(fw)));
    127127        Value * b_low = fwCast(16, simd_and(b, simd_lomask(fw)));
    128         Value * pack = CreateCall2(vpackuswbfunc, a_low, b_low);
     128        Value * pack = CreateCall(vpackuswbfunc, {a_low, b_low});
    129129        return pack;
    130130    }
     
    138138        Value * a_low = simd_srli(fw, a, fw/2);
    139139        Value * b_low = simd_srli(fw, b, fw/2);
    140         Value * pack = CreateCall2(vpackuswbfunc, a_low, b_low);
     140        Value * pack = CreateCall(vpackuswbfunc, {a_low, b_low});
    141141        return pack;
    142142    }
Note: See TracChangeset for help on using the changeset viewer.