diff options
| author | Oleksandr "Alex" Zinenko <zinenko@google.com> | 2024-01-03 16:33:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-03 16:33:27 +0100 |
| commit | c1eab57673ef3eb2842c0fbe454d7878854cf54c (patch) | |
| tree | 390051b250f6c0258420f602d7b37ff9ff0dd236 /llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp | |
| parent | 82e33d6203f62c0be16f8da8d4178e7fa9e790ea (diff) | |
| download | llvm-c1eab57673ef3eb2842c0fbe454d7878854cf54c.zip llvm-c1eab57673ef3eb2842c0fbe454d7878854cf54c.tar.gz llvm-c1eab57673ef3eb2842c0fbe454d7878854cf54c.tar.bz2 | |
[mlir] fix Operation::getDiscardableAttrs in absence of properties (#76816)
When properties are not enabled in an operation, inherent attributes are
stored in the common dictionary with discardable attributes. However,
`getDiscardableAttrs` and `getDiscardableAttrDictionary` were returning
the entire dictionary, making the caller mistakenly believe that all
inherent attributes are discardable. Fix this by filtering out
attributes whose names are registered with the operation, i.e., inherent
attributes. This requires an API change so `getDiscardableAttrs` returns
a filter range.
Diffstat (limited to 'llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions
