Versions in this module Expand all Collapse all v0 v0.1.4 Jan 4, 2022 v0.1.3 Dec 21, 2021 Changes in this version type Op + const If2 + const IfEqual2 + const IfGreater2 + const IfGreaterEqual2 + const IfLess2 + const IfLessEqual2 + const IfNotEqual2 + const Jump2 + const Panic2 + const Return2 + func (op Op) IsCall() bool v0.1.1 Dec 6, 2021 v0.1.0 Dec 6, 2021 Changes in this version + func BlockOpStrings() []string + func OpStrings() []string + func SetArch(a Arch) + type Arch interface + IsTwoOperand func() bool + type BlockOp int + const BadBlock + const If + const IfEqual + const IfGreater + const IfGreaterEqual + const IfLess + const IfLessEqual + const IfNotEqual + const Jump + const Panic + const Return + func BlockOpString(s string) (BlockOp, error) + func BlockOpValues() []BlockOp + func (i BlockOp) IsABlockOp() bool + func (i BlockOp) String() string + func (op BlockOp) Compare() Op + type Def struct + Asm string + ClobArg bool + Commute bool + Compare bool + Const bool + Copy bool + Op Op + Sink bool + type Op int + const Add + const And + const AndNot + const Builtin + const Call + const CallBuiltin + const ChangeInterface + const ChangeType + const Const + const Convert + const Copy + const Div + const Equal + const Extract + const Field + const FieldAddr + const FreeVar + const Func + const Global + const Greater + const GreaterEqual + const Index + const IndexAddr + const InlineAsm + const Invalid + const Invert + const Less + const LessEqual + const Load + const Local + const Lookup + const MakeInterface + const MakeSlice + const Mul + const Negate + const New + const Next + const Not + const NotEqual + const NumOps + const Or + const Parameter + const Phi + const PhiCopy + const Range + const Reg + const Rem + const ShiftLeft + const ShiftRight + const Slice + const SliceToArrayPointer + const Store + const Sub + const SwapIn + const SwapOut + const TypeAssert + const Xor + func OpString(s string) (Op, error) + func OpValues() []Op + func (i Op) IsAOp() bool + func (i Op) String() string + func (op Op) Asm() string + func (op Op) ClobbersArg() bool + func (op Op) Def() *Def + 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