[MLIR] Make DictionaryAttr::getAs take name as && reference
authorFabian Schuiki <fabian@schuiki.ch>
Wed, 9 Jun 2021 08:03:18 +0000 (10:03 +0200)
committerFabian Schuiki <fabian@schuiki.ch>
Wed, 9 Jun 2021 08:04:40 +0000 (10:04 +0200)
commit41135a4367a75cf02d9873be7bd904456ce77329
treeef1dc83d1c9cb24f645ace8037731bf9f1785507
parent414482751452e54710f16bae58458c66298aaf69
[MLIR] Make DictionaryAttr::getAs take name as && reference

As a follow-up to the discussion in https://reviews.llvm.org/D103822,
make the templated `DictionaryAttr::getAs` take the name by `&&`
reference and properly forward the argument to the underlying `get`.
mlir/include/mlir/IR/BuiltinAttributes.td