You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
msg"WatBuilder::result for binary builtin symbol '${l.nme.toString}' ($opSide.type=${ty.fold("(none)")(_.toWat.mkString())}) not implemented yet"-> r.toLoc
178
-
),
179
-
extraInfo =S(r.toString)
180
-
)
181
-
182
-
vallhsOp= castOperand(operand(lhs), "lhs")
183
-
valrhsOp= castOperand(operand(rhs), "rhs")
184
-
185
-
(lhsOp.resultType, rhsOp.resultType) match
186
-
case (S(I32Type), S(I32Type)) =>
187
-
ref.i31(i32.add(lhsOp, rhsOp))
188
-
case (lhsType, rhsType) =>
189
-
errExpr(
190
-
Ls(
191
-
msg"WatBuilder::result for binary builtin symbol '${l.nme.toString}' for (${lhsType.fold("(none)")(_.toWat.mkString())}, ${rhsType.fold("(none)")(_.toWat.mkString())}) not implemented yet"-> r.toLoc
192
-
),
193
-
extraInfo =S(r.toString)
194
-
)
166
+
errExpr(
167
+
Ls(
168
+
msg"WatBuilder::result encountered builtin '+' which should be lowered to wasm.plus_impl"-> r.toLoc
169
+
),
170
+
extraInfo =S(r.toString)
171
+
)
195
172
case lNme =>
196
173
errExpr(
197
174
Ls(
@@ -287,6 +264,25 @@ class WatBuilder(using TraceLogger, State) extends CodeBuilder:
287
264
)
288
265
endresult
289
266
267
+
privatedefisWasmIntrinsic(path: Path, name: Str):Bool= path match
0 commit comments