Struct llvm_ir::function::Function [−][src]
Fields
name: String
parameters: Vec<Parameter>
is_var_arg: bool
return_type: TypeRef
basic_blocks: Vec<BasicBlock>
function_attributes: Vec<FunctionAttribute>
return_attributes: Vec<ParameterAttribute>
linkage: Linkage
visibility: Visibility
dll_storage_class: DLLStorageClass
calling_convention: CallingConvention
section: Option<String>
comdat: Option<Comdat>
alignment: u32
garbage_collector_name: Option<String>
personality_function: Option<ConstantRef>
Personalities are used for exception handling. See LLVM 12 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][+]
impl PartialEq<Function> for Function
[src][+]
impl StructuralPartialEq for Function
[src]
impl Typed for Function
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for Function
[src]
impl Send for Function
[src]
impl Sync for Function
[src]
impl Unpin for Function
[src]
impl UnwindSafe for Function
[src]
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,
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,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,