Table of Contents

Class IrBinaryOp

Namespace
Xui.GPU.IR
Assembly
Xui.Core.dll

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

op BinaryOperator
left IrExpression
right IrExpression
type IrType

Properties

Kind

Gets the node kind for this binary operation.

public override IrNodeKind Kind { get; }

Property Value

IrNodeKind

Left

Gets the left-hand operand.

public IrExpression Left { get; }

Property Value

IrExpression

Operator

Gets the binary operator.

public BinaryOperator Operator { get; }

Property Value

BinaryOperator

Right

Gets the right-hand operand.

public IrExpression Right { get; }

Property Value

IrExpression

Type

Gets the result type of the binary operation.

public override IrType Type { get; }

Property Value

IrType