Struct cranelift_frontend::FunctionBuilderContext [−][src]
pub struct FunctionBuilderContext { /* fields omitted */ }
Expand description
Structure used for translating a series of functions into Cranelift IR.
In order to reduce memory reallocations when compiling multiple functions,
FunctionBuilderContext
holds various data structures which are cleared between
functions, rather than dropped, preserving the underlying allocations.
Implementations
impl FunctionBuilderContext
[src]
impl FunctionBuilderContext
[src]pub fn new() -> Self
[src]
pub fn new() -> Self
[src]Creates a FunctionBuilderContext structure. The structure is automatically cleared after
each FunctionBuilder
completes translating a function.