[Mlir-commits] [mlir] 2813802 - [MLIR] Fix test case for kernel attribute.
Frederik Gossen
llvmlistbot at llvm.org
Wed Apr 22 00:28:37 PDT 2020
Author: Frederik Gossen
Date: 2020-04-22T07:27:39Z
New Revision: 28138027460d3a99646bb0c47dda7472e34d2bb5
URL: https://github.com/llvm/llvm-project/commit/28138027460d3a99646bb0c47dda7472e34d2bb5
DIFF: https://github.com/llvm/llvm-project/commit/28138027460d3a99646bb0c47dda7472e34d2bb5.diff
LOG: [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
Added:
Modified:
mlir/test/Dialect/GPU/invalid.mlir
Removed:
################################################################################
diff --git a/mlir/test/Dialect/GPU/invalid.mlir b/mlir/test/Dialect/GPU/invalid.mlir
index f2a9e1175310..610c1c046e8b 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 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*">) -> ()
More information about the Mlir-commits
mailing list