minix/external/bsd/llvm/dist/clang/test/CodeGenOpenCL/address-spaces.cl
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

27 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