[PATCH] D78974: [mlir][StandardToSPIRV] Emulate bitwidths not supported for load op.

Han-Chung Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 27 17:48:53 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.

The current implementation in SPIRVTypeConverter just unconditionally turns
everything into 32-bit if it doesn't meet the requirements of extensions or
capabilities. In this case, we can load a 32-bit value and then do bit
extraction to get the value.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78974

Files:
  mlir/lib/Conversion/StandardToSPIRV/ConvertStandardToSPIRV.cpp
  mlir/lib/Dialect/SPIRV/SPIRVLowering.cpp
  mlir/test/Conversion/StandardToSPIRV/std-ops-to-spirv.mlir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78974.260510.patch
Type: text/x-patch
Size: 5739 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200428/c27203d3/attachment.bin>


More information about the llvm-commits mailing list