Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGenOpenCL / kernel-arg-info-single-as.cl
blob595c97464e3ac57d951f0d9a4da90691d04c3971
1 // Test that the kernel argument info always refers to SPIR address spaces,
2 // even if the target has only one address space like x86_64 does.
3 // RUN: %clang_cc1 %s -cl-std=CL2.0 -emit-llvm -o - -triple x86_64-unknown-unknown -cl-kernel-arg-info | FileCheck %s
5 kernel void foo(__global int * G, __constant int *C, __local int *L) {
6 *G = *C + *L;
8 // CHECK: !kernel_arg_addr_space ![[MD123:[0-9]+]]
9 // CHECK: ![[MD123]] = !{i32 1, i32 2, i32 3}