[clang] [Clang] [WIP] Added builtin_alloca right Address Space for OpenCL (PR #95750)

Vikash Gupta via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 3 02:12:29 PDT 2024


================
@@ -0,0 +1,255 @@
+// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5
+// RUN: %clang_cc1 %s -O0 -triple amdgcn-amd-amdhsa -cl-std=CL1.2 \
+// RUN:     -emit-llvm -o - | FileCheck --check-prefix=OPENCL12 %s
+// RUN: %clang_cc1 %s -O0 -triple amdgcn-amd-amdhsa -cl-std=CL2.0 \
+// RUN:     -emit-llvm -o - | FileCheck --check-prefix=OPENCL20 %s
+// RUN: %clang_cc1 %s -O0 -triple amdgcn-amd-amdhsa -cl-std=CL3.0 \
+// RUN:     -emit-llvm -o - | FileCheck --check-prefix=OPENCL30 %s
----------------
vg0204 wrote:

yeah, that's true, as now no more address space casting is happening for any version of OpenCL!

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


More information about the cfe-commits mailing list