The support for attributes closely maps that of Types (basically 1-1) given that Attributes are defined in exactly the same way as Types. All of the current ODS TypeDef classes get an Attr equivalent. The generation of the attribute classes themselves share the same generator as types.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/IR/OpBase.td | ||
---|---|---|
2680 | Why not use TypeParameter alias from above? |
mlir/include/mlir/IR/OpBase.td | ||
---|---|---|
2680 | All of these parameter types apply equally to both AttrDef and TypeDef instances, so I didn't want to give an impression that they were specific to one of them and not the other. |
Why not use TypeParameter alias from above?