pub struct FunctionValue { /* private fields */ }
Implementations§
Source§impl FunctionValue
impl FunctionValue
pub fn new( reference: LLVMValueRef, name: String, return_type: Box<LLVMValue>, args: Vec<(String, LLVMValue)>, ) -> Self
pub fn get_reference(&self) -> LLVMValueRef
pub fn append_basic_block(&self, name: impl Into<String>) -> LLVMBasicBlockRef
pub fn get_param(&self, name: impl AsRef<str>) -> Option<LLVMValue>
pub fn set_reference(&mut self, reference: LLVMValueRef)
pub fn get_param_index(&self, name: impl AsRef<str>) -> Option<usize>
pub fn get_llvm_type(&self, ctx: &Context) -> LLVMType
pub fn get_param_index_map(&self) -> HashMap<String, usize>
pub fn call(&self, ctx: &Context, args: Vec<Option<LLVMValue>>) -> LLVMValue
pub fn get_return_value(&self) -> LLVMValue
pub fn get_args_count(&self) -> usize
pub fn get_arg_name(&self, index: usize) -> Option<String>
pub fn get_param_by_index(&self, index: usize) -> Option<LLVMValue>
pub fn is_undef(&self) -> bool
pub fn is_vararg(&self) -> bool
pub fn set_vararg(&mut self)
pub fn is_arg_undef(&self, index: usize) -> bool
pub fn set_closure(&mut self)
pub fn is_closure(&self) -> bool
pub fn get_function_arg_count(&self) -> usize
pub fn get_function_arg(&self, index: usize) -> Option<LLVMValue>
pub fn is_vararg_function(&self) -> bool
Trait Implementations§
Source§impl Clone for FunctionValue
impl Clone for FunctionValue
Source§fn clone(&self) -> FunctionValue
fn clone(&self) -> FunctionValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FunctionValue
impl Debug for FunctionValue
Source§impl From<FunctionValue> for LLVMValue
impl From<FunctionValue> for LLVMValue
Source§fn from(value: FunctionValue) -> Self
fn from(value: FunctionValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FunctionValue
impl !RefUnwindSafe for FunctionValue
impl !Send for FunctionValue
impl !Sync for FunctionValue
impl Unpin for FunctionValue
impl !UnwindSafe for FunctionValue
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