[PATCH] D79143: [mlir][StandardToSPIRV] Add support for lowering integer casting.
Han-Chung Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 29 16:46:14 PDT 2020
hanchung created this revision.
hanchung added reviewers: mravishankar, antiagainst, denis13.
Herald added subscribers: llvm-commits, Kayjukh, frgossen, grosul1, bader, Joonsoo, liufengdb, lucyrfox, mgester, arpith-jacob, nicolasvasilache, shauheen, jpienaar, rriddle, mehdi_amini.
Herald added a project: LLVM.
Maps ZeroExtendIOp and TruncateIOp to spirv::SConvertOp.
Depends On D78974 <https://reviews.llvm.org/D78974>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D79143
Files:
mlir/lib/Conversion/StandardToSPIRV/ConvertStandardToSPIRV.cpp
Index: mlir/lib/Conversion/StandardToSPIRV/ConvertStandardToSPIRV.cpp
===================================================================
--- mlir/lib/Conversion/StandardToSPIRV/ConvertStandardToSPIRV.cpp
+++ mlir/lib/Conversion/StandardToSPIRV/ConvertStandardToSPIRV.cpp
@@ -754,6 +754,8 @@
CmpFOpPattern, CmpIOpPattern, IntLoadOpPattern, LoadOpPattern,
ReturnOpPattern, SelectOpPattern, StoreOpPattern,
TypeCastingOpPattern<SIToFPOp, spirv::ConvertSToFOp>,
+ TypeCastingOpPattern<ZeroExtendIOp, spirv::SConvertOp>,
+ TypeCastingOpPattern<TruncateIOp, spirv::SConvertOp>,
TypeCastingOpPattern<FPExtOp, spirv::FConvertOp>,
TypeCastingOpPattern<FPTruncOp, spirv::FConvertOp>, XOrOpPattern>(
context, typeConverter);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79143.261089.patch
Type: text/x-patch
Size: 767 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200429/7a20a6c6/attachment.bin>
More information about the llvm-commits
mailing list