diff --git a/llvm/include/llvm/ADT/ArrayRef.h b/llvm/include/llvm/ADT/ArrayRef.h --- a/llvm/include/llvm/ADT/ArrayRef.h +++ b/llvm/include/llvm/ADT/ArrayRef.h @@ -491,10 +491,10 @@ template ArrayRef(const std::array &Vec) -> ArrayRef; - /// Deduction guide to construct an ArrayRef from an ArrayRef (no-op) (const) + /// Deduction guide to construct an ArrayRef from an ArrayRef (const) template ArrayRef(const ArrayRef &Vec) -> ArrayRef; - /// Deduction guide to construct an ArrayRef from an ArrayRef (no-op) + /// Deduction guide to construct an ArrayRef from an ArrayRef template ArrayRef(ArrayRef &Vec) -> ArrayRef; /// Deduction guide to construct an ArrayRef from a C array. @@ -569,8 +569,8 @@ /// Construct an ArrayRef from a C array. template - ArrayRef LLVM_DEPRECATED("Use deduction guide instead", "ArrayRef") - makeArrayRef(const T (&Arr)[N]) { + LLVM_DEPRECATED("Use deduction guide instead", "ArrayRef") + ArrayRef makeArrayRef(const T (&Arr)[N]) { return ArrayRef(Arr); } diff --git a/mlir/lib/Dialect/SPIRV/Transforms/SPIRVWebGPUTransforms.cpp b/mlir/lib/Dialect/SPIRV/Transforms/SPIRVWebGPUTransforms.cpp --- a/mlir/lib/Dialect/SPIRV/Transforms/SPIRVWebGPUTransforms.cpp +++ b/mlir/lib/Dialect/SPIRV/Transforms/SPIRVWebGPUTransforms.cpp @@ -130,7 +130,7 @@ Value high = combineDigits(resultDigits[2], resultDigits[3]); return rewriter.create( - loc, mulOp->getResultTypes().front(), llvm::makeArrayRef({low, high})); + loc, mulOp->getResultTypes().front(), llvm::ArrayRef({low, high})); } //===----------------------------------------------------------------------===// diff --git a/mlir/lib/Dialect/Transform/IR/TransformInterfaces.cpp b/mlir/lib/Dialect/Transform/IR/TransformInterfaces.cpp --- a/mlir/lib/Dialect/Transform/IR/TransformInterfaces.cpp +++ b/mlir/lib/Dialect/Transform/IR/TransformInterfaces.cpp @@ -394,7 +394,7 @@ assert(paramSegments[position].data() == nullptr && "params already set"); size_t start = this->params.size(); llvm::append_range(this->params, params); - paramSegments[position] = makeArrayRef(this->params).drop_front(start); + paramSegments[position] = ArrayRef(this->params).drop_front(start); } ArrayRef