[PATCH] D73620: Add 'gpu.terminator' operation.

Stephan Herhut via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 29 05:04:19 PST 2020


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

The 'gpu.terminator' operation is used as the terminator for the
regions of gpu.launch. This is to disambugaute them from the
return operation on 'gpu.func' functions.

This is a breaking change and users of the gpu dialect will need
to adapt their code when producting 'gpu.launch' operations.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D73620

Files:
  mlir/include/mlir/Dialect/GPU/GPUOps.td
  mlir/lib/Conversion/LoopsToGPU/LoopsToGPU.cpp
  mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
  mlir/lib/Dialect/GPU/Transforms/KernelOutlining.cpp
  mlir/test/Conversion/LoopsToGPU/linalg_to_gpu.mlir
  mlir/test/Conversion/LoopsToGPU/step_one.mlir
  mlir/test/Dialect/GPU/canonicalize.mlir
  mlir/test/Dialect/GPU/invalid.mlir
  mlir/test/Dialect/GPU/ops.mlir
  mlir/test/Dialect/GPU/outlining.mlir
  mlir/test/mlir-cuda-runner/all-reduce-op.mlir
  mlir/test/mlir-cuda-runner/all-reduce-region.mlir
  mlir/test/mlir-cuda-runner/gpu-to-cubin.mlir
  mlir/test/mlir-cuda-runner/shuffle.mlir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73620.241118.patch
Type: text/x-patch
Size: 16457 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200129/5d6aeae0/attachment.bin>


More information about the llvm-commits mailing list