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

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 3 02:06:16 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
----------------
arsenm wrote:

I meant common prefix. -check-prefixes=OPENCL,OPENCL12 etc. But I don't think you should ever get different code 

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


More information about the cfe-commits mailing list