Ignore:
Timestamp:
Nov 11, 2017, 9:46:13 PM (16 months ago)
Author:
cameron
Message:

Changes for compatibility with LLVM 5.0.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/kernel.cpp

    r5732 r5733  
    297297        addScalar(binding.getType(), binding.getName());
    298298    }
    299     Type * const consumerSetTy = StructType::get(sizeTy, sizeTy->getPointerTo()->getPointerTo(), nullptr)->getPointerTo();
     299    Type * const consumerSetTy = StructType::get(idb->getContext(), {sizeTy, sizeTy->getPointerTo()->getPointerTo()})->getPointerTo();
    300300    for (unsigned i = 0; i < mStreamSetOutputs.size(); i++) {
    301301        addScalar(consumerSetTy, mStreamSetOutputs[i].getName() + CONSUMER_SUFFIX);
     
    527527    PointerType * const sizePtrTy = sizeTy->getPointerTo();
    528528    PointerType * const sizePtrPtrTy = sizePtrTy->getPointerTo();
    529     StructType * const consumerTy = StructType::get(sizeTy, sizePtrPtrTy, nullptr);
     529    StructType * const consumerTy = StructType::get(idb->getContext(), {sizeTy, sizePtrPtrTy});
    530530    for (unsigned i = 0; i < mStreamSetOutputBuffers.size(); ++i) {
    531531        const auto output = mStreamSetOutputBuffers[i];
     
    13311331        mCurrentMethod->setCallingConv(CallingConv::C);
    13321332        mCurrentMethod->setDoesNotThrow();
    1333         mCurrentMethod->setDoesNotCapture(1);
    13341333        auto args = mCurrentMethod->arg_begin();
    13351334        args->setName("self");
     
    13791378        mCurrentMethod->setCallingConv(CallingConv::C);
    13801379        mCurrentMethod->setDoesNotThrow();
    1381         mCurrentMethod->setDoesNotCapture(1);
    13821380        auto args = mCurrentMethod->arg_begin();
    13831381        args->setName("self");
Note: See TracChangeset for help on using the changeset viewer.