@@ -6,32 +6,32 @@ target triple = "wasm32-unknown-wasi"
6
6
%main.kv = type { float }
7
7
%main.kv.0 = type { i8 }
8
8
9
- declare noalias nonnull i8* @runtime.alloc (i32 , i8* , i8* )
9
+ declare noalias nonnull i8* @runtime.alloc (i32 , i8* , i8* ) # 0
10
10
11
- declare void @runtime.trackPointer (i8* nocapture readonly , i8* )
11
+ declare void @runtime.trackPointer (i8* nocapture readonly , i8* ) # 0
12
12
13
13
; Function Attrs: nounwind
14
- define hidden void @main.init (i8* %context ) unnamed_addr #0 {
14
+ define hidden void @main.init (i8* %context ) unnamed_addr #1 {
15
15
entry:
16
16
ret void
17
17
}
18
18
19
19
; Function Attrs: nounwind
20
- define hidden i32 @main.addInt (i32 %x , i32 %y , i8* %context ) unnamed_addr #0 {
20
+ define hidden i32 @main.addInt (i32 %x , i32 %y , i8* %context ) unnamed_addr #1 {
21
21
entry:
22
22
%0 = add i32 %x , %y
23
23
ret i32 %0
24
24
}
25
25
26
26
; Function Attrs: nounwind
27
- define hidden i1 @main.equalInt (i32 %x , i32 %y , i8* %context ) unnamed_addr #0 {
27
+ define hidden i1 @main.equalInt (i32 %x , i32 %y , i8* %context ) unnamed_addr #1 {
28
28
entry:
29
29
%0 = icmp eq i32 %x , %y
30
30
ret i1 %0
31
31
}
32
32
33
33
; Function Attrs: nounwind
34
- define hidden i32 @main.divInt (i32 %x , i32 %y , i8* %context ) unnamed_addr #0 {
34
+ define hidden i32 @main.divInt (i32 %x , i32 %y , i8* %context ) unnamed_addr #1 {
35
35
entry:
36
36
%0 = icmp eq i32 %y , 0
37
37
br i1 %0 , label %divbyzero.throw , label %divbyzero.next
@@ -45,14 +45,14 @@ divbyzero.next: ; preds = %entry
45
45
ret i32 %5
46
46
47
47
divbyzero.throw: ; preds = %entry
48
- call void @runtime.divideByZeroPanic (i8* undef ) #0
48
+ call void @runtime.divideByZeroPanic (i8* undef ) #2
49
49
unreachable
50
50
}
51
51
52
- declare void @runtime.divideByZeroPanic (i8* )
52
+ declare void @runtime.divideByZeroPanic (i8* ) # 0
53
53
54
54
; Function Attrs: nounwind
55
- define hidden i32 @main.divUint (i32 %x , i32 %y , i8* %context ) unnamed_addr #0 {
55
+ define hidden i32 @main.divUint (i32 %x , i32 %y , i8* %context ) unnamed_addr #1 {
56
56
entry:
57
57
%0 = icmp eq i32 %y , 0
58
58
br i1 %0 , label %divbyzero.throw , label %divbyzero.next
@@ -62,12 +62,12 @@ divbyzero.next: ; preds = %entry
62
62
ret i32 %1
63
63
64
64
divbyzero.throw: ; preds = %entry
65
- call void @runtime.divideByZeroPanic (i8* undef ) #0
65
+ call void @runtime.divideByZeroPanic (i8* undef ) #2
66
66
unreachable
67
67
}
68
68
69
69
; Function Attrs: nounwind
70
- define hidden i32 @main.remInt (i32 %x , i32 %y , i8* %context ) unnamed_addr #0 {
70
+ define hidden i32 @main.remInt (i32 %x , i32 %y , i8* %context ) unnamed_addr #1 {
71
71
entry:
72
72
%0 = icmp eq i32 %y , 0
73
73
br i1 %0 , label %divbyzero.throw , label %divbyzero.next
@@ -81,12 +81,12 @@ divbyzero.next: ; preds = %entry
81
81
ret i32 %5
82
82
83
83
divbyzero.throw: ; preds = %entry
84
- call void @runtime.divideByZeroPanic (i8* undef ) #0
84
+ call void @runtime.divideByZeroPanic (i8* undef ) #2
85
85
unreachable
86
86
}
87
87
88
88
; Function Attrs: nounwind
89
- define hidden i32 @main.remUint (i32 %x , i32 %y , i8* %context ) unnamed_addr #0 {
89
+ define hidden i32 @main.remUint (i32 %x , i32 %y , i8* %context ) unnamed_addr #1 {
90
90
entry:
91
91
%0 = icmp eq i32 %y , 0
92
92
br i1 %0 , label %divbyzero.throw , label %divbyzero.next
@@ -96,66 +96,66 @@ divbyzero.next: ; preds = %entry
96
96
ret i32 %1
97
97
98
98
divbyzero.throw: ; preds = %entry
99
- call void @runtime.divideByZeroPanic (i8* undef ) #0
99
+ call void @runtime.divideByZeroPanic (i8* undef ) #2
100
100
unreachable
101
101
}
102
102
103
103
; Function Attrs: nounwind
104
- define hidden i1 @main.floatEQ (float %x , float %y , i8* %context ) unnamed_addr #0 {
104
+ define hidden i1 @main.floatEQ (float %x , float %y , i8* %context ) unnamed_addr #1 {
105
105
entry:
106
106
%0 = fcmp oeq float %x , %y
107
107
ret i1 %0
108
108
}
109
109
110
110
; Function Attrs: nounwind
111
- define hidden i1 @main.floatNE (float %x , float %y , i8* %context ) unnamed_addr #0 {
111
+ define hidden i1 @main.floatNE (float %x , float %y , i8* %context ) unnamed_addr #1 {
112
112
entry:
113
113
%0 = fcmp une float %x , %y
114
114
ret i1 %0
115
115
}
116
116
117
117
; Function Attrs: nounwind
118
- define hidden i1 @main.floatLower (float %x , float %y , i8* %context ) unnamed_addr #0 {
118
+ define hidden i1 @main.floatLower (float %x , float %y , i8* %context ) unnamed_addr #1 {
119
119
entry:
120
120
%0 = fcmp olt float %x , %y
121
121
ret i1 %0
122
122
}
123
123
124
124
; Function Attrs: nounwind
125
- define hidden i1 @main.floatLowerEqual (float %x , float %y , i8* %context ) unnamed_addr #0 {
125
+ define hidden i1 @main.floatLowerEqual (float %x , float %y , i8* %context ) unnamed_addr #1 {
126
126
entry:
127
127
%0 = fcmp ole float %x , %y
128
128
ret i1 %0
129
129
}
130
130
131
131
; Function Attrs: nounwind
132
- define hidden i1 @main.floatGreater (float %x , float %y , i8* %context ) unnamed_addr #0 {
132
+ define hidden i1 @main.floatGreater (float %x , float %y , i8* %context ) unnamed_addr #1 {
133
133
entry:
134
134
%0 = fcmp ogt float %x , %y
135
135
ret i1 %0
136
136
}
137
137
138
138
; Function Attrs: nounwind
139
- define hidden i1 @main.floatGreaterEqual (float %x , float %y , i8* %context ) unnamed_addr #0 {
139
+ define hidden i1 @main.floatGreaterEqual (float %x , float %y , i8* %context ) unnamed_addr #1 {
140
140
entry:
141
141
%0 = fcmp oge float %x , %y
142
142
ret i1 %0
143
143
}
144
144
145
145
; Function Attrs: nounwind
146
- define hidden float @main.complexReal (float %x.r , float %x.i , i8* %context ) unnamed_addr #0 {
146
+ define hidden float @main.complexReal (float %x.r , float %x.i , i8* %context ) unnamed_addr #1 {
147
147
entry:
148
148
ret float %x.r
149
149
}
150
150
151
151
; Function Attrs: nounwind
152
- define hidden float @main.complexImag (float %x.r , float %x.i , i8* %context ) unnamed_addr #0 {
152
+ define hidden float @main.complexImag (float %x.r , float %x.i , i8* %context ) unnamed_addr #1 {
153
153
entry:
154
154
ret float %x.i
155
155
}
156
156
157
157
; Function Attrs: nounwind
158
- define hidden { float , float } @main.complexAdd (float %x.r , float %x.i , float %y.r , float %y.i , i8* %context ) unnamed_addr #0 {
158
+ define hidden { float , float } @main.complexAdd (float %x.r , float %x.i , float %y.r , float %y.i , i8* %context ) unnamed_addr #1 {
159
159
entry:
160
160
%0 = fadd float %x.r , %y.r
161
161
%1 = fadd float %x.i , %y.i
@@ -165,7 +165,7 @@ entry:
165
165
}
166
166
167
167
; Function Attrs: nounwind
168
- define hidden { float , float } @main.complexSub (float %x.r , float %x.i , float %y.r , float %y.i , i8* %context ) unnamed_addr #0 {
168
+ define hidden { float , float } @main.complexSub (float %x.r , float %x.i , float %y.r , float %y.i , i8* %context ) unnamed_addr #1 {
169
169
entry:
170
170
%0 = fsub float %x.r , %y.r
171
171
%1 = fsub float %x.i , %y.i
@@ -175,7 +175,7 @@ entry:
175
175
}
176
176
177
177
; Function Attrs: nounwind
178
- define hidden { float , float } @main.complexMul (float %x.r , float %x.i , float %y.r , float %y.i , i8* %context ) unnamed_addr #0 {
178
+ define hidden { float , float } @main.complexMul (float %x.r , float %x.i , float %y.r , float %y.i , i8* %context ) unnamed_addr #1 {
179
179
entry:
180
180
%0 = fmul float %x.r , %y.r
181
181
%1 = fmul float %x.i , %y.i
@@ -189,16 +189,18 @@ entry:
189
189
}
190
190
191
191
; Function Attrs: nounwind
192
- define hidden void @main.foo (%main.kv* dereferenceable_or_null (4 ) %a , i8* %context ) unnamed_addr #0 {
192
+ define hidden void @main.foo (%main.kv* dereferenceable_or_null (4 ) %a , i8* %context ) unnamed_addr #1 {
193
193
entry:
194
194
call void @"main.foo$1" (%main.kv.0* null , i8* undef )
195
195
ret void
196
196
}
197
197
198
198
; Function Attrs: nounwind
199
- define hidden void @"main.foo$1" (%main.kv.0* dereferenceable_or_null (1 ) %b , i8* %context ) unnamed_addr #0 {
199
+ define hidden void @"main.foo$1" (%main.kv.0* dereferenceable_or_null (1 ) %b , i8* %context ) unnamed_addr #1 {
200
200
entry:
201
201
ret void
202
202
}
203
203
204
- attributes #0 = { nounwind }
204
+ attributes #0 = { "target-features" ="+bulk-memory,+nontrapping-fptoint,+sign-ext" }
205
+ attributes #1 = { nounwind "target-features" ="+bulk-memory,+nontrapping-fptoint,+sign-ext" }
206
+ attributes #2 = { nounwind }
0 commit comments