Home
last modified time | relevance | path

Searched refs:testval (Results 1 – 11 of 11) sorted by relevance

/llvm-project-15.0.7/llvm/test/Transforms/Coroutines/
H A Dcoro-split-sink-lifetime-04.ll16 %testval = alloca i8
17 ; lifetime of %testval starts here, but not used until await.ready.
18 call void @llvm.lifetime.start.p0i8(i64 1, i8* %testval)
33 %test = load i8, i8* %testval
35 call void @llvm.lifetime.end.p0i8(i64 1, i8* %testval)
44 ; CHECK: %testval = alloca i8, align 1
46 ; CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 1, i8* %testval)
49 ; CHECK-NEXT: %test = load i8, i8* %testval
51 ; CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 1, i8* %testval)
H A Dcoro-alloca-08.ll12 ; The lifetime of testval starts and ends before coro.suspend. Even though consume.i8.array
16 %testval = alloca %i8.array
17 %cast = getelementptr inbounds %i8.array, %i8.array* %testval, i64 0, i32 0, i64 0
23 call void @consume.i8.array(%i8.array* %testval)
40 ; The lifetime of testval starts after coro.suspend. So it will never live across suspension
44 %testval = alloca %i8.array
45 %cast = getelementptr inbounds %i8.array, %i8.array* %testval, i64 0, i32 0, i64 0
59 call void @consume.i8.array(%i8.array* %testval)
68 ; Verify that for both foo and bar, testval isn't put on the frame.
H A Dcoro-alloca-09.ll12 ; The testval lives across suspend point so that it should be put on the frame.
13 ; However, part of testval has lifetime marker which indicates the part
15 ; This test whether or not %testval would be put on the frame by ignoring the
19 %testval = alloca %i8.array
20 %subrange = getelementptr inbounds %i8.array, %i8.array* %testval, i64 0, i32 0, i64 50
28 store %i8.array* %testval, %i8.array** %to_store
44 ; Verify that for both foo and bar, testval isn't put on the frame.
H A Dcoro-split-sink-lifetime-03.ll18 %testval = alloca %i8.array
19 %cast = getelementptr inbounds %i8.array, %i8.array* %testval, i64 0, i32 0, i64 0
20 ; lifetime of %testval starts here, but not used until await.ready.
36 call void @consume.i8.array(%i8.array* %testval)
45 ; CHECK: %testval = alloca %i8.array
47 ; CHECK-NEXT: %0 = bitcast %i8.array* %testval to i8*
50 ; CHECK-NEXT: getelementptr inbounds %i8.array, %i8.array* %testval
52 ; CHECK-NEXT: call void @consume.i8.array(%i8.array* %testval)
H A Dcoro-split-sink-lifetime-01.ll15 %testval = alloca i32
16 %cast = bitcast i32* %testval to i8*
17 ; lifetime of %testval starts here, but not used until await.ready.
33 %test = load i32, i32* %testval
44 ; CHECK: %testval = alloca i32, align 4
46 ; CHECK-NEXT: %0 = bitcast i32* %testval to i8*
50 ; CHECK-NEXT: %test = load i32, i32* %testval
H A Dcoro-split-sink-lifetime-02.ll16 %testval = alloca i32
17 %cast = bitcast i32* %testval to i8*
18 ; lifetime of %testval starts here, but not used until await.ready.
41 %test = load i32, i32* %testval
47 %test1 = load i32, i32* %testval
58 ; CHECK: %[[VAL:testval.+]] = getelementptr inbounds %a.Frame
H A Dcoro-split-02.ll16 %testval = alloca i32
31 %cast = bitcast i32* %testval to i8*
33 %test = load i32, i32* %testval
44 ; CHECK: %testval = alloca i32
49 ; CHECK-NEXT: %cast = bitcast i32* %testval to i8*
51 ; CHECK-NEXT: %test = load i32, i32* %testval
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dreinterpret-cast.cpp5 enum test { testval = 1 }; enumerator
18 test e = testval; in self_conversion()
41 void *vp = reinterpret_cast<void*>(testval); in integral_conversion()
H A Dcstyle-cast.cpp168 enum test { testval = 1 }; enumerator
175 void *vp = (void*)(testval); in integral_conversion()
H A Dfunctional-cast.cpp230 enum test { testval = 1 }; enumerator
238 void *vp = voidp(testval); in integral_conversion()
/llvm-project-15.0.7/llvm/test/Transforms/Inline/ML/
H A Dstate-tracking-coro.ll19 %testval = alloca i32
34 %cast = bitcast i32* %testval to i8*
36 %test = load i32, i32* %testval