Struct llvm_ir::module::Module [−][src]
pub struct Module {
pub name: String,
pub source_file_name: String,
pub data_layout: DataLayout,
pub target_triple: Option<String>,
pub functions: Vec<Function>,
pub global_vars: Vec<GlobalVariable>,
pub global_aliases: Vec<GlobalAlias>,
pub inline_assembly: String,
pub types: Types,
}Expand description
Fields
name: StringThe name of the module
source_file_name: Stringdata_layout: DataLayouttarget_triple: Option<String>functions: Vec<Function>Functions which are defined (not just declared) in this Module.
See LLVM 12 docs on Functions
global_vars: Vec<GlobalVariable>global_aliases: Vec<GlobalAlias>inline_assembly: Stringtypes: TypesHolds a reference to all of the Types used in the Module, and
facilitates lookups so you can get a TypeRef to the Type you want.
Implementations
Get the type of anything that is Typed.
Get the Function having the given Name (if any).
Note that Functions are named with Strings and not Names.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Module
impl UnwindSafe for Module
Blanket Implementations
Mutably borrows from an owned value. Read more