While we figure out how to best add Standard support for scalable
vectors, these instructions provide a workaround for basic arithmetic
between scalable vectors.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Is there an integration test running on some simulator that could be added in the future (similar to what we have for AVX512 and AMX) ?
mlir/include/mlir/Dialect/ArmSVE/ArmSVE.td | ||
---|---|---|
311–315 | We shouldn't be needing this if assemblyFormat is used. | |
512–518 | Nit: I wonder if it isn't simpler to define a ScalableFPOp class and factor out all common parts (arguments, results, assembly format, traits) into it so that concrete classes only need name + doc. | |
mlir/lib/Dialect/ArmSVE/IR/ArmSVEDialect.cpp | ||
49–55 ↗ | (On Diff #338798) | Please add tests for user-visible error messages. |
mlir/test/Dialect/ArmSVE/legalize-for-llvm.mlir | ||
48 | Could we also check the converted type at least once? |
Address comments
mlir/include/mlir/Dialect/ArmSVE/ArmSVE.td | ||
---|---|---|
354 | Yes, I noticed while refactoring. Too much auto-pilot :-/ | |
512–518 | Is this alright or did I over do it? I'm happy to move the summary and description back to each definition if this is too much. | |
mlir/lib/Dialect/ArmSVE/IR/ArmSVEDialect.cpp | ||
49–55 ↗ | (On Diff #338798) | I've dropped this part of the change, it's going to require more than this to avoid the assert, I'd rather move it to its own patch. |
I believe we can use qemu, but I wouldn't know how to write the CI test. I'll ask around just in case it already exists, otherwise I'll need some time to look into it.
I can't land revisions myself, if nobody else has any issues with the patch, please do that when ready. Thanks!
We shouldn't be needing this if assemblyFormat is used.