Add conversion to the SPIR-V and LLVM dialects.
This was originally proposed in:
https://discourse.llvm.org/t/rfc-arith-add-extended-multiplication-ops/66869.
Paths
| Differential D139688
[mlir][arith] Define mului_extended op ClosedPublic Authored by kuhar on Dec 8 2022, 6:40 PM.
Details Summary Add conversion to the SPIR-V and LLVM dialects. This was originally proposed in:
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Dec 9 2022, 10:03 AM Closed by commit rGb4bdcea2148f: [mlir][arith] Define mului_extended op (authored by kuhar). · Explain WhyDec 9 2022, 2:38 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 481752 mlir/include/mlir/Dialect/Arith/IR/ArithOps.td
mlir/lib/Conversion/ArithToLLVM/ArithToLLVM.cpp
mlir/lib/Conversion/ArithToSPIRV/ArithToSPIRV.cpp
mlir/lib/Dialect/Arith/IR/ArithCanonicalization.td
mlir/lib/Dialect/Arith/IR/ArithOps.cpp
mlir/test/Conversion/ArithToLLVM/arith-to-llvm.mlir
mlir/test/Conversion/ArithToSPIRV/arith-to-spirv.mlir
mlir/test/Dialect/Arith/canonicalize.mlir
mlir/test/Dialect/Arith/ops.mlir
mlir/tools/mlir-tblgen/RewriterGen.cpp
|
If it's constant then results will have the corresponding OpFoldResult being an Attribute. We can check that to avoid doing matching again here.