[][src]Struct llvm_scratch::core::function::Function

pub struct Function { /* fields omitted */ }

An representation of LLVMFunction. LLVMFunction を表す構造体

Implementations

impl Function[src]

pub fn new(func_name: &str, ret_type: ReturnType) -> Self[src]

pub fn entry_bb_is_empty(&self) -> bool[src]

pub fn insert_inst(&mut self, bb: BasicBlockId, inst: Instruction)[src]

pub fn returns_void(&self) -> bool[src]

pub fn get_name_ref(&self) -> &LLVMString[src]

pub fn get_entry_bb(&self) -> BasicBlockId[src]

pub fn args_empty(&self) -> bool[src]

pub fn new_argument(&mut self, arg: Parameter)[src]

pub fn new_basic_block(
    &mut self,
    l: &str,
    pred: Option<BasicBlockId>,
    k: BasicBlockKind
) -> BasicBlockId
[src]

Trait Implementations

impl Display for Function[src]

Auto Trait Implementations

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> From<T> for T[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[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.