[−][src]Struct llvm_scratch::core::function::Function
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]
&mut self,
l: &str,
pred: Option<BasicBlockId>,
k: BasicBlockKind
) -> BasicBlockId
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,