[clang] [CIR][OpenCL] Attach kernel argument metadata to CIR functions (PR #200581)

David Rivera via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 12 12:54:17 PDT 2026


================
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 %s -fclangir -cl-std=CL2.0 -triple x86_64-unknown-linux-gnu -emit-cir -o - -verify
+
+kernel void invalid_target_addr_space_kernel_arg(
+    // expected-error at +1 {{ClangIR code gen Not Yet Implemented: OpenCL kernel argument metadata for target-specific address_space(N) kernel parameters; classic CodeGen currently accepts this case}}
----------------
RiverDave wrote:

I would adjust this assumption based on the way OG behavior. As I pointed out earlier the kernel arg attribute should collapse to default

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


More information about the cfe-commits mailing list