[llvm] [SPIR-V] Emit NoCapture function parameter decoration for captures(none) args (PR #223694)
Juan Manuel Martinez CaamaƱo via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 17 08:48:53 PDT 2026
================
@@ -22,7 +23,7 @@ entry:
}
; CHECK-SPIRV: %[[#NOWRITE]] = OpFunctionParameter %[[#]]
-define spir_func void @test_readonly(ptr readonly %arg) {
+define spir_func void @test_readonly(ptr readonly captures(none) %arg) {
----------------
jmmartinez wrote:
Just to be sure. It seems that the meaning of `captures(none)` is not the same than SPIRV's `NoCapture`. Buuuut, `captures(none)` seems to imply `NoCapture`.
Is that right?
https://github.com/llvm/llvm-project/pull/223694
More information about the llvm-commits
mailing list