Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type Instruction = GenericInstruction AddressWord64 Register Prefix Opcode Int
- canonicalize :: Instruction -> [Instruction]
- addressof :: GenericInstruction AddressWord64 storage prefix opcode annotation -> Word64
Documentation
canonicalize :: Instruction -> [Instruction] Source #
Canonicalizes an instruction by making sure there is at most one output and inputs/outputs are syntactically clear. | For example, the IMUL instruction comes in different flavors that hide the actual inputs and outputs to multiple registers
addressof :: GenericInstruction AddressWord64 storage prefix opcode annotation -> Word64 Source #
Orphan instances
HasSize Instruction Source # | |
sizeof :: Instruction -> Int Source # |