MCPcopy Create free account
hub / github.com/hashintel/hash / binary

Method binary

libs/@local/hashql/mir/src/builder/rvalue.rs:51–62  ·  view source on GitHub ↗
(
        self,
        lhs: impl Into<Operand<'heap>>,
        op: BinOp,
        rhs: impl Into<Operand<'heap>>,
    )

Source from the content-addressed store, hash-verified

49 /// [`op!`]: crate::op
50 #[must_use]
51 pub fn binary(
52 self,
53 lhs: impl Into<Operand<'heap>>,
54 op: BinOp,
55 rhs: impl Into<Operand<'heap>>,
56 ) -> RValue<'heap> {
57 RValue::Binary(Binary {
58 left: lhs.into(),
59 op,
60 right: rhs.into(),
61 })
62 }
63
64 /// Creates a unary operation r-value.
65 ///

Callers 7

create_linear_cfgFunction · 0.45
create_dead_store_cfgFunction · 0.45
create_inst_simplify_cfgFunction · 0.45
create_complex_cfgFunction · 0.45
block_param_effectfulFunction · 0.45

Calls 1

BinaryClass · 0.85

Tested by 3

block_param_effectfulFunction · 0.36