Struct cranelift_frontend::FunctionBuilderContext [−][src]
pub struct FunctionBuilderContext { /* fields omitted */ }
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.
The Variable
parameter can be any index-like type that can be made to
implement EntityRef
. For frontends that don't have an obvious type to
use here, variable::Variable
can be used.
Methods
impl FunctionBuilderContext
[src]
impl FunctionBuilderContext
pub fn new() -> Self
[src]
pub fn new() -> Self
Creates a FunctionBuilderContext structure. The structure is automatically cleared after
each FunctionBuilder
completes translating a function.
Auto Trait Implementations
impl Send for FunctionBuilderContext
impl Send for FunctionBuilderContext
impl Sync for FunctionBuilderContext
impl Sync for FunctionBuilderContext