[Mlir-commits] [mlir] 9eec528 - [mlir][ods] Add cppClassName to ConfinedType
Jeff Niu
llvmlistbot at llvm.org
Wed Sep 14 18:16:25 PDT 2022
Author: Jeff Niu
Date: 2022-09-14T18:16:07-07:00
New Revision: 9eec5284c79467a736f0ce819f9ef61379324b05
URL: https://github.com/llvm/llvm-project/commit/9eec5284c79467a736f0ce819f9ef61379324b05
DIFF: https://github.com/llvm/llvm-project/commit/9eec5284c79467a736f0ce819f9ef61379324b05.diff
LOG: [mlir][ods] Add cppClassName to ConfinedType
So ODS can generate `OneTypedResult` when a ConfinedType is used as a
result type.
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D133893
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 65d537ecd68ef..25068bb66af6a 100644
--- a/mlir/include/mlir/IR/OpBase.td
+++ b/mlir/include/mlir/IR/OpBase.td
@@ -359,7 +359,7 @@ class AllOfType<list<Type> allowedTypes, string summary = "",
// A type that satisfies additional predicates.
class ConfinedType<Type type, list<Pred> predicates, string summary = "",
- string cppClassName = "::mlir::Type"> : Type<
+ string cppClassName = type.cppClassName> : Type<
And<!listconcat([type.predicate], !foreach(pred, predicates, pred))>,
summary, cppClassName>;
More information about the Mlir-commits
mailing list