[PATCH] D80411: [mlir][spirv] Lower allocation/deallocations of workgroup memory.
Mahesh Ravishankar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 21 15:12:05 PDT 2020
mravishankar created this revision.
Herald added subscribers: llvm-commits, jurahul, Kayjukh, frgossen, grosul1, bader, Joonsoo, stephenneuendorffer, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, csigg, nicolasvasilache, antiagainst, shauheen, jpienaar, rriddle, mehdi_amini.
Herald added a reviewer: antiagainst.
Herald added a reviewer: herhut.
Herald added a project: LLVM.
This allocation of a workgroup memory is lowered to a
spv.globalVariable. Only static size allocation with element type
being int or float is handled. The lowering does account for the
element type that are not supported in the lowered spv.module based on
the extensions/capabilities and adjusts the number of elements to get
the same byte length.
Depends On D80365 <https://reviews.llvm.org/D80365>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D80411
Files:
mlir/include/mlir/Dialect/SPIRV/SPIRVLowering.h
mlir/lib/Conversion/StandardToSPIRV/ConvertStandardToSPIRV.cpp
mlir/lib/Dialect/SPIRV/SPIRVLowering.cpp
mlir/test/Conversion/GPUToSPIRV/load-store.mlir
mlir/test/Conversion/GPUToSPIRV/loop.mlir
mlir/test/Conversion/StandardToSPIRV/alloc.mlir
mlir/test/Conversion/StandardToSPIRV/std-ops-to-spirv.mlir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80411.265614.patch
Type: text/x-patch
Size: 20053 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200521/8e982445/attachment.bin>
More information about the llvm-commits
mailing list