llvm-capstone/mlir/tools/mlir-tblgen
Billy Zhu 595d780b49
[MLIR][ODS] Check hasProperties when generating populateDefaultAttrs (#78525)
Currently ODS generates `populateDefaultAttrs` or
`populateDefaultProperties` based on whether the dialect opted into
usePropertiesForAttributes. But since individual ops might get opted
into using properties (as long as it has one property), it should
actually just check whether the op itself uses properties. Otherwise
`populateDefaultAttrs` will overwrite existing attrs inside properties
when creating an op. Understandably this becomes moot once everything
switches over to using properties, but this fixes it for now.

This PR makes ODS generate `populateDefaultProperties` as long as the op
itself uses properties.
2024-01-18 21:57:20 -08:00
..
AttrOrTypeDefGen.cpp [mlir] Expose type and attribute names in the MLIRContext and abstract type/attr classes (#72189) 2023-12-01 00:39:34 +01:00
AttrOrTypeFormatGen.cpp [mlir][ods] Support using custom directives as first optional group element 2023-08-31 03:20:54 +00:00
AttrOrTypeFormatGen.h [mlir][ods] Make Attr/Type def accessors match the dialect 2022-06-14 05:13:24 +00:00
BytecodeDialectGen.cpp [mlir][ods] Emit bytecode readers with generic Attribute/Type (NFC) 2023-10-24 08:06:51 +00:00
CMakeLists.txt [mlir] python enum bindings generator 2023-07-31 15:42:56 +00:00
DialectGen.cpp [mlir] Reformat whitespace in dependent dialects codegen (#78090) 2024-01-15 11:11:52 +01:00
DialectGenUtilities.h [TableGen] llvm::Optional => std::optional 2022-12-06 07:21:02 +00:00
DirectiveCommonGen.cpp
DocGenUtilities.h [MLIR][Doc] Also print summarys for passes on a newline 2023-06-13 09:26:11 +02:00
EnumPythonBindingGen.cpp [mlir][python bindings] generate all the enums 2023-08-23 15:03:55 -05:00
EnumsGen.cpp [llvm][tblgen] Add Source Filename for emitSourceFileHeader (#65744) 2023-09-26 13:40:56 +08:00
FormatGen.cpp [mlir][ods] Support using custom directives as first optional group element 2023-08-31 03:20:54 +00:00
FormatGen.h [mlir][ODS] Add support for passing properties to custom 2023-07-13 09:02:55 +02:00
LLVMIRConversionGen.cpp [mlir][llvm] Add debug label intrinsic 2023-06-29 06:31:13 +00:00
LLVMIRIntrinsicGen.cpp [mlir] Use StringRef::{starts,ends}_with (NFC) 2023-12-13 22:58:30 -08:00
mlir-tblgen.cpp [mlir][tblgen] Refact mlir-tblgen main into its own library 2022-08-06 14:07:37 +02:00
OpClass.cpp [ODS] Extra Concrete Declarations and Definitions under Traits 2023-07-12 08:46:19 -07:00
OpClass.h [ODS] Extra Concrete Declarations and Definitions under Traits 2023-07-12 08:46:19 -07:00
OpDefinitionsGen.cpp [MLIR][ODS] Check hasProperties when generating populateDefaultAttrs (#78525) 2024-01-18 21:57:20 -08:00
OpDocGen.cpp [mlir][doc] Escape effects, interfaces, and traits (#76297) 2023-12-23 21:48:33 +01:00
OpFormatGen.cpp add prop-dict support for custom directive for mlir-tblgen (#77061) 2024-01-05 12:37:24 +01:00
OpFormatGen.h
OpGenHelpers.cpp [mlir][python bindings] generate all the enums 2023-08-23 15:03:55 -05:00
OpGenHelpers.h [mlir][python bindings] generate all the enums 2023-08-23 15:03:55 -05:00
OpInterfacesGen.cpp [mlir] Support null interface to base conversion (#65988) 2023-09-12 08:42:47 +02:00
OpPythonBindingGen.cpp [mlir] Use StringRef::{starts,ends}_with (NFC) 2023-12-13 22:58:30 -08:00
PassCAPIGen.cpp [mlir] Fix -Wstrict-prototypes warning 2022-12-12 12:04:58 +00:00
PassDocGen.cpp [MLIR][Doc] Also print summarys for passes on a newline 2023-06-13 09:26:11 +02:00
PassGen.cpp [mlir] Reformat whitespace in dependent dialects codegen (#78090) 2024-01-15 11:11:52 +01:00
RewriterGen.cpp [mlir][drr] Set operand segment in rewrite 2023-10-19 13:06:17 -07:00
SPIRVUtilsGen.cpp [llvm][tblgen] Add Source Filename for emitSourceFileHeader (#65744) 2023-09-26 13:40:56 +08:00