bolt/deps/llvm-18.1.8/clang/test/CodeGenOpenCL/lifetime.cl

16 lines
362 B
Common Lisp
Raw Normal View History

2025-02-14 19:21:04 +01:00
// 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.p0
// AMDGCN: @llvm.lifetime.start.p5
helper_no_markers();
}