Yaxun Liu | 7f7f323 | 2017-04-17 20:03:11 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s |
Yaxun Liu | f8ad59d | 2018-02-15 19:12:41 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -emit-llvm -o - -triple amdgcn %s | FileCheck %s -check-prefix=AMDGCN |
Yaxun Liu | 7f7f323 | 2017-04-17 20:03:11 +0000 | [diff] [blame] | 3 | |
| 4 | void use(char *a); |
| 5 | |
| 6 | __attribute__((always_inline)) void helper_no_markers() { |
| 7 | char a; |
| 8 | use(&a); |
| 9 | } |
| 10 | |
| 11 | void lifetime_test() { |
| 12 | // CHECK: @llvm.lifetime.start.p0i |
Yaxun Liu | f8ad59d | 2018-02-15 19:12:41 +0000 | [diff] [blame] | 13 | // AMDGCN: @llvm.lifetime.start.p5i |
Yaxun Liu | 7f7f323 | 2017-04-17 20:03:11 +0000 | [diff] [blame] | 14 | helper_no_markers(); |
| 15 | } |