diff options
author | Fabian Schuiki <fabian@schuiki.ch> | 2021-06-07 17:33:23 +0200 |
---|---|---|
committer | Fabian Schuiki <fabian@schuiki.ch> | 2021-06-08 14:45:19 +0200 |
commit | 41eb2cec47986d8128c0ef03164a007b0db67127 (patch) | |
tree | f6719e146508207fff4ee8b7b8e3b138e9c8c677 /llvm/lib/Support/TargetParser.cpp | |
parent | 0f9d299122f1223e93c54f10401a608f5d481314 (diff) | |
download | llvm-41eb2cec47986d8128c0ef03164a007b0db67127.zip llvm-41eb2cec47986d8128c0ef03164a007b0db67127.tar.gz llvm-41eb2cec47986d8128c0ef03164a007b0db67127.tar.bz2 |
[MLIR] Mark additional builtin attr methods const
* Mark the following methods const:
* `ArrayAttr::getAsRange`
* `ArrayAttr::getAsValueRange`
* `DictionaryAttr::getAs`
* Make `DictionarAttr::getAs` generic over the name class, such that
`Identifier` and `StringRef` arguments get forwarded to the underlying
call to `get`. (Made generic to avoid introducing a dependency on
`include/mlir/IR/Identifier.h` as per the diff discussion.)
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D103822
Diffstat (limited to 'llvm/lib/Support/TargetParser.cpp')
0 files changed, 0 insertions, 0 deletions