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: String
The name of the module
source_file_name: String
data_layout: DataLayout
target_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: String
types: Types
Holds a reference to all of the Type
s 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 Function
s are named with String
s and not Name
s.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Module
impl UnwindSafe for Module
Blanket Implementations
Mutably borrows from an owned value. Read more