From: Frederik Gossen Date: Tue, 21 Apr 2020 07:00:37 +0000 (+0000) Subject: [MLIR] Fix test case for kernel attribute. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=28138027460d3a99646bb0c47dda7472e34d2bb5;p=platform%2Fupstream%2Fllvm.git [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 --- diff --git a/mlir/test/Dialect/GPU/invalid.mlir b/mlir/test/Dialect/GPU/invalid.mlir index f2a9e11..610c1c0 100644 --- a/mlir/test/Dialect/GPU/invalid.mlir +++ b/mlir/test/Dialect/GPU/invalid.mlir @@ -140,13 +140,13 @@ module attributes {gpu.container_module} { 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@+1 {{kernel function is missing the 'gpu.kernel' attribute}} + // expected-error@+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*">) -> ()