[Mlir-commits] [mlir] [mlir][python] loosen infertype (PR #73620)
Maksim Levental
llvmlistbot at llvm.org
Tue Nov 28 00:18:31 PST 2023
https://github.com/makslevental updated https://github.com/llvm/llvm-project/pull/73620
>From 18672b305ff4b3109baa32784b4feb230db565e1 Mon Sep 17 00:00:00 2001
From: max <maksim.levental at gmail.com>
Date: Tue, 28 Nov 2023 02:17:19 -0600
Subject: [PATCH] [mlir][python] loosen infertype
---
mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp b/mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp
index 0c0ad2cfeffdcc2..a32dfd2f7c54220 100644
--- a/mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp
+++ b/mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp
@@ -582,8 +582,7 @@ static bool hasFirstAttrDerivedResultTypes(const Operator &op) {
/// Returns true if the InferTypeOpInterface can be used to infer result types
/// of the given operation.
static bool hasInferTypeInterface(const Operator &op) {
- return op.getTrait("::mlir::InferTypeOpInterface::Trait") &&
- op.getNumRegions() == 0;
+ return op.getTrait("::mlir::InferTypeOpInterface::Trait");
}
/// Returns true if there is a trait or interface that can be used to infer
More information about the Mlir-commits
mailing list