[PATCH] D78541: [MLIR] Ensure `gpu.func` must be inside a `gpu.module`.

Frederik Gossen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 21 00:30:33 PDT 2020


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

Verify that `gpu.func` can only live inside a `gpu.module`.
Update tests accordingly.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78541

Files:
  mlir/include/mlir/Dialect/GPU/GPUBase.td
  mlir/include/mlir/Dialect/GPU/GPUOps.td
  mlir/test/Dialect/GPU/all-reduce-max.mlir
  mlir/test/Dialect/GPU/all-reduce.mlir
  mlir/test/Dialect/GPU/invalid.mlir
  mlir/test/Dialect/GPU/ops.mlir
  mlir/test/Dialect/GPU/promotion.mlir
  mlir/test/lib/Transforms/TestGpuMemoryPromotion.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78541.258911.patch
Type: text/x-patch
Size: 16586 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200421/bf135904/attachment.bin>


More information about the llvm-commits mailing list