diff --git a/mlir/include/mlir/IR/CommonTypeConstraints.td b/mlir/include/mlir/IR/CommonTypeConstraints.td index 45ec1846580f2..b682f4c025a46 100644 --- a/mlir/include/mlir/IR/CommonTypeConstraints.td +++ b/mlir/include/mlir/IR/CommonTypeConstraints.td @@ -576,7 +576,7 @@ class NormalizeIndex { class IsNthDimSizeIsOneOfPred allowedSizes> : And<[ CPred<"::llvm::cast<::mlir::ShapedType>($_self).getRank() >= " # NormalizeIndex.ret>, - CPred<"::llvm::is_contained(ArrayRef({" # !interleave(allowedSizes, ", ") # "}), " + CPred<"::llvm::is_contained(::llvm::ArrayRef({" # !interleave(allowedSizes, ", ") # "}), " # "::llvm::cast<::mlir::ShapedType>($_self).getDimSize(" # !if(!lt(n, 0), "::llvm::cast<::mlir::ShapedType>($_self).getRank() + " # n, @@ -585,7 +585,7 @@ class IsNthDimSizeIsOneOfPred allowedSizes> // Whether the shape of a vector matches the given `shape` list. class IsVectorOfShape shape> - : CPred<"::llvm::cast<::mlir::VectorType>($_self).getShape() == ArrayRef({" # !interleave(shape, ", ") # "})">; + : CPred<"::llvm::cast<::mlir::VectorType>($_self).getShape() == ::llvm::ArrayRef({" # !interleave(shape, ", ") # "})">; // Any vector where the number of elements is from the given // `allowedLengths` list