@@ -10,33 +10,30 @@ target triple = "wasm32-unknown-wasi"
1010@main.a = hidden global { ptr , i32 , i32 } zeroinitializer , align 4
1111@main.b = hidden global [2 x ptr ] zeroinitializer , align 4
1212
13- ; Function Attrs: allockind("alloc,zeroed") allocsize(0)
14- declare noalias nonnull ptr @runtime.alloc (i32 , ptr , ptr ) #0
15-
16- declare void @runtime.trackPointer (ptr nocapture readonly , ptr , ptr ) #1
13+ declare void @runtime.trackPointer (ptr nocapture readonly , ptr , ptr ) #0
1714
1815; Function Attrs: nounwind
19- define hidden void @main.init (ptr %context ) unnamed_addr #2 {
16+ define hidden void @main.init (ptr %context ) unnamed_addr #1 {
2017entry:
2118 ret void
2219}
2320
2421; Function Attrs: nounwind
25- define hidden i32 @main.addInt (i32 %x , i32 %y , ptr %context ) unnamed_addr #2 {
22+ define hidden i32 @main.addInt (i32 %x , i32 %y , ptr %context ) unnamed_addr #1 {
2623entry:
2724 %0 = add i32 %x , %y
2825 ret i32 %0
2926}
3027
3128; Function Attrs: nounwind
32- define hidden i1 @main.equalInt (i32 %x , i32 %y , ptr %context ) unnamed_addr #2 {
29+ define hidden i1 @main.equalInt (i32 %x , i32 %y , ptr %context ) unnamed_addr #1 {
3330entry:
3431 %0 = icmp eq i32 %x , %y
3532 ret i1 %0
3633}
3734
3835; Function Attrs: nounwind
39- define hidden i32 @main.divInt (i32 %x , i32 %y , ptr %context ) unnamed_addr #2 {
36+ define hidden i32 @main.divInt (i32 %x , i32 %y , ptr %context ) unnamed_addr #1 {
4037entry:
4138 %0 = icmp eq i32 %y , 0
4239 br i1 %0 , label %divbyzero.throw , label %divbyzero.next
@@ -50,14 +47,14 @@ divbyzero.next: ; preds = %entry
5047 ret i32 %5
5148
5249divbyzero.throw: ; preds = %entry
53- call void @runtime.divideByZeroPanic (ptr undef ) #3
50+ call void @runtime.divideByZeroPanic (ptr undef ) #2
5451 unreachable
5552}
5653
57- declare void @runtime.divideByZeroPanic (ptr ) #1
54+ declare void @runtime.divideByZeroPanic (ptr ) #0
5855
5956; Function Attrs: nounwind
60- define hidden i32 @main.divUint (i32 %x , i32 %y , ptr %context ) unnamed_addr #2 {
57+ define hidden i32 @main.divUint (i32 %x , i32 %y , ptr %context ) unnamed_addr #1 {
6158entry:
6259 %0 = icmp eq i32 %y , 0
6360 br i1 %0 , label %divbyzero.throw , label %divbyzero.next
@@ -67,12 +64,12 @@ divbyzero.next: ; preds = %entry
6764 ret i32 %1
6865
6966divbyzero.throw: ; preds = %entry
70- call void @runtime.divideByZeroPanic (ptr undef ) #3
67+ call void @runtime.divideByZeroPanic (ptr undef ) #2
7168 unreachable
7269}
7370
7471; Function Attrs: nounwind
75- define hidden i32 @main.remInt (i32 %x , i32 %y , ptr %context ) unnamed_addr #2 {
72+ define hidden i32 @main.remInt (i32 %x , i32 %y , ptr %context ) unnamed_addr #1 {
7673entry:
7774 %0 = icmp eq i32 %y , 0
7875 br i1 %0 , label %divbyzero.throw , label %divbyzero.next
@@ -86,12 +83,12 @@ divbyzero.next: ; preds = %entry
8683 ret i32 %5
8784
8885divbyzero.throw: ; preds = %entry
89- call void @runtime.divideByZeroPanic (ptr undef ) #3
86+ call void @runtime.divideByZeroPanic (ptr undef ) #2
9087 unreachable
9188}
9289
9390; Function Attrs: nounwind
94- define hidden i32 @main.remUint (i32 %x , i32 %y , ptr %context ) unnamed_addr #2 {
91+ define hidden i32 @main.remUint (i32 %x , i32 %y , ptr %context ) unnamed_addr #1 {
9592entry:
9693 %0 = icmp eq i32 %y , 0
9794 br i1 %0 , label %divbyzero.throw , label %divbyzero.next
@@ -101,66 +98,66 @@ divbyzero.next: ; preds = %entry
10198 ret i32 %1
10299
103100divbyzero.throw: ; preds = %entry
104- call void @runtime.divideByZeroPanic (ptr undef ) #3
101+ call void @runtime.divideByZeroPanic (ptr undef ) #2
105102 unreachable
106103}
107104
108105; Function Attrs: nounwind
109- define hidden i1 @main.floatEQ (float %x , float %y , ptr %context ) unnamed_addr #2 {
106+ define hidden i1 @main.floatEQ (float %x , float %y , ptr %context ) unnamed_addr #1 {
110107entry:
111108 %0 = fcmp oeq float %x , %y
112109 ret i1 %0
113110}
114111
115112; Function Attrs: nounwind
116- define hidden i1 @main.floatNE (float %x , float %y , ptr %context ) unnamed_addr #2 {
113+ define hidden i1 @main.floatNE (float %x , float %y , ptr %context ) unnamed_addr #1 {
117114entry:
118115 %0 = fcmp une float %x , %y
119116 ret i1 %0
120117}
121118
122119; Function Attrs: nounwind
123- define hidden i1 @main.floatLower (float %x , float %y , ptr %context ) unnamed_addr #2 {
120+ define hidden i1 @main.floatLower (float %x , float %y , ptr %context ) unnamed_addr #1 {
124121entry:
125122 %0 = fcmp olt float %x , %y
126123 ret i1 %0
127124}
128125
129126; Function Attrs: nounwind
130- define hidden i1 @main.floatLowerEqual (float %x , float %y , ptr %context ) unnamed_addr #2 {
127+ define hidden i1 @main.floatLowerEqual (float %x , float %y , ptr %context ) unnamed_addr #1 {
131128entry:
132129 %0 = fcmp ole float %x , %y
133130 ret i1 %0
134131}
135132
136133; Function Attrs: nounwind
137- define hidden i1 @main.floatGreater (float %x , float %y , ptr %context ) unnamed_addr #2 {
134+ define hidden i1 @main.floatGreater (float %x , float %y , ptr %context ) unnamed_addr #1 {
138135entry:
139136 %0 = fcmp ogt float %x , %y
140137 ret i1 %0
141138}
142139
143140; Function Attrs: nounwind
144- define hidden i1 @main.floatGreaterEqual (float %x , float %y , ptr %context ) unnamed_addr #2 {
141+ define hidden i1 @main.floatGreaterEqual (float %x , float %y , ptr %context ) unnamed_addr #1 {
145142entry:
146143 %0 = fcmp oge float %x , %y
147144 ret i1 %0
148145}
149146
150147; Function Attrs: nounwind
151- define hidden float @main.complexReal (float %x.r , float %x.i , ptr %context ) unnamed_addr #2 {
148+ define hidden float @main.complexReal (float %x.r , float %x.i , ptr %context ) unnamed_addr #1 {
152149entry:
153150 ret float %x.r
154151}
155152
156153; Function Attrs: nounwind
157- define hidden float @main.complexImag (float %x.r , float %x.i , ptr %context ) unnamed_addr #2 {
154+ define hidden float @main.complexImag (float %x.r , float %x.i , ptr %context ) unnamed_addr #1 {
158155entry:
159156 ret float %x.i
160157}
161158
162159; Function Attrs: nounwind
163- define hidden { float , float } @main.complexAdd (float %x.r , float %x.i , float %y.r , float %y.i , ptr %context ) unnamed_addr #2 {
160+ define hidden { float , float } @main.complexAdd (float %x.r , float %x.i , float %y.r , float %y.i , ptr %context ) unnamed_addr #1 {
164161entry:
165162 %0 = fadd float %x.r , %y.r
166163 %1 = fadd float %x.i , %y.i
@@ -170,7 +167,7 @@ entry:
170167}
171168
172169; Function Attrs: nounwind
173- define hidden { float , float } @main.complexSub (float %x.r , float %x.i , float %y.r , float %y.i , ptr %context ) unnamed_addr #2 {
170+ define hidden { float , float } @main.complexSub (float %x.r , float %x.i , float %y.r , float %y.i , ptr %context ) unnamed_addr #1 {
174171entry:
175172 %0 = fsub float %x.r , %y.r
176173 %1 = fsub float %x.i , %y.i
@@ -180,7 +177,7 @@ entry:
180177}
181178
182179; Function Attrs: nounwind
183- define hidden { float , float } @main.complexMul (float %x.r , float %x.i , float %y.r , float %y.i , ptr %context ) unnamed_addr #2 {
180+ define hidden { float , float } @main.complexMul (float %x.r , float %x.i , float %y.r , float %y.i , ptr %context ) unnamed_addr #1 {
184181entry:
185182 %0 = fmul float %x.r , %y.r
186183 %1 = fmul float %x.i , %y.i
@@ -194,19 +191,18 @@ entry:
194191}
195192
196193; Function Attrs: nounwind
197- define hidden void @main.foo (ptr %context ) unnamed_addr #2 {
194+ define hidden void @main.foo (ptr %context ) unnamed_addr #1 {
198195entry:
199196 call void @"main.foo$1" (%main.kv.0 zeroinitializer , ptr undef )
200197 ret void
201198}
202199
203200; Function Attrs: nounwind
204- define internal void @"main.foo$1" (%main.kv.0 %b , ptr %context ) unnamed_addr #2 {
201+ define internal void @"main.foo$1" (%main.kv.0 %b , ptr %context ) unnamed_addr #1 {
205202entry:
206203 ret void
207204}
208205
209- attributes #0 = { allockind("alloc,zeroed" ) allocsize(0 ) "alloc-family" ="runtime.alloc" "target-features" ="+bulk-memory,+bulk-memory-opt,+call-indirect-overlong,+mutable-globals,+nontrapping-fptoint,+sign-ext,-multivalue,-reference-types" }
210- attributes #1 = { "target-features" ="+bulk-memory,+bulk-memory-opt,+call-indirect-overlong,+mutable-globals,+nontrapping-fptoint,+sign-ext,-multivalue,-reference-types" }
211- attributes #2 = { nounwind "target-features" ="+bulk-memory,+bulk-memory-opt,+call-indirect-overlong,+mutable-globals,+nontrapping-fptoint,+sign-ext,-multivalue,-reference-types" }
212- attributes #3 = { nounwind }
206+ attributes #0 = { "target-features" ="+bulk-memory,+bulk-memory-opt,+call-indirect-overlong,+mutable-globals,+nontrapping-fptoint,+sign-ext,-multivalue,-reference-types" }
207+ attributes #1 = { nounwind "target-features" ="+bulk-memory,+bulk-memory-opt,+call-indirect-overlong,+mutable-globals,+nontrapping-fptoint,+sign-ext,-multivalue,-reference-types" }
208+ attributes #2 = { nounwind }
0 commit comments