[Mlir-commits] [mlir] 7355364 - Put back makeArrayRef to make GCC 5 happy
Benjamin Kramer
llvmlistbot at llvm.org
Sat Feb 8 07:15:26 PST 2020
Author: Benjamin Kramer
Date: 2020-02-08T16:15:09+01:00
New Revision: 7355364f63eac9d20c0abb5ce213ba478e8ea8f1
URL: https://github.com/llvm/llvm-project/commit/7355364f63eac9d20c0abb5ce213ba478e8ea8f1
DIFF: https://github.com/llvm/llvm-project/commit/7355364f63eac9d20c0abb5ce213ba478e8ea8f1.diff
LOG: Put back makeArrayRef to make GCC 5 happy
Added:
Modified:
mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.h
mlir/lib/Dialect/VectorOps/VectorOps.cpp
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.h b/mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.h
index 37cdb2c0a7b0..fbe97bce28c6 100644
--- a/mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.h
+++ b/mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.h
@@ -64,7 +64,7 @@ inline ArrayRef<StringRef> getAllIteratorTypeNames() {
static constexpr StringRef names[3] = {getParallelIteratorTypeName(),
getReductionIteratorTypeName(),
getWindowIteratorTypeName()};
- return names;
+ return llvm::makeArrayRef(names);
}
/// Returns the iterator of a certain type.
diff --git a/mlir/lib/Dialect/VectorOps/VectorOps.cpp b/mlir/lib/Dialect/VectorOps/VectorOps.cpp
index cae22e4bfc4b..35de10270f97 100644
--- a/mlir/lib/Dialect/VectorOps/VectorOps.cpp
+++ b/mlir/lib/Dialect/VectorOps/VectorOps.cpp
@@ -280,7 +280,7 @@ static LogicalResult verify(ContractionOp op) {
ArrayRef<StringRef> ContractionOp::getTraitAttrNames() {
static constexpr StringRef names[2] = {getIndexingMapsAttrName(),
getIteratorTypesAttrName()};
- return names;
+ return llvm::makeArrayRef(names);
}
static int64_t getResultIndex(AffineMap map, AffineExpr targetExpr) {
More information about the Mlir-commits
mailing list