[][src]Struct moore_svlog::CodeGenerator

pub struct CodeGenerator<'gcx, C> { /* fields omitted */ }

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]

Emit the code for a module and all its dependent modules.

Trait Implementations

impl<'gcx, C> Deref for CodeGenerator<'gcx, C>[src]

type Target = C

The resulting type after dereferencing.

Auto Trait Implementations

impl<'gcx, C> RefUnwindSafe for CodeGenerator<'gcx, C> where
    C: RefUnwindSafe

impl<'gcx, C> Send for CodeGenerator<'gcx, C> where
    C: Send

impl<'gcx, C> Sync for CodeGenerator<'gcx, C> where
    C: Sync

impl<'gcx, C> Unpin for CodeGenerator<'gcx, C> where
    C: Unpin

impl<'gcx, C> UnwindSafe for CodeGenerator<'gcx, C> where
    C: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.