Avoids needing the two parallel functions as NamedAttrList already takes care
of caching/passing through DictionaryAttr. Most cases were already supported
via implicit conversion, but add a few more cases for NamedAttrList that would
have required double implicit conversion.
Details
Details
- Reviewers
rriddle - Commits
- rG0db084d4c701: [mlir] Switch create to use NamedAttrList&&
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| mlir/include/mlir/IR/OperationSupport.h | ||
|---|---|---|
| 493–499 | Let's please avoid this, can we just have a templated range method instead? | |
Comment Actions
Use more generic templated constructor for NamedAttrList
| mlir/include/mlir/IR/OperationSupport.h | ||
|---|---|---|
| 493–499 | Like so? | |
| mlir/include/mlir/IR/OperationSupport.h | ||
|---|---|---|
| 493–499 | Yep, thanks. | |
Let's please avoid this, can we just have a templated range method instead?