Repository navigation
Commit 7a0cd11
committed
Bump LLVM to llvm/llvm-project@0f3ca6bb9ca5
Bump externals/llvm-project to 0f3ca6bb9ca514518c55fc02855a6083312ddfe2
and migrate to the new MLIR complex element type API.
LLVM commit 0ff5c32c2821 changed the `DenseElementsAttr::get`
complex overloads to take `ArrayRef<mlir::Complex<T>>` instead of
`ArrayRef<std::complex<T>>`. For `T = APFloat`, `mlir::Complex<T>`
resolves to `NonFloatComplex<T>` since APFloat does not satisfy
`std::is_floating_point_v`, so the existing call site in
`TorchToLinalg/Linear.cpp` (FFT DFT matmul coefficient) no longer
compiles.
We need to replace `std::complex<APFloat>` with `mlir::Complex<APFloat>`
for the `SmallVector` element type and the per-element constructor in
`getDFTMatmulCoeff`.1 parent 46cbd27 commit 7a0cd11
4 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
Submodule llvm-project updated 10285 files
- build_tools/llvm_version.txt+1-1
- docs/generated/chlo.md+1
- docs/status.md+1-1
- stablehlo/dialect/ChloOps.cpp+27-54
- stablehlo/dialect/ChloOps.td+2-1
- stablehlo/dialect/TypeInference.cpp+12-1
- stablehlo/dialect/Version.cpp+1-1
- stablehlo/dialect/Version.h+1-1
- stablehlo/dialect/VhloAttrs.td+2-5
- stablehlo/dialect/VhloBytecode.cpp+14-3
- stablehlo/dialect/VhloOps.cpp+2-8
- stablehlo/integrations/c/StablehloAttributes.cpp+133
- stablehlo/integrations/c/StablehloAttributes.h+67
- stablehlo/integrations/python/StablehloModule.cpp+115
- stablehlo/integrations/python/tests/stablehlo.py+41-5
- stablehlo/reference/Ops.cpp+101-2
- stablehlo/reference/Ops.h+3
- stablehlo/reference/Tensor.cpp+4-4
- stablehlo/tests/infer_stablehlo.mlir+12
- stablehlo/tests/interpret/triangular_solve.mlir+270
- stablehlo/tests/ops_chlo.mlir+55-1
- stablehlo/tests/ops_stablehlo_quantized.mlir+2-2
- stablehlo/tests/transforms/stablehlo_aggressive_simplification.mlir+69-3
- stablehlo/tests/transforms/stablehlo_legalize_qdq_to_quantized_op.mlir+24-24
- stablehlo/transforms/StablehloLegalizeDeprecatedOps.cpp+1-1
- stablehlo/transforms/StablehloLegalizeToVhlo.cpp+2-2
- stablehlo/transforms/VhloLegalizeToStablehlo.cpp+27-8
- stablehlo/transforms/VhloToVersion.cpp+13-9
- stablehlo/transforms/optimization/StablehloAggressiveFolder.cpp+7-5
- stablehlo/transforms/optimization/StablehloAggressiveSimplificationPatterns.td+14-7
- third_party/llvm/build.patch+17-3
- third_party/llvm/workspace.bzl+2-2
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2346 | 2346 | | |
2347 | 2347 | | |
2348 | 2348 | | |
2349 | | - | |
| 2349 | + | |
2350 | 2350 | | |
2351 | 2351 | | |
2352 | 2352 | | |
| |||
2361 | 2361 | | |
2362 | 2362 | | |
2363 | 2363 | | |
2364 | | - | |
| 2364 | + | |
2365 | 2365 | | |
2366 | 2366 | | |
2367 | 2367 | | |
| |||
0 commit comments