Struct cranelift_codegen::isa::Encoding[][src]

pub struct Encoding { /* fields omitted */ }

Bits needed to encode an instruction as binary machine code.

The encoding consists of two parts, both specific to the target ISA: An encoding recipe, and encoding bits. The recipe determines the native instruction format and the mapping of operands to encoded bits. The encoding bits provide additional information to the recipe, typically parts of the opcode.

Methods

impl Encoding
[src]

Create a new Encoding containing (recipe, bits).

Get the recipe number in this encoding.

Get the recipe-specific encoding bits.

Is this a legal encoding, or the default placeholder?

Trait Implementations

impl Clone for Encoding
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Encoding
[src]

impl Debug for Encoding
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Encoding
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Encoding
[src]

impl Default for Encoding
[src]

The default encoding is the illegal one.

Returns the "default value" for a type. Read more

impl Display for Encoding
[src]

ISA-independent display of an encoding.

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Encoding

impl Sync for Encoding