Documentation ¶
Index ¶
- Constants
- Variables
- type Bounds
- type Condition
- type Operand
- func ConditionFlagsOperand(cond Condition) Operand
- func ImmOperand(t abi.Type, payload uint64) Operand
- func NoOperand(t abi.Type) Operand
- func RegOperand(own bool, t abi.Type, reg regs.R) Operand
- func StackOperand(t abi.Type) Operand
- func TempRegOperand(t abi.Type, reg regs.R, zeroExt bool) Operand
- func VarMemOperand(t abi.Type, index, offset int32) Operand
- func VarReferenceOperand(t abi.Type, index int32) Operand
- func VarRegOperand(t abi.Type, index int32, reg regs.R, zeroExt bool) Operand
- type Storage
Constants ¶
View Source
const ( Nowhere = Storage(0) VarReference = Storage(storageVSCf | storageVar) VarReg = Storage(storageVSCf | storageVar | storageReg) TempReg = Storage(storageTrCf | storageReg) Stack = Storage(storageSCf | storageVSCf) ConditionFlags = Storage(storageSCf | storageTrCf | storageVSCf) Imm = Storage((1 << 5)) BorrowedReg = Storage((1 << 5) | storageReg) VarMem = Storage((1 << 5) | storageVSCf | storageVar) )
View Source
const ( Eq = Condition(iota) Ne GeS GtS GeU GtU LeS LtS LeU LtU OrderedAndEq OrderedAndNe OrderedAndGe OrderedAndGt OrderedAndLe OrderedAndLt UnorderedOrEq UnorderedOrNe UnorderedOrGe UnorderedOrGt UnorderedOrLe UnorderedOrLt MinOrderedAndCondition = OrderedAndEq MinUnorderedOrCondition = UnorderedOrEq )
Variables ¶
View Source
var InvertedConditions = []Condition{ Eq: Ne, Ne: Eq, GeS: LtS, GtS: LeS, GeU: LtU, GtU: LeU, LeS: GtS, LtS: GeS, LeU: GtU, LtU: GeU, OrderedAndEq: UnorderedOrNe, OrderedAndNe: UnorderedOrEq, OrderedAndGe: UnorderedOrLt, OrderedAndGt: UnorderedOrLe, OrderedAndLe: UnorderedOrGt, OrderedAndLt: UnorderedOrGe, UnorderedOrEq: OrderedAndNe, UnorderedOrNe: OrderedAndEq, UnorderedOrGe: OrderedAndLt, UnorderedOrGt: OrderedAndLe, UnorderedOrLe: OrderedAndGt, UnorderedOrLt: OrderedAndGe, }
Functions ¶
This section is empty.
Types ¶
type Operand ¶
type Operand struct { Bounds Bounds Type abi.Type Storage Storage // contains filtered or unexported fields }
func ConditionFlagsOperand ¶
func StackOperand ¶
func (Operand) RegZeroExt ¶
func (Operand) VarMemOffset ¶
func (Operand) WithBounds ¶
type Storage ¶
type Storage uint8
func (Storage) IsStackOrConditionFlags ¶
func (Storage) IsTempRegOrConditionFlags ¶
func (Storage) IsVarOrStackOrConditionFlags ¶
Click to show internal directories.
Click to hide internal directories.