Lines Matching refs:local

286 // local.get and local.set are not generated by instruction selection; they
290 // COPY is not an actual instruction in wasm, but since we allow local.get and
291 // local.set to be implicit during most of codegen, we can have a COPY which
292 // is actually a no-op because all the work is done in the implied local.get
293 // and local.set. COPYs are eliminated (and replaced with
294 // local.get/local.set) in the ExplicitLocals pass.
297 "local.copy\t$res, $src", "local.copy">;
301 // local.
304 "local.tee\t$res, $also, $src", "local.tee">;
306 // This is the actual local.get instruction in wasm. These are made explicit
308 // local, which is a side effect not otherwise modeled in LLVM.
310 defm LOCAL_GET_#rc : I<(outs rc:$res), (ins local_op:$local),
311 (outs), (ins local_op:$local), [],
312 "local.get\t$res, $local", "local.get\t$local", 0x20>;
314 // This is the actual local.set instruction in wasm. These are made explicit
316 // local, which is a side effect not otherwise modeled in LLVM.
318 defm LOCAL_SET_#rc : I<(outs), (ins local_op:$local, rc:$src),
319 (outs), (ins local_op:$local), [],
320 "local.set\t$local, $src", "local.set\t$local", 0x21>;
322 // This is the actual local.tee instruction in wasm. TEEs are turned into
326 defm LOCAL_TEE_#rc : I<(outs rc:$res), (ins local_op:$local, rc:$src),
327 (outs), (ins local_op:$local), [],
328 "local.tee\t$res, $local, $src", "local.tee\t$local",
355 def : Pat<(vt (WebAssemblylocal_get (i32 timm:$local))),
356 (!cast<NI>("LOCAL_GET_" # rc) timm:$local)>;
357 def : Pat<(WebAssemblylocal_set timm:$local, vt:$src),
358 (!cast<NI>("LOCAL_SET_" # rc) timm:$local, vt:$src)>;