Commit 17717c4
committed
[MLIR][LLVMIR] Import: fix function attribute inheritance on call attributes
Before this PR `inst->getFnAttr(Kind)` fallbacks to check if the parent has an
attribute, which breaks roundtriping the LLVM IR. It's possible to argue that
this small optimization isn't harmful, but seems too early if it's breaking
roundtrip behavior.1 parent f3effc2 commit 17717c4
File tree
2 files changed
+26
-3
lines changed- mlir
- lib/Target/LLVMIR
- test/Target/LLVMIR/Import
2 files changed
+26
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2263 | 2263 | | |
2264 | 2264 | | |
2265 | 2265 | | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
2266 | 2271 | | |
2267 | | - | |
2268 | | - | |
2269 | | - | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
2270 | 2275 | | |
2271 | 2276 | | |
2272 | 2277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments