Ignore:
Timestamp:
Nov 11, 2017, 9:46:13 PM (18 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/streamset.cpp

    r5721 r5733  
    812812
    813813SourceBuffer::SourceBuffer(const std::unique_ptr<kernel::KernelBuilder> & b, Type * type, unsigned MemoryAddressSpace, unsigned StructAddressSpace)
    814 : StreamSetBuffer(BufferKind::SourceBuffer, type, StructType::get(resolveStreamSetType(b, type)->getPointerTo(MemoryAddressSpace), b->getSizeTy(), b->getSizeTy(), nullptr), 0, StructAddressSpace) {
     814: StreamSetBuffer(BufferKind::SourceBuffer, type, StructType::get(b->getContext(), {resolveStreamSetType(b, type)->getPointerTo(MemoryAddressSpace), b->getSizeTy(), b->getSizeTy()}), 0, StructAddressSpace) {
    815815    mUniqueID = "B";
    816816    if (MemoryAddressSpace != 0 || StructAddressSpace != 0) {
     
    872872    IntegerType * sizeTy = b->getSizeTy();
    873873    PointerType * typePtr = baseType->getPointerTo(addrSpace);
    874     return StructType::get(typePtr, typePtr, sizeTy, sizeTy, sizeTy, sizeTy, sizeTy, nullptr);
     874    return StructType::get(b->getContext(), {typePtr, typePtr, sizeTy, sizeTy, sizeTy, sizeTy, sizeTy});
    875875}
    876876
     
    947947                type = ArrayType::get(type, fieldWidth);
    948948            }
    949             return StructType::get(b->getSizeTy(), type->getPointerTo(), nullptr);
     949            return StructType::get(b->getContext(), {b->getSizeTy(), type->getPointerTo()});
    950950        }
    951951    }
Note: See TracChangeset for help on using the changeset viewer.