package opcodescsv
import "github.com/mmcloughlin/avo/internal/opcodescsv"
Package opcodescsv extracts data from the Go x86.csv database.
Index ¶
- Constants
- func BuildAliasMap(is []*x86csv.Inst) (map[Alias]string, error)
- func BuildOrderMap(is []*x86csv.Inst) map[string]OperandOrder
- func ReadFile(filename string) ([]*x86csv.Inst, error)
- type Alias
- type OperandOrder
Constants ¶
const ( UnknownOrder = iota IntelOrder ReverseIntelOrder CMP3Order )
Possible operand orders.
Functions ¶
func BuildAliasMap ¶
BuildAliasMap constructs a map from AT&T/GNU/Intel to Go syntax.
func BuildOrderMap ¶
func BuildOrderMap(is []*x86csv.Inst) map[string]OperandOrder
BuildOrderMap collects operand order information from the instruction list.
func ReadFile ¶
ReadFile reads the given x86 CSV file.
Types ¶
type Alias ¶
Alias records another possible name for an instruction configuration.
type OperandOrder ¶
type OperandOrder uint8
OperandOrder describes the order an instruction takes its operands.
Source Files ¶
- Version
- v0.6.0 (latest)
- Published
- Jan 7, 2024
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 1 month ago –
Tools for package owners.