Struct inkwell::targets::Target

source ·
pub struct Target { /* private fields */ }

Implementations§

source§

impl Target

source

pub unsafe fn new(target: LLVMTargetRef) -> Self

source

pub fn as_mut_ptr(&self) -> LLVMTargetRef

Acquires the underlying raw pointer belonging to this Target type.

source

pub fn initialize_x86(config: &InitializationConfig)

source

pub fn initialize_arm(config: &InitializationConfig)

source

pub fn initialize_mips(config: &InitializationConfig)

source

pub fn initialize_aarch64(config: &InitializationConfig)

source

pub fn initialize_amd_gpu(config: &InitializationConfig)

source

pub fn initialize_system_z(config: &InitializationConfig)

source

pub fn initialize_hexagon(config: &InitializationConfig)

source

pub fn initialize_nvptx(config: &InitializationConfig)

source

pub fn initialize_msp430(config: &InitializationConfig)

source

pub fn initialize_x_core(config: &InitializationConfig)

source

pub fn initialize_power_pc(config: &InitializationConfig)

source

pub fn initialize_sparc(config: &InitializationConfig)

source

pub fn initialize_bpf(config: &InitializationConfig)

source

pub fn initialize_lanai(config: &InitializationConfig)

source

pub fn initialize_riscv(config: &InitializationConfig)

source

pub fn initialize_loongarch(config: &InitializationConfig)

source

pub fn initialize_webassembly(config: &InitializationConfig)

source

pub fn initialize_native(config: &InitializationConfig) -> Result<(), String>

source

pub fn initialize_all(config: &InitializationConfig)

source

pub fn create_target_machine( &self, triple: &TargetTriple, cpu: &str, features: &str, level: OptimizationLevel, reloc_mode: RelocMode, code_model: CodeModel ) -> Option<TargetMachine>

source

pub fn get_first() -> Option<Self>

source

pub fn get_next(&self) -> Option<Self>

source

pub fn get_name(&self) -> &CStr

source

pub fn get_description(&self) -> &CStr

source

pub fn from_name(name: &str) -> Option<Self>

source

pub fn from_triple(triple: &TargetTriple) -> Result<Self, LLVMString>

source

pub fn has_jit(&self) -> bool

source

pub fn has_target_machine(&self) -> bool

source

pub fn has_asm_backend(&self) -> bool

Trait Implementations§

source§

impl Debug for Target

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for Target

source§

fn eq(&self, other: &Target) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for Target

source§

impl StructuralEq for Target

source§

impl StructuralPartialEq for Target

Auto Trait Implementations§

§

impl RefUnwindSafe for Target

§

impl !Send for Target

§

impl !Sync for Target

§

impl Unpin for Target

§

impl UnwindSafe for Target

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.