Documentation ¶
Index ¶
- func BlockOpStrings() []string
- func OpStrings() []string
- func SetArch(a Arch)
- type Arch
- type BlockOp
- type Def
- type Op
- func (op Op) Asm() string
- func (op Op) ClobbersArg() bool
- func (op Op) Def() *Def
- func (i Op) IsAOp() bool
- func (op Op) IsCall() bool
- func (op Op) IsCommutative() bool
- func (op Op) IsCompare() bool
- func (op Op) IsConst() bool
- func (op Op) IsCopy() bool
- func (op Op) IsSink() bool
- func (op Op) Opposite() Op
- func (i Op) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockOpStrings ¶
func BlockOpStrings() []string
BlockOpStrings returns a slice of all String values of the enum
Types ¶
type BlockOp ¶
type BlockOp int
func BlockOpString ¶
BlockOpString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func (BlockOp) IsABlockOp ¶
IsABlockOp returns "true" if the value is listed in the enum definition. "false" otherwise
type Op ¶
type Op int
const ( Invalid Op = iota Builtin Call CallBuiltin ChangeInterface ChangeType Const Convert Copy Extract Field FieldAddr FreeVar Func Global Index IndexAddr InlineAsm Local Lookup MakeInterface MakeSlice Next New Parameter Phi PhiCopy Range Reg Slice SliceToArrayPointer Store SwapIn SwapOut TypeAssert Add Sub Mul Div Rem And Or Xor ShiftLeft ShiftRight AndNot Equal NotEqual Less LessEqual Greater GreaterEqual Not Negate Load Invert Jump2 If2 Return2 Panic2 IfEqual2 IfNotEqual2 IfLess2 IfLessEqual2 IfGreater2 IfGreaterEqual2 NumOps )
func OpString ¶
OpString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func (Op) ClobbersArg ¶
func (Op) IsAOp ¶
IsAOp returns "true" if the value is listed in the enum definition. "false" otherwise
func (Op) IsCommutative ¶
Click to show internal directories.
Click to hide internal directories.