Table of Contents

Class IrIf

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

Represents an if statement.

public class IrIf : IrStatement
Inheritance
IrIf
Inherited Members

Constructors

IrIf(IrExpression, IrBlock, IrBlock?)

Initializes a new instance of IrIf with the specified condition and blocks.

public IrIf(IrExpression condition, IrBlock thenBlock, IrBlock? elseBlock = null)

Parameters

condition IrExpression
thenBlock IrBlock
elseBlock IrBlock

Properties

Condition

Gets the condition expression.

public IrExpression Condition { get; }

Property Value

IrExpression

ElseBlock

Gets the optional block executed when the condition is false.

public IrBlock? ElseBlock { get; }

Property Value

IrBlock

Kind

Gets the IR node kind for this statement.

public override IrNodeKind Kind { get; }

Property Value

IrNodeKind

ThenBlock

Gets the block executed when the condition is true.

public IrBlock ThenBlock { get; }

Property Value

IrBlock