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_builder.cpp

    r5007 r5014  
    6363        std::vector<Value *> args;
    6464        args.push_back(geti8StrVal(*mMod, out.str().c_str(), ""));
    65         Value * const name = arg++;
     65        Value * const name = &*(arg++);
    6666        name->setName("name");
    6767        args.push_back(name);
    68         Value * value = arg;
     68        Value * value = &*arg;
    6969        value->setName("value");
    7070        Type * const byteVectorType = VectorType::get(getInt8Ty(), (mBitBlockWidth / 8));
     
    7979    }
    8080    assert (value->getType()->canLosslesslyBitCastTo(mBitBlockType));
    81     CreateCall2(printRegister, geti8StrVal(*mMod, name.c_str(), name), CreateBitCast(value, mBitBlockType));
     81    CreateCall(printRegister, {geti8StrVal(*mMod, name.c_str(), name), CreateBitCast(value, mBitBlockType)});
    8282}
    8383
     
    9393        std::vector<Value *> args;
    9494        args.push_back(geti8StrVal(*mMod, out.c_str(), ""));
    95         Value * const name = arg++;
     95        Value * const name = &*(arg++);
    9696        name->setName("name");
    9797        args.push_back(name);
    98         Value * value = arg;
     98        Value * value = &*arg;
    9999        value->setName("value");
    100100        args.push_back(value);
     
    111111    }
    112112    assert (num->getType()->isIntegerTy());
    113     CreateCall2(printRegister, geti8StrVal(*mMod, name.c_str(), name), num);
     113    CreateCall(printRegister, {geti8StrVal(*mMod, name.c_str(), name), num});
    114114}
    115115
     
    349349
    350350Value * IDISA_Builder::mvmd_srli(unsigned fw, Value * a, unsigned shift) {
    351     unsigned field_count = mBitBlockWidth/fw;
    352351    return mvmd_dslli(fw, Constant::getNullValue(fwVectorType(fw)), a, shift);
    353352}
Note: See TracChangeset for help on using the changeset viewer.