[Mlir-commits] [mlir] [mlir][ODS] Optionally generate public C++ functions for type constraints (PR #104577)

River Riddle llvmlistbot at llvm.org
Fri Aug 16 11:05:13 PDT 2024


================
@@ -1097,6 +1097,10 @@ def Builtin_UnrankedTensor : Builtin_Type<"UnrankedTensor", "unranked_tensor", [
 // VectorType
 //===----------------------------------------------------------------------===//
 
+def Builtin_VectorTypeElementType : AnyTypeOf<[AnyInteger, Index, AnyFloat]> {
----------------
River707 wrote:

I think we should do the same thing that we do for interfaces: Ignore everything not in the direct file that is being generated. I am a bit concerned about how we handle constraint generation, because there are so many of them spread across nearly every .td file. I think we need to be careful about how/which ones get generated (probably even more so than interfaces).

https://github.com/llvm/llvm-project/pull/104577


More information about the Mlir-commits mailing list