Home
last modified time | relevance | path

Searched refs:launder (Results 1 – 25 of 66) sorted by relevance

123

/external/llvm-project/llvm/test/Other/
Dinvariant.group.ll7 ; launder.invariant.group, that is prohibited if there is a memory clobber
15 ; CHECK: call i8* @llvm.launder.invariant.group.p0i8
16 %ptr2 = call i8* @llvm.launder.invariant.group.p0i8(i8* %ptr)
18 ; CHECK: call i8* @llvm.launder.invariant.group
19 %ptr3 = call i8* @llvm.launder.invariant.group.p0i8(i8* %ptr)
38 ; CHECK: call i8* @llvm.launder.invariant.group.p0i8
39 %ptr2 = call i8* @llvm.launder.invariant.group.p0i8(i8* %ptr)
41 ; CHECK: call i8* @llvm.launder.invariant.group.p0i8
42 %ptr3 = call i8* @llvm.launder.invariant.group.p0i8(i8* %ptr)
59 ; CHECK: call i8* @llvm.launder.invariant.group
[all …]
/external/llvm-project/libcxx/test/std/language.support/support.dynamic/ptr.launder/
Dlaunder.pass.cpp24 static_assert(std::launder(&gi) == &gi, "" ); in main()
25 static_assert(std::launder(&gf) == &gf, "" ); in main()
29 static_assert(std::is_same<decltype(i), decltype(std::launder(i))>::value, ""); in main()
30 static_assert(std::is_same<decltype(f), decltype(std::launder(f))>::value, ""); in main()
32 assert(std::launder(i) == i); in main()
33 assert(std::launder(f) == f); in main()
Dlaunder.types.fail.cpp27 (void) std::launder(( void *) nullptr); in main()
28 (void) std::launder((const void *) nullptr); in main()
29 (void) std::launder(( volatile void *) nullptr); in main()
30 …(void) std::launder((const volatile void *) nullptr); // expected-error-re@new:* 4 {{static_asser… in main()
33 …(void) std::launder(foo); // expected-error-re@new:* 1 {{static_asser… in main()
Dlaunder.nodiscard.verify.cpp24 …std::launder(p); // expected-warning {{ignoring return value of function declared with 'nodiscard'… in main()
/external/libcxx/test/std/language.support/support.dynamic/ptr.launder/
Dlaunder.pass.cpp25 static_assert(std::launder(&gi) == &gi, "" ); in main()
26 static_assert(std::launder(&gf) == &gf, "" ); in main()
30 static_assert(std::is_same<decltype(i), decltype(std::launder(i))>::value, ""); in main()
31 static_assert(std::is_same<decltype(f), decltype(std::launder(f))>::value, ""); in main()
33 assert(std::launder(i) == i); in main()
34 assert(std::launder(f) == f); in main()
Dlaunder.types.fail.cpp28 (void) std::launder(( void *) nullptr); in main()
29 (void) std::launder((const void *) nullptr); in main()
30 (void) std::launder(( volatile void *) nullptr); in main()
31 …(void) std::launder((const volatile void *) nullptr); // expected-error-re@new:* 4 {{static_asser… in main()
34 …(void) std::launder(foo); // expected-error-re@new:* 1 {{static_asser… in main()
Dlaunder.nodiscard.fail.cpp26 …std::launder(p); // expected-error {{ignoring return value of function declared with 'nodiscard' … in main()
/external/llvm-project/llvm/test/Transforms/InstCombine/
Dinvariant.group.ll7 %b2 = call i8* @llvm.launder.invariant.group.p0i8(i8* null)
13 ; CHECK-NEXT: call i8* @llvm.launder.invariant.group.p0i8(i8* null)
14 %b2 = call i8* @llvm.launder.invariant.group.p0i8(i8* null)
20 ; CHECK: %b2 = call i8 addrspace(42)* @llvm.launder.invariant.group.p42i8(i8 addrspace(42)* null)
22 %b2 = call i8 addrspace(42)* @llvm.launder.invariant.group.p42i8(i8 addrspace(42)* null)
29 %b2 = call i8* @llvm.launder.invariant.group.p0i8(i8* undef)
36 %b2 = call i8 addrspace(42)* @llvm.launder.invariant.group.p42i8(i8 addrspace(42)* undef)
78 ; CHECK: call i8* @llvm.launder.invariant.group.p0i8(i8* %a)
79 ; CHECK-NOT: llvm.launder.invariant.group
80 %a2 = call i8* @llvm.launder.invariant.group.p0i8(i8* %a)
[all …]
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dbugprone-unused-return-value.cpp60 T *launder(T *);
85 std::launder(&F); in warning()
195 auto LaunderRetval = std::launder(&FNoWarning); in noWarning()
214 std::launder(&FNoWarning)->f(); in noWarning()
215 delete std::launder(&FNoWarning); in noWarning()
217 if (std::launder(&FNoWarning)) in noWarning()
219 for (; std::launder(&FNoWarning);) in noWarning()
221 while (std::launder(&FNoWarning)) in noWarning()
225 while (std::launder(&FNoWarning)); in noWarning()
Dbugprone-unused-return-value-custom.cpp10 T *launder(T *);
104 std::launder(&I); in noWarning()
/external/llvm-project/llvm/test/Transforms/DeadStoreElimination/MSSA/
Dlaunder.invariant.group.ll7 ; CHECK: %ptr2 = call i8* @llvm.launder.invariant.group.p0i8(i8* %ptr)
8 %ptr2 = call i8* @llvm.launder.invariant.group.p0i8(i8* %ptr)
18 ; CHECK: %ptr2 = call i8* @llvm.launder.invariant.group.p0i8(i8* %ptr)
19 %ptr2 = call i8* @llvm.launder.invariant.group.p0i8(i8* %ptr)
22 %ptr3 = call i8* @llvm.launder.invariant.group.p0i8(i8* %ptr2)
23 %ptr4 = call i8* @llvm.launder.invariant.group.p0i8(i8* %ptr3)
54 %ptr3 = call i8* @llvm.launder.invariant.group.p0i8(i8* %ptr2)
56 %ptr5 = call i8* @llvm.launder.invariant.group.p0i8(i8* %ptr3)
64 declare i8* @llvm.launder.invariant.group.p0i8(i8*)
/external/llvm-project/llvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/
Dlaunder.invariant.group.ll7 ; CHECK: %ptr2 = call i8* @llvm.launder.invariant.group.p0i8(i8* %ptr)
8 %ptr2 = call i8* @llvm.launder.invariant.group.p0i8(i8* %ptr)
18 ; CHECK: %ptr2 = call i8* @llvm.launder.invariant.group.p0i8(i8* %ptr)
19 %ptr2 = call i8* @llvm.launder.invariant.group.p0i8(i8* %ptr)
22 %ptr3 = call i8* @llvm.launder.invariant.group.p0i8(i8* %ptr2)
23 %ptr4 = call i8* @llvm.launder.invariant.group.p0i8(i8* %ptr3)
54 %ptr3 = call i8* @llvm.launder.invariant.group.p0i8(i8* %ptr2)
56 %ptr5 = call i8* @llvm.launder.invariant.group.p0i8(i8* %ptr3)
64 declare i8* @llvm.launder.invariant.group.p0i8(i8*)
/external/llvm-project/llvm/test/Bitcode/
Dupgrade-invariant-group-barrier.ll4 ; it was renamed to launder.invariant.group
7 ; CHECK: %p2 = call i8* @llvm.launder.invariant.group.p0i8(i8* %p1)
8 ; CHECK: %p3 = call i8* @llvm.launder.invariant.group.p0i8(i8* %p1)
9 ; CHECK: %p4 = call i16* @llvm.launder.invariant.group.p0i16(i16* %p16)
17 ; CHECK: declare i8* @llvm.launder.invariant.group.p0i8(i8*)
19 ; CHECK: declare i16* @llvm.launder.invariant.group.p0i16(i16*)
/external/llvm-project/llvm/test/Transforms/Inline/
Dlaunder.invariant.group.ll7 ; This test checks if value returned from the launder is considered aliasing
8 ; with its argument. Due to bug caused by handling launder in capture tracking
14 %3 = call i8* @llvm.launder.invariant.group.p0i8(i8* %2)
44 %a1 = call i8* @llvm.launder.invariant.group.p0i8(i8* %p)
45 %a2 = call i8* @llvm.launder.invariant.group.p0i8(i8* %a1)
46 %a3 = call i8* @llvm.launder.invariant.group.p0i8(i8* %a2)
47 %a4 = call i8* @llvm.launder.invariant.group.p0i8(i8* %a3)
58 declare i8* @llvm.launder.invariant.group.p0i8(i8*)
/external/llvm-project/llvm/test/Analysis/MemorySSA/
Dinvariant-groups.ll5 ; launder.invariant.group intrinsics entirely. We'll need to pay attention to
21 ; CHECK-NEXT: %a8 = call i8* @llvm.launder.invariant.group.p0i8(i8* %1)
22 %a8 = call i8* @llvm.launder.invariant.group.p0i8(i8* %1)
40 ; CHECK-NEXT: %a8 = call i8* @llvm.launder.invariant.group.p0i8(i8* %1)
41 %a8 = call i8* @llvm.launder.invariant.group.p0i8(i8* %1)
59 ; CHECK-NEXT: %a8 = call i8* @llvm.launder.invariant.group.p0i8(i8* %1)
60 %a8 = call i8* @llvm.launder.invariant.group.p0i8(i8* %1)
90 ; CHECK-NEXT: %a8 = call i8* @llvm.launder.invariant.group.p0i8(i8* %1)
91 %a8 = call i8* @llvm.launder.invariant.group.p0i8(i8* %1)
149 ; CHECK-NEXT: %after = call i8* @llvm.launder.invariant.group.p0i8(i8* %p)
[all …]
/external/llvm-project/llvm/test/Analysis/BasicAA/
Dinvariant_group.ll29 ; CHECK-DAG: NoModRef: Ptr: %struct.A* %a <-> %a.laundered = call i8* @llvm.launder.invariant.group…
30 ; CHECK-DAG: NoModRef: Ptr: i8* %a.bitcast <-> %a.laundered = call i8* @llvm.launder.invariant.grou…
31 ; CHECK-DAG: NoModRef: Ptr: i8* %n <-> %a.laundered = call i8* @llvm.launder.invariant.group.p0i8(i…
32 ; CHECK-DAG: NoModRef: Ptr: i8* %a.laundered <-> %a.laundered = call i8* @llvm.launder.invariant.gr…
33 ; CHECK-DAG: NoModRef: Ptr: i8* %n.laundered <-> %a.laundered = call i8* @llvm.launder.invariant.gr…
40 %a.laundered = call i8* @llvm.launder.invariant.group.p0i8(i8* nonnull %a.bitcast)
48 declare i8* @llvm.launder.invariant.group.p0i8(i8*)
/external/llvm-project/llvm/test/CodeGen/AArch64/GlobalISel/
Dunknown-intrinsic.ll3 declare i8* @llvm.launder.invariant.group(i8*)
6 ; CHECK: bl llvm.launder.invariant.group
7 %q = call i8* @llvm.launder.invariant.group(i8* %p)
/external/llvm-project/llvm/test/Analysis/ValueTracking/
Dinvariant.group.ll5 ; CHECK: %[[p:.*]] = call i8* @llvm.launder.invariant.group.p0i8(i8* nonnull %0)
10 %p = call i8* @llvm.launder.invariant.group.p0i8(i8* %0)
11 %p2 = call i8* @llvm.launder.invariant.group.p0i8(i8* %p)
31 declare i8* @llvm.launder.invariant.group.p0i8(i8*)
Dderef-bitcast-of-gep.ll87 ; CHECK: %l = call i8* @llvm.launder.invariant.group.p0i8(i8* %p)
95 %l = call i8* @llvm.launder.invariant.group.p0i8(i8* %p)
105 declare i8* @llvm.launder.invariant.group.p0i8(i8*)
/external/llvm-project/llvm/test/Transforms/GlobalOpt/
Dinvariant.group.ll36 %barr = call i8* @llvm.launder.invariant.group(i8* %0)
44 ; We can't step through launder.invariant.group here, because that would change
57 %barr = call i8* @llvm.launder.invariant.group(i8* %0)
77 declare i8* @llvm.launder.invariant.group(i8*)
/external/llvm-project/llvm/test/Transforms/CodeGenPrepare/X86/
Dinvariant.group.ll9 ; CHECK-NOT: @llvm.launder.invariant.group.p0i8(
12 %ptr = call i8* @llvm.launder.invariant.group.p0i8(i8* @tmp)
38 declare i8* @llvm.launder.invariant.group.p0i8(i8*)
/external/llvm-project/llvm/test/Instrumentation/MemorySanitizer/
Dmsan_llvm_launder_invariant.ll1 ; Make sure MSan handles llvm.launder.invariant.group correctly.
21 %3 = call i8* @llvm.launder.invariant.group.p0i8(i8* %2)
32 declare i8* @llvm.launder.invariant.group.p0i8(i8*)
/external/llvm-project/llvm/test/CodeGen/Generic/
Dintrinsics.ll42 declare i8* @llvm.launder.invariant.group(i8*)
44 define i8* @launder(i8* %p) {
45 %q = call i8* @llvm.launder.invariant.group(i8* %p)
/external/llvm-project/llvm/test/CodeGen/AMDGPU/
Dpromote-alloca-invariant-markers.ll6 declare i8 addrspace(5)* @llvm.launder.invariant.group.p5i8(i8 addrspace(5)*) #1
20 %tmp5 = call i8 addrspace(5)* @llvm.launder.invariant.group.p5i8(i8 addrspace(5)* %tmp1) #1
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/
Dbugprone-unused-return-value.rst14 …``::std::async;::std::launder;::std::remove;::std::remove_if;::std::unique;::std::unique_ptr::rele…
18 - ``std::launder()``. Not using the return value usually means that the

123