Struct llvm::BasicBlock [] [src]

pub struct BasicBlock;

A container of instructions that execute sequentially.

Methods

impl BasicBlock
[src]

fn get_parent(&self) -> Option<&Function>

Return the enclosing method, or None if it is not attached to a method.

fn move_after(&self, other: &BasicBlock)

Move this basic block after the other basic block in its function.

fn move_before(&self, other: &BasicBlock)

Move this basic block before the other basic block in its function.

fn remove(&self)

Unlink from the containing function, but do not delete it.

unsafe fn delete(&self)

Delete this basic block.

This is unsafe because there should be no other reference to this, but this can't be guranteed using Rust semantics.

Trait Implementations

impl Eq for BasicBlock
[src]

impl PartialEq<BasicBlock> for BasicBlock
[src]

fn eq(&self, other: &BasicBlock) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl<'a> PartialEq<BasicBlock> for &'a BasicBlock
[src]

fn eq(&self, other: &BasicBlock) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl<'a> From<LLVMBasicBlockRef> for &'a BasicBlock
[src]

fn from(ty: LLVMBasicBlockRef) -> &'a BasicBlock

Performs the conversion.

impl<'a> From<LLVMBasicBlockRef> for &'a mut BasicBlock
[src]

fn from(ty: LLVMBasicBlockRef) -> &'a mut BasicBlock

Performs the conversion.