[Mlir-commits] [mlir] [mlir][ODS] Optionally generate public C++ functions for type constraints (PR #104577)
Jacques Pienaar
llvmlistbot at llvm.org
Fri Aug 16 10:56:05 PDT 2024
================
@@ -1097,6 +1097,10 @@ def Builtin_UnrankedTensor : Builtin_Type<"UnrankedTensor", "unranked_tensor", [
// VectorType
//===----------------------------------------------------------------------===//
+def Builtin_VectorTypeElementType : AnyTypeOf<[AnyInteger, Index, AnyFloat]> {
----------------
jpienaar wrote:
I was running into something like this too, I think at least for all of these a dialect is specified. So one could either filter on dialect in generation, or we could require that every dialect has one "main" file where it sets the current dialect and then the generator would always just consider that one for given main file unless overridden (I feel like there is too much filter command line flags while the common case matches this)
https://github.com/llvm/llvm-project/pull/104577
More information about the Mlir-commits
mailing list