pub struct Target { /* private fields */ }
Expand description
A wrapper around a LLVMTargetRef
Implementations§
Source§impl Target
impl Target
Sourcepub fn from_triple(triple: String) -> Result<Target, String>
pub fn from_triple(triple: String) -> Result<Target, String>
Attempts to create a Target
using the given triple
Sourcepub fn create_machine(&self, triple: String) -> TargetMachine
pub fn create_machine(&self, triple: String) -> TargetMachine
Creates a target machine with the default options
Sourcepub fn create_machine_with_options(
&self,
triple: String,
cpu: String,
features: String,
level: OptLevel,
) -> TargetMachine
pub fn create_machine_with_options( &self, triple: String, cpu: String, features: String, level: OptLevel, ) -> TargetMachine
Creates a target machine with the given options
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Gets the description of this target
Trait Implementations§
impl Copy for Target
Auto Trait Implementations§
impl Freeze for Target
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