diff options
author | Krzysztof Drewniak <Krzysztof.Drewniak@amd.com> | 2025-03-05 13:17:40 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-05 13:17:40 -0600 |
commit | 35622a93bb034ad5c56e3a490060648b35ba49f1 (patch) | |
tree | 6401eb6baacd2a8891188c467206a3389083efec /mlir/lib/Target/LLVMIR/ModuleImport.cpp | |
parent | 6d4f8b1dbfd21811351bec205154992afddbc5ea (diff) | |
download | llvm-35622a93bb034ad5c56e3a490060648b35ba49f1.zip llvm-35622a93bb034ad5c56e3a490060648b35ba49f1.tar.gz llvm-35622a93bb034ad5c56e3a490060648b35ba49f1.tar.bz2 |
[mlir][ODS] Add a generated builder that takes the Properties struct (#124713)
This commit adds builders of the form
```
static void build(..., [TypeRange resultTypes],
ValueRange operands, const Properties &properties,
ArrayRef<NamedAttribute> discardableAttributes = {},
[unsigned numRegions]);
```
to go alongside the existing
result/operands/[inherent + discardable attribute list] collective
builders.
This change is intended to support a refactor to the declarative rewrite
engine to make it populate the `Properties` struct instead of creating a
`DictionaryAttr`, thus enabling rewrite rules to handle non-`Attribute`
properties.
More generally, this means that generic code that would previously call
`getAttrs()` to blend together inherent and discardable attributes can
now use `getProperties()` and `getDiscardableAttrs()` separately, thus
removing the need to serialize everything into a temporary
`DictionaryAttr`.
Diffstat (limited to 'mlir/lib/Target/LLVMIR/ModuleImport.cpp')
0 files changed, 0 insertions, 0 deletions