pub struct Target { /* private fields */ }
Implementations§
source§impl Target
impl Target
pub unsafe fn new(target: LLVMTargetRef) -> Self
sourcepub fn as_mut_ptr(&self) -> LLVMTargetRef
pub fn as_mut_ptr(&self) -> LLVMTargetRef
Acquires the underlying raw pointer belonging to this Target
type.
pub fn initialize_x86(config: &InitializationConfig)
pub fn initialize_arm(config: &InitializationConfig)
pub fn initialize_mips(config: &InitializationConfig)
pub fn initialize_aarch64(config: &InitializationConfig)
pub fn initialize_amd_gpu(config: &InitializationConfig)
pub fn initialize_system_z(config: &InitializationConfig)
pub fn initialize_hexagon(config: &InitializationConfig)
pub fn initialize_nvptx(config: &InitializationConfig)
pub fn initialize_msp430(config: &InitializationConfig)
pub fn initialize_x_core(config: &InitializationConfig)
pub fn initialize_power_pc(config: &InitializationConfig)
pub fn initialize_sparc(config: &InitializationConfig)
pub fn initialize_bpf(config: &InitializationConfig)
pub fn initialize_lanai(config: &InitializationConfig)
pub fn initialize_riscv(config: &InitializationConfig)
pub fn initialize_loongarch(config: &InitializationConfig)
pub fn initialize_webassembly(config: &InitializationConfig)
pub fn initialize_native(config: &InitializationConfig) -> Result<(), String>
pub fn initialize_all(config: &InitializationConfig)
pub fn create_target_machine( &self, triple: &TargetTriple, cpu: &str, features: &str, level: OptimizationLevel, reloc_mode: RelocMode, code_model: CodeModel ) -> Option<TargetMachine>
pub fn get_first() -> Option<Self>
pub fn get_next(&self) -> Option<Self>
pub fn get_name(&self) -> &CStr
pub fn get_description(&self) -> &CStr
pub fn from_name(name: &str) -> Option<Self>
pub fn from_triple(triple: &TargetTriple) -> Result<Self, LLVMString>
pub fn has_jit(&self) -> bool
pub fn has_target_machine(&self) -> bool
pub fn has_asm_backend(&self) -> bool
Trait Implementations§
source§impl PartialEq for Target
impl PartialEq for Target
impl Eq for Target
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more