Ignore:
Timestamp:
Dec 7, 2017, 5:48:35 PM (18 months ago)
Author:
cameron
Message:

Small fixes

File:
1 edited

Legend:

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

    r5719 r5759  
    9797   
    9898Value * IDISA_AVX2_Builder::esimd_mergeh(unsigned fw, Value * a, Value * b) {
     99#if LLVM_VERSION_INTEGER < LLVM_6_0_0
    99100    if ((fw == 128) && (mBitBlockWidth == 256)) {
    100101        Value * vperm2i128func = Intrinsic::getDeclaration(getModule(), Intrinsic::x86_avx2_vperm2i128);
    101102        return CreateCall(vperm2i128func, {fwCast(64, a), fwCast(64, b), getInt8(0x31)});
    102103    }
     104#endif
    103105    // Otherwise use default SSE logic.
    104106    return IDISA_SSE_Builder::esimd_mergeh(fw, a, b);
     
    106108
    107109Value * IDISA_AVX2_Builder::esimd_mergel(unsigned fw, Value * a, Value * b) {
     110#if LLVM_VERSION_INTEGER < LLVM_6_0_0
    108111    if ((fw == 128) && (mBitBlockWidth == 256)) {
    109112        Value * vperm2i128func = Intrinsic::getDeclaration(getModule(), Intrinsic::x86_avx2_vperm2i128);
    110113        return CreateCall(vperm2i128func, {fwCast(64, a), fwCast(64, b), getInt8(0x20)});
    111114    }
     115#endif
    112116    // Otherwise use default SSE logic.
    113117    return IDISA_SSE_Builder::esimd_mergel(fw, a, b);
Note: See TracChangeset for help on using the changeset viewer.