Module dsl

Source
Expand description

Defines a domain-specific language (DSL) for describing x64 instructions.

This language is intended to be:

  • compact–i.e., define an x64 instruction on a single line, and
  • a close-to-direct mapping of what we read in the x64 reference manual.

Re-exports§

pub use format::fmt;
pub use format::r;
pub use format::rw;
pub use format::sxl;
pub use format::sxq;
pub use format::sxw;
pub use format::Extension;
pub use format::Format;
pub use format::Location;
pub use format::Mutability;
pub use format::Operand;
pub use format::OperandKind;

Modules§

format
A DSL for describing x64 instruction formats–the shape of the operands.

Structs§

Features
A collection of CPU features.
Inst
An x64 instruction.
Rex
The traditional x64 encoding.

Enums§

Encoding
Enumerate the ways x64 encodes instructions.
Feature
A CPU feature.
LegacyPrefix
A prefix byte for an instruction.

Constants§

ALL_FEATURES
List all CPU features.

Functions§

inst
Abbreviated constructor for an x64 instruction.
rex
An abbreviated constructor for REX-encoded instructions.
vex
An abbreviated constructor for VEX-encoded instructions.