llvm-project/mlir/tools/mlir-tblgen
Martin Waitz 72df59d590 [mlir] resolve types from attributes in assemblyFormat
An operation can specify that an operation or result type matches the
type of another operation, result, or attribute via the `AllTypesMatch`
or `TypesMatchWith` constraints.

Use these constraints to also automatically resolve types in the
automatically generated assembly parser.
This way, only the attribute needs to be listed in `assemblyFormat`,
e.g. for constant operations.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D78434
2020-07-07 04:40:01 +00:00
..
CMakeLists.txt [MLIR] LLVMMLIRTableGen -> MLIRTableGen 2020-05-19 14:49:32 -07:00
DialectGen.cpp [mlir] Refactor InterfaceGen to support generating interfaces for Attributes and Types. 2020-06-30 15:52:33 -07:00
DocGenUtilities.h Mass update the MLIR license header to mention "Part of the LLVM project" 2020-01-26 03:58:30 +00:00
EnumsGen.cpp [mlir-tblgen] Use fully qualified names in generated code files 2020-06-26 15:05:33 +02:00
LLVMIRConversionGen.cpp [mlir][ODS] Add support for optional operands and results with a new Optional directive. 2020-04-10 14:12:06 -07:00
LLVMIRIntrinsicGen.cpp [MLIR] Rename SideEffects.td -> SideEffectInterfaces.td 2020-05-12 12:21:42 -07:00
OpDefinitionsGen.cpp [mlir] Change ODS to have include and exclude regex 2020-07-06 09:55:10 -07:00
OpDocGen.cpp [mlir] Revamp operation documentation generation 2020-03-24 12:05:18 -07:00
OpFormatGen.cpp [mlir] resolve types from attributes in assemblyFormat 2020-07-07 04:40:01 +00:00
OpFormatGen.h [mlir] Add initial support for parsing a declarative operation assembly format 2020-01-30 11:43:40 -08:00
OpInterfacesGen.cpp [mlir] Refactor InterfaceGen to support generating interfaces for Attributes and Types. 2020-06-30 15:52:33 -07:00
PassDocGen.cpp [mlir][Pass] Update the PassGen to generate base classes instead of utilities 2020-04-07 14:08:52 -07:00
PassGen.cpp [mlir-tblgen] Use fully qualified names in generated code files 2020-06-26 15:05:33 +02:00
RewriterGen.cpp [mlir-tblgen] Use fully qualified names in generated code files 2020-06-26 15:05:33 +02:00
SPIRVUtilsGen.cpp [mlir] Refactor InterfaceGen to support generating interfaces for Attributes and Types. 2020-06-30 15:52:33 -07:00
StructsGen.cpp [mlir-tblgen] Use fully qualified names in generated code files 2020-06-26 15:05:33 +02:00
mlir-tblgen.cpp Mass update the MLIR license header to mention "Part of the LLVM project" 2020-01-26 03:58:30 +00:00