llvm/mlir/tools/mlir-tblgen
Mogball 4957518ef5 [mlir][ods] Simplify useDefaultType/AttributePrinterParser
The current behaviour of `useDefaultTypePrinterParser` and `useDefaultAttributePrinterParser` is that they are set by default, but the dialect generator only generates the declarations for the parsing and printing hooks if it sees dialect types and attributes. Same goes for the definitions generated by the AttrOrTypeDef generator.

This can lead to confusing and undesirable behaviour if the dialect generator doesn't see the definitions of the attributes and types, for example, if they are sensibly separated into different files: `Dialect.td`, `Ops.td`, `Attributes.td`, and `Types.td`.

Now, these bits are unset by default. Setting them will always result in the dialect generator emitting the declarations for the parsing hooks. And if the AttrOrTypeDef generator sees it set, it will generate the default implementations.

Reviewed By: rriddle, stellaraccident

Differential Revision: https://reviews.llvm.org/D125809
2022-05-18 17:22:11 +00:00
..
AttrOrTypeDefGen.cpp [mlir][ods] Simplify useDefaultType/AttributePrinterParser 2022-05-18 17:22:11 +00:00
AttrOrTypeFormatGen.cpp [mlir][ods] Ignore AttributeSelfTypeParameter in assembly formats 2022-05-16 20:23:54 +00:00
AttrOrTypeFormatGen.h
CMakeLists.txt
CodeGenHelpers.cpp [mlir:ODS] Support using attributes in AllTypesMatch to automatically add InferTypeOpInterface 2022-04-28 12:57:59 -07:00
DialectGen.cpp [mlir][ods] Simplify useDefaultType/AttributePrinterParser 2022-05-18 17:22:11 +00:00
DialectGenUtilities.h [mlir] Restrict dialect doc gen to a single dialect 2022-05-16 15:35:07 -07:00
DirectiveCommonGen.cpp [mlir][ods] Remove StrEnumAttr 2022-04-13 17:49:02 +00:00
DocGenUtilities.h
EnumsGen.cpp [mlir] Update LLVMIR Fastmath flags use of MLIR BitEnum functionality 2022-05-17 18:19:14 +00:00
FormatGen.cpp
FormatGen.h
LLVMIRConversionGen.cpp
LLVMIRIntrinsicGen.cpp
mlir-tblgen.cpp
OpClass.cpp
OpClass.h
OpDefinitionsGen.cpp [mlir] Rename Zero* traits to Zero*s 2022-05-14 00:20:28 +00:00
OpDocGen.cpp [mlir] Restrict dialect doc gen to a single dialect 2022-05-16 15:35:07 -07:00
OpFormatGen.cpp [mlir][ods] Fix verification of attribute + colon type ambiguity 2022-05-16 21:15:27 +00:00
OpFormatGen.h
OpGenHelpers.cpp
OpGenHelpers.h
OpInterfacesGen.cpp
OpPythonBindingGen.cpp
PassCAPIGen.cpp
PassDocGen.cpp
PassGen.cpp
RewriterGen.cpp [mlir][ods] Remove StrEnumAttr 2022-04-13 17:49:02 +00:00
SPIRVUtilsGen.cpp
StructsGen.cpp