[−][src]Struct moore_svlog::CodeGenerator
A code generator.
Use this struct to emit LLHD code for nodes in a Context
.
Methods
impl<'gcx, C> CodeGenerator<'gcx, C>
[src]
pub fn new(cx: C) -> Self
[src]
Create a new code generator.
pub fn finalize(self) -> Module
[src]
Finalize code generation and return the generated LLHD module.
impl<'a, 'gcx, C: Context<'gcx>> CodeGenerator<'gcx, &'a C>
[src]
pub fn emit_module(&mut self, id: NodeId) -> Result<ModUnit>
[src]
Emit the code for a module and all its dependent modules.
pub fn emit_module_with_env(
&mut self,
id: NodeId,
env: ParamEnv
) -> Result<ModUnit>
[src]
&mut self,
id: NodeId,
env: ParamEnv
) -> Result<ModUnit>
Emit the code for a module and all its dependent modules.
Trait Implementations
impl<'gcx, C> Deref for CodeGenerator<'gcx, C>
[src]
Auto Trait Implementations
impl<'gcx, C> RefUnwindSafe for CodeGenerator<'gcx, C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<'gcx, C> Send for CodeGenerator<'gcx, C> where
C: Send,
C: Send,
impl<'gcx, C> Sync for CodeGenerator<'gcx, C> where
C: Sync,
C: Sync,
impl<'gcx, C> Unpin for CodeGenerator<'gcx, C> where
C: Unpin,
C: Unpin,
impl<'gcx, C> UnwindSafe for CodeGenerator<'gcx, C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,