pub struct LlvmBackend {}Expand description
LLVM Backend implementation
Trait Implementations§
Source§impl Backend for LlvmBackend
impl Backend for LlvmBackend
Source§fn primary_target(&self) -> CompilationTarget
fn primary_target(&self) -> CompilationTarget
Get the primary compilation target supported by this backend.
Source§fn artifact_type(&self) -> ArtifactType
fn artifact_type(&self) -> ArtifactType
Get the type of artifact generated by this backend.
Source§fn match_score(&self, target: &CompilationTarget) -> f32
fn match_score(&self, target: &CompilationTarget) -> f32
Calculate the match score (0-100) for the given compilation target.
A score of 0 indicates that the target is not supported.
Source§fn generate(
&self,
_program: &GaiaModule,
_config: &GaiaConfig,
) -> Result<GeneratedFiles>
fn generate( &self, _program: &GaiaModule, _config: &GaiaConfig, ) -> Result<GeneratedFiles>
Compile Gaia program to target platform
Source§impl Default for LlvmBackend
impl Default for LlvmBackend
Source§fn default() -> LlvmBackend
fn default() -> LlvmBackend
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LlvmBackend
impl RefUnwindSafe for LlvmBackend
impl Send for LlvmBackend
impl Sync for LlvmBackend
impl Unpin for LlvmBackend
impl UnsafeUnpin for LlvmBackend
impl UnwindSafe for LlvmBackend
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