diff --git a/mlir/lib/Conversion/LLVMCommon/MemRefBuilder.cpp b/mlir/lib/Conversion/LLVMCommon/MemRefBuilder.cpp --- a/mlir/lib/Conversion/LLVMCommon/MemRefBuilder.cpp +++ b/mlir/lib/Conversion/LLVMCommon/MemRefBuilder.cpp @@ -125,8 +125,7 @@ /// Builds IR extracting the pos-th size from the descriptor. Value MemRefDescriptor::size(OpBuilder &builder, Location loc, unsigned pos) { return builder.create( - loc, value, - llvm::makeArrayRef({kSizePosInMemRefDescriptor, pos})); + loc, value, ArrayRef({kSizePosInMemRefDescriptor, pos})); } Value MemRefDescriptor::size(OpBuilder &builder, Location loc, Value pos, @@ -153,8 +152,7 @@ void MemRefDescriptor::setSize(OpBuilder &builder, Location loc, unsigned pos, Value size) { value = builder.create( - loc, value, size, - llvm::makeArrayRef({kSizePosInMemRefDescriptor, pos})); + loc, value, size, ArrayRef({kSizePosInMemRefDescriptor, pos})); } void MemRefDescriptor::setConstantSize(OpBuilder &builder, Location loc, @@ -166,8 +164,7 @@ /// Builds IR extracting the pos-th stride from the descriptor. Value MemRefDescriptor::stride(OpBuilder &builder, Location loc, unsigned pos) { return builder.create( - loc, value, - llvm::makeArrayRef({kStridePosInMemRefDescriptor, pos})); + loc, value, ArrayRef({kStridePosInMemRefDescriptor, pos})); } /// Builds IR inserting the pos-th stride into the descriptor @@ -175,7 +172,7 @@ Value stride) { value = builder.create( loc, value, stride, - llvm::makeArrayRef({kStridePosInMemRefDescriptor, pos})); + ArrayRef({kStridePosInMemRefDescriptor, pos})); } void MemRefDescriptor::setConstantStride(OpBuilder &builder, Location loc, diff --git a/mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp b/mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp --- a/mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp +++ b/mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp @@ -700,7 +700,7 @@ auto attr = values.getValue()[i]; Value entry = rewriter.create(loc, llvmI32Type, attr); structValue = rewriter.create( - loc, structValue, entry, llvm::makeArrayRef({1, i})); + loc, structValue, entry, ArrayRef({1, i})); } rewriter.create(loc, ArrayRef({structValue})); rewriter.eraseOp(op);