[PATCH] D76165: [mlir][GPU] Use StructAttr to drive lowering from loop.parallel to gpu.launch
Mahesh Ravishankar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 13 15:07:58 PDT 2020
mravishankar created this revision.
Herald added subscribers: llvm-commits, Joonsoo, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, csigg, nicolasvasilache, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini, mgorny.
Herald added a reviewer: herhut.
Herald added a project: LLVM.
mravishankar retitled this revision from "[mlir][GPU] Use StructAttr to driver lowering from loop.parallel to gpu.launch" to "[mlir][GPU] Use StructAttr to drive lowering from loop.parallel to gpu.launch".
mravishankar added reviewers: ftynse, antiagainst.
mravishankar added a subscriber: hanchung.
Current implementation of lowering from loop.parallel to gpu.launch
uses a DictionaryAttr to specify the mapping. Moving this attribute to
be auto-generated from specification as a StructAttr. This simplifies
a lot the logic of looking up and creating this attribute.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D76165
Files:
mlir/include/mlir/Dialect/GPU/CMakeLists.txt
mlir/include/mlir/Dialect/GPU/GPUBase.td
mlir/include/mlir/Dialect/GPU/GPUOps.td
mlir/include/mlir/Dialect/GPU/ParallelLoopMapper.h
mlir/include/mlir/Dialect/GPU/ParallelLoopMapperAttr.td
mlir/lib/Conversion/LoopsToGPU/LoopsToGPU.cpp
mlir/lib/Dialect/GPU/CMakeLists.txt
mlir/lib/Dialect/GPU/Transforms/ParallelLoopMapper.cpp
mlir/test/Conversion/LoopsToGPU/parallel_loop.mlir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76165.250309.patch
Type: text/x-patch
Size: 22174 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200313/172c6a1d/attachment.bin>
More information about the llvm-commits
mailing list