Repository navigation
Commit 28549ef
committed
Integrate LLVM at llvm/llvm-project@0f3ca6bb9ca5
Bump LLVM pin to 0f3ca6bb9ca514518c55fc02855a6083312ddfe2 and migrate
to the new MLIR complex element type API.
LLVM commit 0ff5c32c2821 ("[mlir] Use custom mlir::Complex type for
non-float complex numbers") changed the `DenseElementsAttr::get` and
`SplatElementsAttr::get` complex overloads to take
`ArrayRef<mlir::Complex<T>>` instead of `ArrayRef<std::complex<T>>`.
For `T = APFloat`/`APInt`, `mlir::Complex<T>` resolves to
`NonFloatComplex<T>` since neither type satisfies
`std::is_floating_point_v`. The two existing call sites that
constructed `std::complex<APFloat>` for these helpers no longer
compile.
Replace `std::complex<APFloat>` with `mlir::Complex<APFloat>` at the
call sites that feed `DenseElementsAttr::get` /
`SplatElementsAttr::get`.1 parent 4313da9 commit 28549ef
4 files changed
Lines changed: 7 additions & 7 deletions
File tree
- build_tools
- stablehlo
- reference
- transforms
- optimization
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
539 | 539 | | |
540 | 540 | | |
541 | 541 | | |
542 | | - | |
543 | | - | |
| 542 | + | |
| 543 | + | |
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | | - | |
555 | | - | |
| 554 | + | |
| 555 | + | |
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
0 commit comments