Struct cranelift_codegen_shared::isa::x86::EncodingBits [−][src]
pub struct EncodingBits(_);
Expand description
Named interface to the u16
Encoding bits, representing an opcode.
Cranelift requires each recipe to have a single encoding size in bytes. X86 opcodes are variable length, so we use separate recipes for different styles of opcodes and prefixes. The opcode format is indicated by the recipe name prefix.
VEX/XOP and EVEX prefixes are not yet supported. Encodings using any of these prefixes are represented by separate recipes.
The encoding bits are:
0-7: The opcode byte
Implementations
Constructs a new EncodingBits from parts.
Returns a copy of the EncodingBits with the RRR bits set.
Returns a copy of the EncodingBits with the REX.W bit set.
Instruction opcode byte, without the prefix.
Prefix kind for the instruction, as an enum.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for EncodingBits
impl Send for EncodingBits
impl Sync for EncodingBits
impl Unpin for EncodingBits
impl UnwindSafe for EncodingBits
Blanket Implementations
Mutably borrows from an owned value. Read more