@@ -21,62 +21,62 @@ pub struct UnsafeInner {
2121 _field : std:: cell:: UnsafeCell < i16 > ,
2222}
2323
24- // CHECK: zeroext i1 @boolean(i1 zeroext)
24+ // CHECK: zeroext i1 @boolean(i1 zeroext %x )
2525#[ no_mangle]
2626pub fn boolean ( x : bool ) -> bool {
2727 x
2828}
2929
30- // CHECK: @readonly_borrow(i32* noalias readonly dereferenceable(4))
30+ // CHECK: @readonly_borrow(i32* noalias readonly dereferenceable(4) %arg0 )
3131// FIXME #25759 This should also have `nocapture`
3232#[ no_mangle]
3333pub fn readonly_borrow ( _: & i32 ) {
3434}
3535
36- // CHECK: @static_borrow(i32* noalias readonly dereferenceable(4))
36+ // CHECK: @static_borrow(i32* noalias readonly dereferenceable(4) %arg0 )
3737// static borrow may be captured
3838#[ no_mangle]
3939pub fn static_borrow ( _: & ' static i32 ) {
4040}
4141
42- // CHECK: @named_borrow(i32* noalias readonly dereferenceable(4))
42+ // CHECK: @named_borrow(i32* noalias readonly dereferenceable(4) %arg0 )
4343// borrow with named lifetime may be captured
4444#[ no_mangle]
4545pub fn named_borrow < ' r > ( _: & ' r i32 ) {
4646}
4747
48- // CHECK: @unsafe_borrow(%UnsafeInner* dereferenceable(2))
48+ // CHECK: @unsafe_borrow(%UnsafeInner* dereferenceable(2) %arg0 )
4949// unsafe interior means this isn't actually readonly and there may be aliases ...
5050#[ no_mangle]
5151pub fn unsafe_borrow ( _: & UnsafeInner ) {
5252}
5353
54- // CHECK: @mutable_unsafe_borrow(%UnsafeInner* dereferenceable(2))
54+ // CHECK: @mutable_unsafe_borrow(%UnsafeInner* dereferenceable(2) %arg0 )
5555// ... unless this is a mutable borrow, those never alias
5656// ... except that there's this LLVM bug that forces us to not use noalias, see #29485
5757#[ no_mangle]
5858pub fn mutable_unsafe_borrow ( _: & mut UnsafeInner ) {
5959}
6060
61- // CHECK: @mutable_borrow(i32* dereferenceable(4))
61+ // CHECK: @mutable_borrow(i32* dereferenceable(4) %arg0 )
6262// FIXME #25759 This should also have `nocapture`
6363// ... there's this LLVM bug that forces us to not use noalias, see #29485
6464#[ no_mangle]
6565pub fn mutable_borrow ( _: & mut i32 ) {
6666}
6767
68- // CHECK: @indirect_struct(%S* noalias nocapture dereferenceable(32))
68+ // CHECK: @indirect_struct(%S* noalias nocapture dereferenceable(32) %arg0 )
6969#[ no_mangle]
7070pub fn indirect_struct ( _: S ) {
7171}
7272
73- // CHECK: @borrowed_struct(%S* noalias readonly dereferenceable(32))
73+ // CHECK: @borrowed_struct(%S* noalias readonly dereferenceable(32) %arg0 )
7474// FIXME #25759 This should also have `nocapture`
7575#[ no_mangle]
7676pub fn borrowed_struct ( _: & S ) {
7777}
7878
79- // CHECK: noalias dereferenceable(4) i32* @_box(i32* noalias dereferenceable(4))
79+ // CHECK: noalias dereferenceable(4) i32* @_box(i32* noalias dereferenceable(4) %x )
8080#[ no_mangle]
8181pub fn _box ( x : Box < i32 > ) -> Box < i32 > {
8282 x
@@ -91,31 +91,31 @@ pub fn struct_return() -> S {
9191}
9292
9393// Hack to get the correct size for the length part in slices
94- // CHECK: @helper([[USIZE:i[0-9]+]])
94+ // CHECK: @helper([[USIZE:i[0-9]+]] %arg0 )
9595#[ no_mangle]
9696fn helper ( _: usize ) {
9797}
9898
99- // CHECK: @slice(i8* noalias nonnull readonly, [[USIZE]])
99+ // CHECK: @slice(i8* noalias nonnull readonly %arg0.ptr , [[USIZE]] %arg0.meta )
100100// FIXME #25759 This should also have `nocapture`
101101#[ no_mangle]
102102fn slice ( _: & [ u8 ] ) {
103103}
104104
105- // CHECK: @mutable_slice(i8* nonnull, [[USIZE]])
105+ // CHECK: @mutable_slice(i8* nonnull %arg0.ptr , [[USIZE]] %arg0.meta )
106106// FIXME #25759 This should also have `nocapture`
107107// ... there's this LLVM bug that forces us to not use noalias, see #29485
108108#[ no_mangle]
109109fn mutable_slice ( _: & mut [ u8 ] ) {
110110}
111111
112- // CHECK: @unsafe_slice(%UnsafeInner* nonnull, [[USIZE]])
112+ // CHECK: @unsafe_slice(%UnsafeInner* nonnull %arg0.ptr , [[USIZE]] %arg0.meta )
113113// unsafe interior means this isn't actually readonly and there may be aliases ...
114114#[ no_mangle]
115115pub fn unsafe_slice ( _: & [ UnsafeInner ] ) {
116116}
117117
118- // CHECK: @str(i8* noalias nonnull readonly, [[USIZE]])
118+ // CHECK: @str(i8* noalias nonnull readonly %arg0.ptr , [[USIZE]] %arg0.meta )
119119// FIXME #25759 This should also have `nocapture`
120120#[ no_mangle]
121121fn str ( _: & [ u8 ] ) {
@@ -132,7 +132,7 @@ fn trait_borrow(_: &Drop) {
132132fn trait_box ( _: Box < Drop > ) {
133133}
134134
135- // CHECK: { i16*, [[USIZE]] } @return_slice(i16* noalias nonnull readonly, [[USIZE]])
135+ // CHECK: { i16*, [[USIZE]] } @return_slice(i16* noalias nonnull readonly %x.ptr , [[USIZE]] %x.meta )
136136#[ no_mangle]
137137fn return_slice ( x : & [ u16 ] ) -> & [ u16 ] {
138138 x
0 commit comments