[PATCH] D75052: [MLIR][GPU] Properly model step in parallel loop to gpu conversion.

Stephan Herhut via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 24 07:35:45 PST 2020


herhut created this revision.
Herald added subscribers: llvm-commits, Joonsoo, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, csigg, nicolasvasilache, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini.
Herald added a reviewer: mravishankar.
Herald added a project: LLVM.

The original patch had TODOs to add support for step computations,
which this commit addresses. The computations are expressed using
affine expressions so that the affine canonicalizers can simplify
the full bound and index computations.

Also cleans up the code a little and exposes the pass in the
header file.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D75052

Files:
  mlir/include/mlir/Conversion/LoopsToGPU/LoopsToGPUPass.h
  mlir/lib/Conversion/LoopsToGPU/LoopsToGPU.cpp
  mlir/lib/Conversion/LoopsToGPU/LoopsToGPUPass.cpp
  mlir/test/Conversion/LoopsToGPU/parallel_loop.mlir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75052.246205.patch
Type: text/x-patch
Size: 43204 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200224/06fddb2f/attachment.bin>


More information about the llvm-commits mailing list