pub struct Function { /* private fields */ }
Expand description
An representation of LLVMFunction. LLVMFunction を表す構造体
Implementations§
Source§impl Function
impl Function
pub fn new(func_name: &str, ret_type: ReturnType) -> Self
pub fn entry_bb_is_empty(&self) -> bool
pub fn insert_inst(&mut self, bb: BasicBlockId, inst: Instruction)
pub fn returns_void(&self) -> bool
pub fn get_name_ref(&self) -> &LLVMString
pub fn get_entry_bb(&self) -> BasicBlockId
pub fn args_empty(&self) -> bool
pub fn new_argument(&mut self, arg: Parameter)
pub fn new_basic_block( &mut self, l: &str, pred: Option<BasicBlockId>, k: BasicBlockKind, ) -> BasicBlockId
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more