brintos

brintos / llvm-project-archived public Read only

0
0
Text · 384 B · 7043c4f Raw
13 lines · plain
1// RUN: mlir-opt %s --gpu-module-to-binary --verify-diagnostics2 3module attributes {gpu.container_module} {4  // expected-error @below {{the module has no target attributes}}5  gpu.module @kernel_module1 {6    llvm.func @kernel(%arg0: i32, %arg1: !llvm.ptr,7        %arg2: !llvm.ptr, %arg3: i64, %arg4: i64,8        %arg5: i64) attributes {gpu.kernel} {9      llvm.return10    }11  }12}13