This revision adds support in the declarative assembly form for printing attributes with buildable types without the type.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
It seems the parsers/printers modified in this patch does not use the attribute-type-ellison feature introduced in this patch? Can we touch parsers/printers really uses this feature? Also should we document this? Otherwise it's subtle behavior users might find very confusing. (The modifications to parsers/printers in this patch can be split out.)
mlir/include/mlir/IR/OpBase.td | ||
---|---|---|
632 | Let's put some comments here as for what this field mean and what it's used for. We already have storageType, returnType. It can be quite confusing for somebody reading the code later. ;) | |
690 | We removed the BuildType requirement but mentioned it in the comment? | |
1237 | Should we also pass this through other attribute "decorators" like OptionalAttr and defaultValuedAttr? | |
mlir/lib/IR/AsmPrinter.cpp | ||
863 | Nit: double space before parser. ;) |
Oops, got carried away late at night and forgot to split. Thanks for the catch!
mlir/include/mlir/IR/OpBase.td | ||
---|---|---|
690 | An early revision reworked buildable types to be usable/settable outside of the BuildableType class. Changing BuildableType -> Type just allows for more buildable types to be used. |
Let's put some comments here as for what this field mean and what it's used for. We already have storageType, returnType. It can be quite confusing for somebody reading the code later. ;)