[clang] [MLIR] SPIRV Target Attribute (PR #69949)

Lei Zhang via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 28 17:30:06 PDT 2023


================
@@ -0,0 +1,7 @@
+// RUN: mlir-opt %s --spirv-attach-target='module=spirv.* ver=v1.0 caps=Kernel' | FileCheck %s
+
+module attributes {gpu.container_module} {
+// CHECK: @spirv_module_1 [#spirv.target<vce = #spirv.vce<v1.0, [Kernel], []>, resource_limits = <>>]
+gpu.module @spirv_module_1 {
----------------
antiagainst wrote:

Can we add tests to show like

1) multiple GPU modules in the same container module?
2) different match regex with hits and misses?

https://github.com/llvm/llvm-project/pull/69949


More information about the cfe-commits mailing list