[Mlir-commits] [mlir] [mlir][ODS] Optionally generate public C++ functions for type constraints (PR #104577)
Matthias Springer
llvmlistbot at llvm.org
Fri Aug 16 03:13:43 PDT 2024
================
@@ -1097,6 +1097,10 @@ def Builtin_UnrankedTensor : Builtin_Type<"UnrankedTensor", "unranked_tensor", [
// VectorType
//===----------------------------------------------------------------------===//
+def Builtin_VectorTypeElementType : AnyTypeOf<[AnyInteger, Index, AnyFloat]> {
----------------
matthias-springer wrote:
I'm wondering if this should go into a separate `.td` file. Otherwise there could be multiple definitions of the same C++ function if `BuiltinTypes.td` is included in another C++ file for which type constraints are also generated.
https://github.com/llvm/llvm-project/pull/104577
More information about the Mlir-commits
mailing list