pub struct Context { /* private fields */ }
Expand description
The main IR context handle.
Every module, function, block and value is stored here. Some aggregate metadata is also managed by the context.
Implementations§
source§impl Context
impl Context
sourcepub fn module_iter(&self) -> ModuleIterator ⓘ
pub fn module_iter(&self) -> ModuleIterator ⓘ
Return an interator for every module in this context.
sourcepub fn get_unique_name(&mut self) -> String
pub fn get_unique_name(&mut self) -> String
Get a globally unique symbol.
The name will be in the form "anon_N"
, where N
is an incrementing decimal.
sourcepub fn get_unique_id(&mut self) -> u64
pub fn get_unique_id(&mut self) -> u64
Get a globally unique symbol id.