[PATCH] D78540: [MLIR] Fix test case for kernel attribute.
Frederik Gossen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 21 00:30:32 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.
Fix a broken test case in the `invalid.mlir` lit test case.
`expect` was missing its `e`.
Repository:
rG LLVM Github Monorepo
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.258910.patch
Type: text/x-patch
Size: 858 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200421/00ab370d/attachment.bin>
More information about the llvm-commits
mailing list