Struct gccjit::Function
[−]
[src]
pub struct Function<'ctx> { /* fields omitted */ }
Function is gccjit's representation of a function. Functions are constructed by constructing basic blocks and connecting them together. Locals are declared at the function level.
Methods
impl<'ctx> Function<'ctx>
[src]
fn get_param(&self, idx: i32) -> Parameter<'ctx>
fn dump_to_dot<S: AsRef<str>>(&self, path: S)
fn new_block<S: AsRef<str>>(&self, name: S) -> Block<'ctx>
fn new_local<S: AsRef<str>>(
&self,
loc: Option<Location<'ctx>>,
ty: Type<'ctx>,
name: S
) -> LValue<'ctx>
&self,
loc: Option<Location<'ctx>>,
ty: Type<'ctx>,
name: S
) -> LValue<'ctx>
Trait Implementations
impl<'ctx> Copy for Function<'ctx>
[src]
impl<'ctx> Clone for Function<'ctx>
[src]
fn clone(&self) -> Function<'ctx>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more