Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thanks! Can we also add some tests for the operation here and serialization roundtrip tests here. This is in keeping with the procedure to add new op here
Hi!
It's glad to see this patch is accepted. As a first-time contributor, it seems I do not have the commit access to this project. Can you help me commit this change?
mlir/include/mlir/Dialect/SPIRV/SPIRVGLSLOps.td | ||
---|---|---|
268–278 | A side question: These ops seem to be introducing a whole lot of duplication. Has SPIRV just considered using std dialect operations where they have the same semantics and are on the same operand types? sine, arcsine, tan, pow, exp, .. are all mathematically the same irrespective of which dialect they live in. If there are slight differences in semantics, a new op could be introduced briefly documenting the deviation. What are the benefits on creating <dialect_name>.op aliases? If there are no type conversions needed, why shouldn't/can't we mix std dialect ops? |
A side question: These ops seem to be introducing a whole lot of duplication. Has SPIRV just considered using std dialect operations where they have the same semantics and are on the same operand types? sine, arcsine, tan, pow, exp, .. are all mathematically the same irrespective of which dialect they live in. If there are slight differences in semantics, a new op could be introduced briefly documenting the deviation. What are the benefits on creating <dialect_name>.op aliases? If there are no type conversions needed, why shouldn't/can't we mix std dialect ops?