Documentation
¶
Index ¶
- func OpStrings() []string
- type Op
- func (op Op) ClobbersArg() bool
- func (i Op) IsAOp() bool
- func (op Op) IsBranch() 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) IsReturn() 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 ¶
Types ¶
type Op ¶
type Op uint8
const ( Invalid Op = iota // Control flow Ret If Jump Switch IndirectBr Invoke Unreachable // Compares FCmp Equal NotEqual Less LessEqual Greater GreaterEqual ULess ULessEqual UGreater UGreaterEqual // Standard Binary Operators Add FAdd Sub FSub Mul FMul UDiv SDiv FDiv URem SRem FRem // Logical Operators Shl LShr AShr And Or Xor // Memory Operators Alloca Load Store GetElementPtr // Cast Operators Trunc ZExt SExt FPToUI FPToSI UIToFP SIToFP FPTrunc FPExt PtrToInt IntToPtr BitCast // Other Operators Call Select Copy // UserOp1 // UserOp2 VAArg ExtractElement InsertElement ShuffleVector ExtractValue InsertValue 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.