v3.insel
fn select_ #
fn select_(mut m mir.Module) Module
select_ selects MIR instructions into a target-specific machine module shell.
fn OperandKind.from #
fn OperandKind.from[W](input W) !OperandKind
enum OperandKind #
enum OperandKind {
value
block
}
OperandKind lists operand kind values used by insel.
struct BasicBlock #
struct BasicBlock {
pub:
id int
name string
instrs []Instruction
}
BasicBlock represents basic block data used by insel.
struct Function #
struct Function {
pub:
id int
name string
abi mir.FunctionAbi
blocks []BasicBlock
}
Function represents function data used by insel.
struct Instruction #
struct Instruction {
pub:
op ssa.OpCode
operands []Operand
typ ssa.TypeID
}
Instruction represents instruction data used by insel.
struct Module #
struct Module {
pub:
target mir.Target
funcs []Function
}
Module represents module data used by insel.
struct Operand #
struct Operand {
pub:
kind OperandKind
id int
}
Operand represents operand data used by insel.