aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenOpenCL/lifetime.cl
blob: ed9f32fde933b5de98b0ed07e3ecde1f88eccf31 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -emit-llvm -o - -triple amdgcn %s | FileCheck %s -check-prefix=AMDGCN

void use(char *a);

__attribute__((always_inline)) void helper_no_markers() {
  char a;
  use(&a);
}

void lifetime_test() {
// CHECK: @llvm.lifetime.start.p0i
// AMDGCN: @llvm.lifetime.start.p5i
  helper_no_markers();
}