CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
63 lines
3.4 KiB
Common Lisp
63 lines
3.4 KiB
Common Lisp
// RUN: %clang_cc1 %s -ffake-address-space-map -faddress-space-map-mangling=yes -triple %itanium_abi_triple -emit-llvm -o - | FileCheck -check-prefixes="ASMANG,ASMANG10" %s
|
|
// RUN: %clang_cc1 %s -cl-std=CL2.0 -ffake-address-space-map -faddress-space-map-mangling=yes -triple %itanium_abi_triple -emit-llvm -o - | FileCheck -check-prefixes="ASMANG,ASMANG20" %s
|
|
// RUN: %clang_cc1 %s -ffake-address-space-map -faddress-space-map-mangling=no -triple %itanium_abi_triple -emit-llvm -o - | FileCheck -check-prefixes="NOASMANG,NOASMANG10" %s
|
|
// RUN: %clang_cc1 %s -cl-std=CL2.0 -ffake-address-space-map -faddress-space-map-mangling=no -triple %itanium_abi_triple -emit-llvm -o - | FileCheck -check-prefixes="NOASMANG,NOASMANG20" %s
|
|
// RUN: %clang_cc1 %s -cl-std=CL3.0 -cl-std=CL3.0 -cl-ext=-all,+__opencl_c_generic_address_space -ffake-address-space-map -faddress-space-map-mangling=no -triple %itanium_abi_triple -emit-llvm -o - | FileCheck -check-prefixes="NOASMANG,NOASMANG20" %s
|
|
// RUN: %clang_cc1 %s -cl-std=CL3.0 -cl-ext=-all,+__opencl_c_generic_address_space -ffake-address-space-map -faddress-space-map-mangling=yes -triple %itanium_abi_triple -emit-llvm -o - | FileCheck -check-prefixes="ASMANG,ASMANG20" %s
|
|
|
|
// We check that the address spaces are mangled the same in both version of OpenCL
|
|
// RUN: %clang_cc1 %s -triple spir-unknown-unknown -cl-std=CL2.0 -emit-llvm -o - | FileCheck -check-prefix=OCL-20 %s
|
|
// RUN: %clang_cc1 %s -triple spir-unknown-unknown -cl-std=CL1.2 -emit-llvm -o - | FileCheck -check-prefix=OCL-12 %s
|
|
// RUN: %clang_cc1 %s -triple spir-unknown-unknown -cl-std=CL3.0 -cl-ext=-all,+__opencl_c_generic_address_space -emit-llvm -o - | FileCheck -check-prefix=OCL-20 %s
|
|
// RUN: %clang_cc1 %s -triple spir-unknown-unknown -cl-std=CL3.0 -cl-ext=-all -emit-llvm -o - | FileCheck -check-prefix=OCL-12 %s
|
|
// RUN: %clang_cc1 %s -triple spir-unknown-unknown -cl-std=clc++2021 -cl-ext=-all,+__opencl_c_generic_address_space -emit-llvm -o - | FileCheck -check-prefix=OCL-20 %s
|
|
// RUN: %clang_cc1 %s -triple spir-unknown-unknown -cl-std=clc++2021 -cl-ext=-all -emit-llvm -o - | FileCheck -check-prefix=OCL-12 %s
|
|
|
|
// We can't name this f as private is equivalent to default
|
|
// no specifier given address space so we get multiple definition
|
|
// warnings, but we do want it for comparison purposes.
|
|
__attribute__((overloadable))
|
|
void ff(int *arg) { }
|
|
// ASMANG10: @_Z2ffPi
|
|
// ASMANG20: @_Z2ffPU3AS4i
|
|
// NOASMANG10: @_Z2ffPU9CLprivatei
|
|
// NOASMANG20: @_Z2ffPU9CLgenerici
|
|
// OCL-20-DAG: @_Z2ffPU3AS4i
|
|
// OCL-12-DAG: @_Z2ffPi
|
|
|
|
__attribute__((overloadable))
|
|
void f(private int *arg) { }
|
|
// ASMANG: @_Z1fPi
|
|
// NOASMANG: @_Z1fPU9CLprivatei
|
|
// OCL-20-DAG: @_Z1fPi
|
|
// OCL-12-DAG: @_Z1fPi
|
|
|
|
__attribute__((overloadable))
|
|
void f(global int *arg) { }
|
|
// ASMANG: @_Z1fPU3AS1i
|
|
// NOASMANG: @_Z1fPU8CLglobali
|
|
// OCL-20-DAG: @_Z1fPU3AS1i
|
|
// OCL-12-DAG: @_Z1fPU3AS1i
|
|
|
|
__attribute__((overloadable))
|
|
void f(local int *arg) { }
|
|
// ASMANG: @_Z1fPU3AS3i
|
|
// NOASMANG: @_Z1fPU7CLlocali
|
|
// OCL-20-DAG: @_Z1fPU3AS3i
|
|
// OCL-12-DAG: @_Z1fPU3AS3i
|
|
|
|
__attribute__((overloadable))
|
|
void f(constant int *arg) { }
|
|
// ASMANG: @_Z1fPU3AS2i
|
|
// NOASMANG: @_Z1fPU10CLconstanti
|
|
// OCL-20-DAG: @_Z1fPU3AS2i
|
|
// OCL-12-DAG: @_Z1fPU3AS2i
|
|
|
|
#if (__OPENCL_C_VERSION__ == 200) || defined(__opencl_c_generic_address_space)
|
|
__attribute__((overloadable))
|
|
void f(generic int *arg) { }
|
|
// ASMANG20: @_Z1fPU3AS4i
|
|
// NOASMANG20: @_Z1fPU9CLgenerici
|
|
// OCL-20-DAG: @_Z1fPU3AS4i
|
|
#endif
|