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
}
struct BasicBlock #
struct BasicBlock {
pub:
id int
name string
instrs []Instruction
}
struct Function #
struct Function {
pub:
id int
name string
abi mir.FunctionAbi
blocks []BasicBlock
}
struct Instruction #
struct Instruction {
pub:
op ssa.OpCode
operands []Operand
typ ssa.TypeID
}
struct Module #
struct Module {
pub:
target mir.Target
funcs []Function
}
struct Operand #
struct Operand {
pub:
kind OperandKind
id int
}