Class IrBinaryOp
Represents a binary operation.
public class IrBinaryOp : IrExpression
- Inheritance
-
IrBinaryOp
- Inherited Members
Constructors
IrBinaryOp(BinaryOperator, IrExpression, IrExpression, IrType)
Initializes a new instance of the IrBinaryOp class.
public IrBinaryOp(BinaryOperator op, IrExpression left, IrExpression right, IrType type)
Parameters
opBinaryOperatorleftIrExpressionrightIrExpressiontypeIrType
Properties
Kind
Gets the node kind for this binary operation.
public override IrNodeKind Kind { get; }
Property Value
Left
Gets the left-hand operand.
public IrExpression Left { get; }
Property Value
Operator
Gets the binary operator.
public BinaryOperator Operator { get; }
Property Value
Right
Gets the right-hand operand.
public IrExpression Right { get; }
Property Value
Type
Gets the result type of the binary operation.
public override IrType Type { get; }