Documentation ¶
Index ¶
- Variables
- func OpcodeStrings() []string
- func RegStrings() []string
- type Opcode
- func (op Opcode) Asm() string
- func (op Opcode) ClobbersArg() bool
- func (i Opcode) IsAOpcode() bool
- func (op Opcode) IsBranch() bool
- func (op Opcode) IsCall() bool
- func (op Opcode) IsCommutative() bool
- func (op Opcode) IsCompare() bool
- func (op Opcode) IsCopy() bool
- func (op Opcode) IsMove() bool
- func (op Opcode) IsReturn() bool
- func (op Opcode) IsSink() bool
- func (i Opcode) String() string
- type Reg
Constants ¶
This section is empty.
Variables ¶
View Source
var ArgRegs = []Reg{A0, A1, A2}
Functions ¶
func OpcodeStrings ¶
func OpcodeStrings() []string
OpcodeStrings returns a slice of all String values of the enum
func RegStrings ¶
func RegStrings() []string
RegStrings returns a slice of all String values of the enum
Types ¶
type Opcode ¶
type Opcode int
func OpcodeString ¶
OpcodeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func (Opcode) ClobbersArg ¶
func (Opcode) IsAOpcode ¶
IsAOpcode returns "true" if the value is listed in the enum definition. "false" otherwise
func (Opcode) IsCommutative ¶
Click to show internal directories.
Click to hide internal directories.