Lines Matching refs:rc
14 multiclass REF_I<WebAssemblyRegClass rc, ValueType vt, string ht> {
15 defm REF_NULL_#rc : I<(outs rc:$dst), (ins),
17 [(set rc:$dst, (!cast<Intrinsic>("int_wasm_ref_null_" # ht)))],
23 defm SELECT_#rc: I<(outs rc:$dst), (ins rc:$lhs, rc:$rhs, I32:$cond),
25 [(set rc:$dst,
26 (select I32:$cond, rc:$lhs, rc:$rhs))],
30 defm REF_IS_NULL_#rc
31 : I<(outs I32:$dst), (ins rc:$ref), (outs), (ins),
32 [(set I32:$dst, (!cast<Intrinsic>("int_wasm_ref_is_null_" # ht) rc:$ref))],
41 foreach rc = [FUNCREF, EXTERNREF] in {
42 def : Pat<(select (i32 (setne I32:$cond, 0)), rc:$lhs, rc:$rhs),
43 (!cast<Instruction>("SELECT_"#rc) rc:$lhs, rc:$rhs, I32:$cond)>;
44 def : Pat<(select (i32 (seteq I32:$cond, 0)), rc:$lhs, rc:$rhs),
45 (!cast<Instruction>("SELECT_"#rc) rc:$rhs, rc:$lhs, I32:$cond)>;