YouCompleteMe/cpp/llvm/tools/clang/test/CodeGenOpenCL/address-spaces.cl
Strahinja Val Markovic 1f51a89d39 Adding more llvm/clang files
These were ignored by git accidentally. We want ALL OF THEM since they all came
in the llvm/clang source distribution.
2012-07-05 17:55:45 -07:00

28 lines
658 B
Common Lisp

// RUN: %clang_cc1 %s -ffake-address-space-map -emit-llvm -o - | FileCheck %s
void f__p(__private int *arg) { }
// CHECK: i32* nocapture %arg
void f__g(__global int *arg) { }
// CHECK: i32 addrspace(1)* nocapture %arg
void f__l(__local int *arg) { }
// CHECK: i32 addrspace(2)* nocapture %arg
void f__c(__constant int *arg) { }
// CHECK: i32 addrspace(3)* nocapture %arg
void fp(private int *arg) { }
// CHECK: i32* nocapture %arg
void fg(global int *arg) { }
// CHECK: i32 addrspace(1)* nocapture %arg
void fl(local int *arg) { }
// CHECK: i32 addrspace(2)* nocapture %arg
void fc(constant int *arg) { }
// CHECK: i32 addrspace(3)* nocapture %arg