IrValueKind

Describes what IrIndex is pointing at Is used as UDA on IR entities

Values

ValueMeaning
none

Used for undefined indices

instruction
basicBlock
constant
constantAggregate

Cannot appear in LIR

constantZero

Zero inits value of any type. Type is embedded (same layout as IrValueKind.type)

global

Index of global var or const (or literal data)

phi
stackSlot
virtualRegister
physicalRegister
type
variable

Represents variable index while converting into SSA-form

func
array

Indicates reference to big array in IrSmallArray

Meta