pub struct LlvmModule {
pub source_filename: String,
pub target_triple: String,
pub data_layout: String,
pub type_aliases: Vec<LlvmTypeAlias>,
pub globals: Vec<LlvmGlobal>,
pub functions: Vec<LlvmFunc>,
pub metadata: Vec<(String, String)>,
}Expand description
A complete LLVM IR module.
Fields§
§source_filename: StringSource filename hint.
target_triple: StringTarget triple, e.g. "x86_64-unknown-linux-gnu".
data_layout: StringData layout string.
type_aliases: Vec<LlvmTypeAlias>Named type aliases.
globals: Vec<LlvmGlobal>Global variables.
functions: Vec<LlvmFunc>Function definitions and declarations.
metadata: Vec<(String, String)>Module-level metadata (name, value pairs).
Implementations§
Trait Implementations§
Source§impl Clone for LlvmModule
impl Clone for LlvmModule
Source§fn clone(&self) -> LlvmModule
fn clone(&self) -> LlvmModule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LlvmModule
impl Debug for LlvmModule
Source§impl Default for LlvmModule
impl Default for LlvmModule
Source§fn default() -> LlvmModule
fn default() -> LlvmModule
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LlvmModule
impl RefUnwindSafe for LlvmModule
impl Send for LlvmModule
impl Sync for LlvmModule
impl Unpin for LlvmModule
impl UnsafeUnpin for LlvmModule
impl UnwindSafe for LlvmModule
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