Skip to content

Commit 2813802

Browse files
committed
[MLIR] Fix test case for kernel attribute.
Summary: Fix a broken test case in the `invalid.mlir` lit test case. `expect` was missing its `e`. Differential Revision: https://reviews.llvm.org/D78540
1 parent 5397f29 commit 2813802

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/test/Dialect/GPU/invalid.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,13 @@ module attributes {gpu.container_module} {
140140

141141
module attributes {gpu.container_module} {
142142
gpu.module @kernels {
143-
gpu.func @kernel_1(%arg1 : !llvm<"float*">) kernel {
143+
gpu.func @kernel_1(%arg1 : !llvm<"float*">) {
144144
gpu.return
145145
}
146146
}
147147

148148
func @launch_func_missing_kernel_attr(%sz : index, %arg : !llvm<"float*">) {
149-
// xpected-error@+1 {{kernel function is missing the 'gpu.kernel' attribute}}
149+
// expected-error@+1 {{kernel function is missing the 'gpu.kernel' attribute}}
150150
"gpu.launch_func"(%sz, %sz, %sz, %sz, %sz, %sz, %arg)
151151
{kernel = "kernel_1", kernel_module = @kernels}
152152
: (index, index, index, index, index, index, !llvm<"float*">) -> ()

0 commit comments

Comments
 (0)