pub struct Value { /* private fields */ }
Expand description
A wrapper around a LLVMValueRef
for a specific context
Implementations§
Source§impl Value
impl Value
Sourcepub fn append_basic_block<S>(&self, name: S) -> BasicBlock
pub fn append_basic_block<S>(&self, name: S) -> BasicBlock
Adds a block to this function
Sourcepub fn delete_function(self)
pub fn delete_function(self)
Delete this function
Sourcepub fn delete_global(self)
pub fn delete_global(self)
Delete this global
Sourcepub fn set_call_conv(&self, cc: CallConv) -> Value
pub fn set_call_conv(&self, cc: CallConv) -> Value
Set the calling convention of this function
Sourcepub fn set_linkage(&self, link: Linkage) -> Value
pub fn set_linkage(&self, link: Linkage) -> Value
Set the linkage of this global
Sourcepub fn set_tail_call(&self, tail: bool) -> Value
pub fn set_tail_call(&self, tail: bool) -> Value
Set whether this is a tail call
Sourcepub fn set_global_const(&self, constant: bool) -> Value
pub fn set_global_const(&self, constant: bool) -> Value
Set whether this global is a constant
Sourcepub fn is_constant(&self) -> bool
pub fn is_constant(&self) -> bool
Returns true if this value is a constant
Sourcepub fn set_unnamed_addr(&self, unnamed_addr: bool) -> Value
pub fn set_unnamed_addr(&self, unnamed_addr: bool) -> Value
Set whether the address of this global is significant
Sourcepub fn set_global_initializer(&self, init: Value) -> Value
pub fn set_global_initializer(&self, init: Value) -> Value
Set the initializer of this global
Sourcepub fn set_alignment(&self, bytes: u32) -> Value
pub fn set_alignment(&self, bytes: u32) -> Value
Set the alignment of this value
Sourcepub fn set_param_alignment(&self, bytes: u32) -> Value
pub fn set_param_alignment(&self, bytes: u32) -> Value
Set the alignment of this parameter
Sourcepub fn inner(&self) -> LLVMValueRef
pub fn inner(&self) -> LLVMValueRef
Returns the internal value reference
Trait Implementations§
impl Copy for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl !Send for Value
impl !Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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