Struct llvm_rs::BasicBlock
source · pub struct BasicBlock(_);Expand description
A container of instructions that execute sequentially.
Implementations§
source§impl BasicBlock
impl BasicBlock
sourcepub fn get_parent(&self) -> Option<&Function>
pub fn get_parent(&self) -> Option<&Function>
Return the enclosing method, or None if it is not attached to a method.
sourcepub fn get_insert_block<'a>(builder: &'a Builder) -> &'a BasicBlock
pub fn get_insert_block<'a>(builder: &'a Builder) -> &'a BasicBlock
Get the Insert Block
sourcepub fn get_terminator(&self) -> Option<&Value>
pub fn get_terminator(&self) -> Option<&Value>
Return the terminator instruction for this basic block.
sourcepub fn move_after(&self, other: &BasicBlock)
pub fn move_after(&self, other: &BasicBlock)
Move this basic block after the other basic block in its function.
sourcepub fn move_before(&self, other: &BasicBlock)
pub fn move_before(&self, other: &BasicBlock)
Move this basic block before the other basic block in its function.
Methods from Deref<Target = Value>§
Trait Implementations§
source§impl Deref for BasicBlock
impl Deref for BasicBlock
source§impl<'a> From<&'a BasicBlock> for LLVMBasicBlockRef
impl<'a> From<&'a BasicBlock> for LLVMBasicBlockRef
source§fn from(ty: &'a BasicBlock) -> LLVMBasicBlockRef
fn from(ty: &'a BasicBlock) -> LLVMBasicBlockRef
Converts to this type from the input type.
source§impl<'a> From<&'a mut BasicBlock> for LLVMBasicBlockRef
impl<'a> From<&'a mut BasicBlock> for LLVMBasicBlockRef
source§fn from(ty: &'a mut BasicBlock) -> LLVMBasicBlockRef
fn from(ty: &'a mut BasicBlock) -> LLVMBasicBlockRef
Converts to this type from the input type.
source§impl<'a> From<*mut LLVMBasicBlock> for &'a BasicBlock
impl<'a> From<*mut LLVMBasicBlock> for &'a BasicBlock
source§fn from(ty: LLVMBasicBlockRef) -> &'a BasicBlock
fn from(ty: LLVMBasicBlockRef) -> &'a BasicBlock
Converts to this type from the input type.
source§impl<'a> From<*mut LLVMBasicBlock> for &'a mut BasicBlock
impl<'a> From<*mut LLVMBasicBlock> for &'a mut BasicBlock
source§fn from(ty: LLVMBasicBlockRef) -> &'a mut BasicBlock
fn from(ty: LLVMBasicBlockRef) -> &'a mut BasicBlock
Converts to this type from the input type.