Details
- Reviewers
kuhar - Commits
- rG52aaac635a0f: [mlir][spirv][complex] Support convert complex.constant
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Address comments
mlir/lib/Conversion/ComplexToSPIRV/ComplexToSPIRV.cpp | ||
---|---|---|
37–38 | Ah, interesting. Didn't notice this overwrite! | |
mlir/test/Conversion/ComplexToSPIRV/complex-to-spirv.mlir | ||
44 | complext.constant does not support creating vectors. https://mlir.llvm.org/docs/Dialects/ComplexOps/#complexconstant-mlircomplexconstantop. You mean using arith.constant or something? Also right now we don't support vector of complex type yet---see callers of https://github.com/llvm/llvm-project/blob/main/mlir/lib/Dialect/SPIRV/Transforms/SPIRVConversion.cpp#L338. |
If we expect this to be a shaped type later on, we can do convertType<ShapedType>(constOp.getType());