[PATCH] D78540: [MLIR] Fix test case for kernel attribute.

Frederik Gossen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 22 00:30:51 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG28138027460d: [MLIR] Fix test case for kernel attribute. (authored by frgossen).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78540/new/

https://reviews.llvm.org/D78540

Files:
  mlir/test/Dialect/GPU/invalid.mlir


Index: mlir/test/Dialect/GPU/invalid.mlir
===================================================================
--- mlir/test/Dialect/GPU/invalid.mlir
+++ mlir/test/Dialect/GPU/invalid.mlir
@@ -140,13 +140,13 @@
 
 module attributes {gpu.container_module} {
   gpu.module @kernels {
-    gpu.func @kernel_1(%arg1 : !llvm<"float*">) kernel {
+    gpu.func @kernel_1(%arg1 : !llvm<"float*">) {
       gpu.return
     }
   }
 
   func @launch_func_missing_kernel_attr(%sz : index, %arg : !llvm<"float*">) {
-    // xpected-error at +1 {{kernel function is missing the 'gpu.kernel' attribute}}
+    // expected-error at +1 {{kernel function is missing the 'gpu.kernel' attribute}}
     "gpu.launch_func"(%sz, %sz, %sz, %sz, %sz, %sz, %arg)
     {kernel = "kernel_1", kernel_module = @kernels}
         : (index, index, index, index, index, index, !llvm<"float*">) -> ()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78540.259188.patch
Type: text/x-patch
Size: 858 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200422/0183ed64/attachment.bin>


More information about the llvm-commits mailing list