bolt/deps/llvm-18.1.8/mlir/test/Dialect/GPU/module-to-binary-invalid.mlir
2025-02-14 19:21:04 +01:00

12 lines
384 B
MLIR

// RUN: mlir-opt %s --gpu-module-to-binary --verify-diagnostics
module attributes {gpu.container_module} {
// expected-error @below {{the module has no target attributes}}
gpu.module @kernel_module1 {
llvm.func @kernel(%arg0: i32, %arg1: !llvm.ptr,
%arg2: !llvm.ptr, %arg3: i64, %arg4: i64,
%arg5: i64) attributes {gpu.kernel} {
llvm.return
}
}
}