| /llvm-project-15.0.7/llvm/test/Transforms/SCCP/ |
| H A D | ipsccp-clear-returned.ll | 2 ; then the "returned" attribute of input arguments 10 %call = call i32 @func_return_undef(i32 returned 1) 12 ; CHECK-NOT: returned 17 define internal i32 @func_return_undef(i32 returned %arg) { 19 ; CHECK-NOT: returned 29 ; want to remove the returned attribute for call sites 32 ; CHECK-NOT: returned 33 define internal i32 @blockaddr_user(i1 %c, i32 returned %d) { 58 ; CHECK-NOT: returned 60 %r = call i32 @blockaddr_user(i1 %c, i32 returned 10)
|
| /llvm-project-15.0.7/llvm/test/CodeGen/ARM/ |
| H A D | returned-ext.ll | 4 declare i16 @identity16(i16 returned %x) 5 declare i32 @identity32(i32 returned %x) 6 declare zeroext i16 @retzext16(i16 returned %x) 7 declare i16 @paramzext16(i16 zeroext returned %x) 8 declare zeroext i16 @bothzext16(i16 zeroext returned %x) 25 %call = tail call i16 @identity16(i16 returned %x) 27 %call2 = tail call i32 @identity32(i32 returned %b) 59 %call = tail call i16 @retzext16(i16 returned %x) 61 %call2 = tail call i32 @identity32(i32 returned %b) 79 %call = tail call i16 @retzext16(i16 returned %x) [all …]
|
| H A D | this-return.ll | 10 declare %struct.A* @A_ctor_base(%struct.A* returned) 11 declare %struct.B* @B_ctor_base(%struct.B* returned, i32) 12 declare %struct.B* @B_ctor_complete(%struct.B* returned, i32) 18 define %struct.C* @C_ctor_base(%struct.C* returned %this, i32 %x) { 31 %call = tail call %struct.A* @A_ctor_base(%struct.A* returned %0) 33 %call2 = tail call %struct.B* @B_ctor_base(%struct.B* returned %1, i32 %x) 62 %call = tail call %struct.C* @C_ctor_base(%struct.C* returned %this, i32 %x) 89 %call = tail call %struct.B* @B_ctor_complete(%struct.B* returned %b, i32 %x) 90 %call2 = tail call %struct.B* @B_ctor_complete(%struct.B* returned %b, i32 %x) 101 %call = tail call %struct.B* @B_ctor_complete(%struct.B* returned %b, i32 %x) [all …]
|
| H A D | returned-trunc-tail-calls.ll | 3 declare i16 @ret16(i16 returned) 4 declare i32 @ret32(i32 returned) 10 tail call i16 @ret16(i16 returned %in) 18 tail call i16 @ret16(i16 returned %in) 22 declare {i32, i8} @take_i32_i8({i32, i8} returned) 35 tail call {i32, i8} @take_i32_i8({i32, i8} returned %callval) 63 tail call i32 @ret32(i32 returned undef)
|
| H A D | interval-update-remat.ll | 114 …MockReadWritejS1_j(%class.StaticSocketDataProvider.6.231.281.1306.2331* returned, %struct.MockRead… 118 …80.1305.2330* @_ZN11MockConnectC1Ev(%struct.MockConnect.5.230.280.1305.2330* returned) unnamed_addr 120 …estCompletionCallbackC1Ev(%class.TestCompletionCallback.9.234.284.1309.2334* returned) unnamed_addr 124 …335* @_ZN12AssertHelperC1EPKc(%class.AssertHelper.10.235.285.1310.2335* returned, i8*) unnamed_addr 128 ….13.238.288.1313.2338* @_ZN7MessageC1Ev(%class.Message.13.238.288.1313.2338* returned) unnamed_addr 130 ….1310.2335* @_ZN12AssertHelperD1Ev(%class.AssertHelper.10.235.285.1310.2335* returned) unnamed_addr 142 …95.1320.2345* @_ZN11BoundNetLogD1Ev(%class.BoundNetLog.20.245.295.1320.2345* returned) unnamed_addr 144 …319.2344* @_ZN13scoped_refptrD1Ev(%class.scoped_refptr.19.244.294.1319.2344* returned) unnamed_addr 146 …baseD2Ev(%"class.(anonymous namespace)::__vector_base.21.246.296.1321.2346"* returned) unnamed_addr 154 …eamD2Ev(%"class.(anonymous namespace)::basic_iostream.22.247.297.1322.2347"* returned) unnamed_addr [all …]
|
| H A D | ipra-r0-returned.ll | 4 define i32 @returns_r0(i32 returned %a) { 16 %b = call i32 @returns_r0(i32 returned %a)
|
| /llvm-project-15.0.7/llvm/test/Analysis/LazyCallGraph/ |
| H A D | alias.ll | 23 define dso_local i8* @foo(i8* %returned) { 24 ret i8* %returned 29 define internal i8* @bar(i8* %returned) { 30 ret i8* %returned 36 define internal i8* @baz(i8* %returned) { 37 ret i8* %returned
|
| /llvm-project-15.0.7/llvm/test/Transforms/DeadArgElim/ |
| H A D | returned.ll | 12 ; do not keep alive the return value of a function with a dead 'returned' argument 15 define internal %Ty* @test2(%Ty* returned %this) { 30 ; keep alive return value of a function if the 'returned' argument is live 31 ; CHECK-LABEL: define internal %Ty* @test4(%Ty* returned %this) 33 define internal %Ty* @test4(%Ty* returned %this) { 38 ; don't do this if 'returned' is on the call site... 57 ; ...instead, drop 'returned' form the call site 59 %5 = call %Ty* @test5(%Ty* returned %this)
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | returned-trunc-tail-calls.ll | 3 declare i32 @ret32(i32 returned) 4 declare i64 @ret64(i64 returned) 11 tail call i32 @ret32(i32 returned %in) 20 tail call i64 @ret64(i64 returned %val) 29 tail call i32 @ret32(i32 returned %small) 33 declare {i32, i8} @take_i32_i8({i32, i8} returned) 46 tail call {i32, i8} @take_i32_i8({i32, i8} returned %callval) 73 tail call i64 @ret64(i64 returned undef)
|
| H A D | zero-call-used-regs.ll | 7 define dso_local i32 @skip(i32 returned %x) local_unnamed_addr #0 "zero-call-used-regs"="skip" { 22 define dso_local i32 @used_gpr_arg(i32 returned %x) local_unnamed_addr #0 "zero-call-used-regs"="us… 38 define dso_local i32 @used_gpr(i32 returned %x) local_unnamed_addr #0 "zero-call-used-regs"="used-g… 54 define dso_local i32 @used_arg(i32 returned %x) local_unnamed_addr #0 "zero-call-used-regs"="used-a… 70 define dso_local i32 @used(i32 returned %x) local_unnamed_addr #0 "zero-call-used-regs"="used" { 86 define dso_local i32 @all_gpr_arg(i32 returned %x) local_unnamed_addr #0 "zero-call-used-regs"="all… 109 define dso_local i32 @all_gpr(i32 returned %x) local_unnamed_addr #0 "zero-call-used-regs"="all-gpr… 134 define dso_local i32 @all_arg(i32 returned %x) local_unnamed_addr #0 "zero-call-used-regs"="all-arg… 165 define dso_local i32 @all(i32 returned %x) local_unnamed_addr #0 "zero-call-used-regs"="all" {
|
| H A D | arg_returned_bitcast.ll | 3 ; Test that the "returned" attribute "works" even if there is a bitcast between 6 declare ptr @bar(ptr returned)
|
| /llvm-project-15.0.7/llvm/test/Linker/ |
| H A D | intrinsics-with-unnamed-types.ll | 38 declare %0* @llvm.ssa.copy.p0s_s.0(%0* returned) 40 declare %1* @llvm.ssa.copy.p0s_s.1(%1* returned) 42 declare %0** @llvm.ssa.copy.p0p0s_s.1(%0** returned) 44 declare %1** @llvm.ssa.copy.p0p0s_s.0(%1** returned) 46 declare %0*** @llvm.ssa.copy.p0p0p0s_s.1(%0*** returned) 48 declare %1*** @llvm.ssa.copy.p0p0p0s_s.0(%1*** returned) 95 declare %2* @llvm.ssa.copy.p0s_s.0(%2* returned) 97 declare %1* @llvm.ssa.copy.p0s_s.1(%1* returned) 99 declare %2** @llvm.ssa.copy.p0p0s_s.1(%2** returned) 101 declare %1** @llvm.ssa.copy.p0p0s_s.0(%1** returned)
|
| /llvm-project-15.0.7/llvm/test/CodeGen/WebAssembly/ |
| H A D | returned.ll | 3 ; Test that the "returned" attribute is optimized effectively. 15 declare %class.Apple* @_ZN5AppleC1Ev(%class.Apple* returned) 28 declare i8* @memcpy(i8* returned, i8*, i32) 47 declare i32* @returns_arg(i32* returned) 50 ; "returned" attribute. 57 declare i32 @do_something(i32 returned, i32, double) 73 declare i32 @do_something_else(i32, i32 returned)
|
| H A D | i128-returned.ll | 3 ; Test that the "returned" attribute works with i128 types. 8 declare i128 @bar(i128 returned)
|
| /llvm-project-15.0.7/llvm/test/Bitcode/ |
| H A D | intrinsics-with-unnamed-types.ll | 25 declare %0* @llvm.ssa.copy.p0s_s.0(%0* returned) 27 declare %1* @llvm.ssa.copy.p0s_s.1(%1* returned) 29 declare %0** @llvm.ssa.copy.p0p0s_s.1(%0** returned) 31 declare %1** @llvm.ssa.copy.p0p0s_s.0(%1** returned)
|
| /llvm-project-15.0.7/llvm/test/Transforms/Attributor/ |
| H A D | returned.ll | 332 ; CHECK-SAME: (double* nofree readnone returned "no-capture-maybe-returned" [[R:%.*]]) #[[ATTR0]] { 671 ; IS__TUNIT____-SAME: (i32* nofree readnone returned "no-capture-maybe-returned" [[R:%.*]]) #[[ATTR… 677 ; IS__CGSCC____-SAME: (i32* nofree readnone returned "no-capture-maybe-returned" [[R:%.*]]) #[[ATTR… 875 ; TEST returned argument goes through bitcasts 1093 ; Verify we do not assume b is returned 1186 ; CHECK-SAME: (i32 returned [[A:%.*]]) #[[ATTR0]] { 1199 declare i32 @deadblockcall_helper(i32 returned %A); 1204 ; CHECK-SAME: (i32 returned [[A:%.*]]) #[[ATTR0]] { 1225 ; CHECK-SAME: (i32 returned [[A:%.*]]) #[[ATTR0]] { 1344 ; CHECK-SAME: (i32 returned [[A:%.*]]) { [all …]
|
| H A D | nocapture-2.ll | 308 ; CHECK-SAME: (i16* nofree readnone dereferenceable_or_null(4) "no-capture-maybe-returned" [[A:%.*]… 411 …HECK-SAME: (i64* nofree noundef nonnull returned writeonly align 8 dereferenceable(8) "no-capture-… 484 ; IS__TUNIT____-SAME: (i64* nofree returned writeonly align 8 "no-capture-maybe-returned" [[A:%.*]]… 544 ; IS__TUNIT____-SAME: (i64* nofree writeonly align 8 "no-capture-maybe-returned" [[A:%.*]]) #[[ATTR… 602 ; Verify we do *not* assume b is returned or not captured. 690 ; Make sure the returned flag on %r is strong enough to justify nocapture on %b but **not** on %r. 692 define i32* @not_captured_by_readonly_call_not_returned_either1(i32* %b, i32* returned %r) { 695 ; IS__TUNIT____-SAME: (i32* nocapture readonly [[B:%.*]], i32* readonly returned [[R:%.*]]) #[[ATTR… 702 ; IS__CGSCC____-SAME: (i32* nocapture readonly [[B:%.*]], i32* readonly returned [[R:%.*]]) #[[ATTR… 712 declare i32* @readonly_unknown_r1a(i32*, i32* returned) readonly [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/FunctionAttrs/ |
| H A D | incompatible_fn_attrs.ll | 9 ; CHECK: define i32* @given_argmem_infer_readnone(i32* readnone returned %p) #0 { 16 ; CHECK: define i32* @given_inaccessible_infer_readnone(i32* readnone returned %p) #0 { 23 ; CHECK: define i32* @given_inaccessible_or_argmem_infer_readnone(i32* readnone returned %p) #0 {
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AArch64/ |
| H A D | arm64-this-return.ll | 12 declare %struct.A* @A_ctor_base(%struct.A* returned) 13 declare %struct.B* @B_ctor_base(%struct.B* returned, i32) 14 declare %struct.B* @B_ctor_complete(%struct.B* returned, i32) 20 define %struct.C* @C_ctor_base(%struct.C* returned %this, i32 %x) { 41 %call = tail call %struct.A* @A_ctor_base(%struct.A* returned %0) 43 %call2 = tail call %struct.B* @B_ctor_base(%struct.B* returned %1, i32 %x) 91 %call = tail call %struct.C* @C_ctor_base(%struct.C* returned %this, i32 %x) 138 %call = tail call %struct.B* @B_ctor_complete(%struct.B* returned %b, i32 %x) 139 %call2 = tail call %struct.B* @B_ctor_complete(%struct.B* returned %b, i32 %x) 169 %call = tail call %struct.B* @B_ctor_complete(%struct.B* returned %b, i32 %x) [all …]
|
| /llvm-project-15.0.7/llvm/test/Verifier/ |
| H A D | matrix-intrinsics-opaque-ptrs.ll | 5 ; CHECK-NEXT: Result of a matrix operation does not fit in the returned vector! 6 ; CHECK-NEXT: Result of a matrix operation does not fit in the returned vector! 7 ; CHECK-NEXT: Result of a matrix operation does not fit in the returned vector! 23 ; CHECK-NEXT: Result of a matrix operation does not fit in the returned vector! 24 ; CHECK-NEXT: Result of a matrix operation does not fit in the returned vector! 25 ; CHECK-NEXT: Result of a matrix operation does not fit in the returned vector! 37 ; CHECK-NEXT: Result of a matrix operation does not fit in the returned vector! 38 ; CHECK-NEXT: Result of a matrix operation does not fit in the returned vector! 39 ; CHECK-NEXT: Result of a matrix operation does not fit in the returned vector! 51 ; CHECK-NEXT: Result of a matrix operation does not fit in the returned vector! [all …]
|
| H A D | matrix-intrinsics.ll | 5 ; CHECK-NEXT: Result of a matrix operation does not fit in the returned vector! 6 ; CHECK-NEXT: Result of a matrix operation does not fit in the returned vector! 7 ; CHECK-NEXT: Result of a matrix operation does not fit in the returned vector! 23 ; CHECK-NEXT: Result of a matrix operation does not fit in the returned vector! 24 ; CHECK-NEXT: Result of a matrix operation does not fit in the returned vector! 25 ; CHECK-NEXT: Result of a matrix operation does not fit in the returned vector! 37 ; CHECK-NEXT: Result of a matrix operation does not fit in the returned vector! 38 ; CHECK-NEXT: Result of a matrix operation does not fit in the returned vector! 39 ; CHECK-NEXT: Result of a matrix operation does not fit in the returned vector! 51 ; CHECK-NEXT: Result of a matrix operation does not fit in the returned vector! [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/IndVarSimplify/ |
| H A D | pr55925.ll | 5 ; because it has a returned attribute. 18 ; CHECK-NEXT: [[RES:%.*]] = invoke i32 @foo(i32 returned [[IV]]) 36 %res = invoke i32 @foo(i32 returned %iv) 62 ; CHECK-NEXT: [[RES:%.*]] = invoke i32 @foo(i32 returned [[IV]]) 85 %res = invoke i32 @foo(i32 returned %iv)
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | call-returned.ll | 4 declare i32 @passthru_i32(i32 returned) 5 declare i8* @passthru_p8(i8* returned) 6 declare i8* @passthru_p8_from_p32(i32* returned) 7 declare <8 x i8> @passthru_8i8v_from_2i32v(<2 x i32> returned)
|
| /llvm-project-15.0.7/compiler-rt/lib/builtins/avr/ |
| H A D | udivmodqi4.S | 38 com r24 ; The uint8 quotient is returned via R24. 39 ret ; The uint8 remainder is returned via R25.
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | nullability_nullonly.mm | 27 …return p; // expected-warning {{Null returned from a function that is expected to return a non-nul… 106 // Under ARC, returned expressions of ObjC objects types are are implicitly 111 …return local; // expected-warning {{nil returned from a function that is expected to return a non-… 120 …return nil; // expected-warning {{nil returned from a function that is expected to return a non-nu… 133 …return local; // expected-warning {{nil returned from a method that is expected to return a non-nu…
|