[−][src]Struct llvm_ir::function::Function
Fields
name: Stringparameters: Vec<Parameter>is_var_arg: boolreturn_type: Typebasic_blocks: Vec<BasicBlock>function_attributes: Vec<FunctionAttribute>return_attributes: Vec<ParameterAttribute>linkage: Linkagevisibility: Visibilitydll_storage_class: DLLStorageClasscalling_convention: CallingConventionsection: Option<String>comdat: Option<Comdat>alignment: u32garbage_collector_name: Option<String>personality_function: Option<Constant>Personalities are used for exception handling. See LLVM 10 docs on Personality Function
debugloc: Option<DebugLoc>Implementations
impl Function[src]
pub fn get_bb_by_name(&self, name: &Name) -> Option<&BasicBlock>[src]
Get the BasicBlock having the given Name (if any).
pub fn new(name: impl Into<String>) -> Self[src]
A Function instance as empty as possible, using defaults
Trait Implementations
impl Clone for Function[src]
impl Debug for Function[src]
impl HasDebugLoc for Function[src]
fn get_debug_loc(&self) -> &Option<DebugLoc>[src]
impl PartialEq<Function> for Function[src]
impl StructuralPartialEq for Function[src]
impl Typed for Function[src]
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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
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>,