[Mlir-commits] [mlir] 53d4ff4 - [mlir] Simplify is_splat use in MatchAllPred. NFC.
Jakub Kuderski
llvmlistbot at llvm.org
Mon Aug 15 10:19:42 PDT 2022
Author: Jakub Kuderski
Date: 2022-08-15T13:18:11-04:00
New Revision: 53d4ff4a4783d8b0a37e5349eace738f4aceed7c
URL: https://github.com/llvm/llvm-project/commit/53d4ff4a4783d8b0a37e5349eace738f4aceed7c
DIFF: https://github.com/llvm/llvm-project/commit/53d4ff4a4783d8b0a37e5349eace738f4aceed7c.diff
LOG: [mlir] Simplify is_splat use in MatchAllPred. NFC.
This is a simple cleanup after https://reviews.llvm.org/D131289.
Reviewed By: antiagainst, Mogball
Differential Revision: https://reviews.llvm.org/D131895
Added:
Modified:
mlir/include/mlir/IR/OpBase.td
Removed:
################################################################################
diff --git a/mlir/include/mlir/IR/OpBase.td b/mlir/include/mlir/IR/OpBase.td
index 3490384f18739..9e2b7ab062643 100644
--- a/mlir/include/mlir/IR/OpBase.td
+++ b/mlir/include/mlir/IR/OpBase.td
@@ -2288,8 +2288,7 @@ class ElementCount<string name> :
class ElementType<string name> : StrFunc<"getElementTypeOrSelf($" # name # ")">;
class AllMatchPred<list<string> values> :
- CPred<"::llvm::is_splat(::llvm::makeArrayRef({"
- # !interleave(values, ", ") #"}))">;
+ CPred<"::llvm::is_splat({" # !interleave(values, ", ") # "})">;
class AllMatch<list<string> values, string summary> :
PredOpTrait<summary, AllMatchPred<values>>;
More information about the Mlir-commits
mailing list