pub struct ScoreBoard<'ast, 'ctx> {
pub arenas: &'ctx Arenas,
pub llmod: RefCell<Module>,
pub ty_table: RefCell<HashMap<NodeId, &'ctx Ty>>,
pub typeck_table: RefCell<HashMap<NodeId, Result<()>>>,
pub typeval_table: RefCell<HashMap<NodeId, Result<&'ctx Ty>>>,
pub scope2_table: RefCell<HashMap<ScopeRef, Scope>>,
// some fields omitted
}
The VHDL scoreboard that keeps track of compilation results.
A reference to the arenas where the scoreboard allocates nodes.
The LLHD module into which code is emitted.
A table of typeck results.
A table of typeval results.
A table of scopes. Revised; will replace scope_table
and def_table
.
Creates a new empty VHDL scoreboard.
Internalize a constant.
Returns a reference to the constant whose lifetime is bound to that of
the arenas associated with the scoreboard.
Internalize a type.
Returns a reference to the constant whose lifetime is bound to that of
the arenas associated with the scoreboard.
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more