[][src]Crate target_lexicon

Target triple support.

Macros

triple

A convenient syntax for triple literals.

Structs

DefaultToHost

A simple wrapper around Triple that provides an implementation of Default which defaults to Triple::host().

DefaultToUnknown

A simple wrapper around Triple that provides an implementation of Default which defaults to Triple::unknown().

Triple

A target "triple". Historically such things had three fields, though they've added additional fields over time.

Enums

Aarch64Architecture
Architecture

The "architecture" field, which in some cases also specifies a specific subarchitecture.

ArmArchitecture
BinaryFormat

The "binary format" field, which is usually omitted, and the binary format is implied by the other fields.

CDataModel

The C data model used on a target.

CallingConvention

The calling convention, which specifies things like which registers are used for passing arguments, which registers are callee-saved, and so on.

CustomVendor

A string for a Vendor::Custom that can either be used in const contexts or hold dynamic strings.

Endianness

The target memory endianness.

Environment

The "environment" field, which specifies an ABI environment on top of the operating system. In many configurations, this field is omitted, and the environment is implied by the operating system.

Mips32Architecture

An enum for all 32-bit MIPS architectures (not just "MIPS32").

Mips64Architecture

An enum for all 64-bit MIPS architectures (not just "MIPS64").

OperatingSystem

The "operating system" field, which sometimes implies an environment, and sometimes isn't an actual operating system.

ParseError

An error returned from parsing a triple.

PointerWidth

The width of a pointer (in the default address space).

Riscv32Architecture

An enum for all 32-bit RISC-V architectures.

Riscv64Architecture

An enum for all 64-bit RISC-V architectures.

Size

The size of a type.

Vendor

The "vendor" field, which in practice is little more than an arbitrary modifier.

X86_32Architecture

An enum for all 32-bit x86 architectures.

Constants

HOST

The Triple of the current host.