[clang] [CIR][OpenCL] Add kernel argument metadata attribute (PR #199530)
David Rivera via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 12 12:04:17 PDT 2026
================
@@ -0,0 +1,39 @@
+// RUN: cir-opt %s --verify-roundtrip | FileCheck %s
+
+module {
+ cir.func @without_names() attributes {cir.cl.kernel_arg_metadata = #cir.cl.kernel_arg_metadata<addr_space = [#cir<lang_address_space(offload_global)>, #cir<lang_address_space(default)>], access_qual = ["none", "none"], type = ["uint*", "int"], base_type = ["uint*", "int"], type_qual = ["restrict", ""]>} {
----------------
RiverDave wrote:
I think realistically `kernel_arg_metadata` should be emitted based on the existing parameters of said cir.func - up to you, but I would express them in the tests.
https://github.com/llvm/llvm-project/pull/199530
More information about the cfe-commits
mailing list