pub struct BasicBlock {
pub predecessor: Option<BasicBlockId>,
pub kind: BasicBlockKind,
/* private fields */
}
Expand description
An representation of LLVMBasicBlock. LLVMBasicBlock を表す構造体
Fields§
§predecessor: Option<BasicBlockId>
§kind: BasicBlockKind
Implementations§
Source§impl BasicBlock
impl BasicBlock
pub fn new(l: LLVMString, pred: Option<BasicBlockId>, k: BasicBlockKind) -> Self
pub fn print_successors( &self, f: &mut Formatter<'_>, allocator: &Arena<BasicBlock>, ) -> Result
Sourcepub fn get_label_ref(&self) -> &LLVMString
pub fn get_label_ref(&self) -> &LLVMString
get a reference of the bb’s label
Sourcepub fn insts_empty(&self) -> bool
pub fn insts_empty(&self) -> bool
whether the bb’s instructions aren’t there or not.
pub fn new_inst(&mut self, inst: Instruction) -> InstructionId
Trait Implementations§
Source§impl Default for BasicBlock
impl Default for BasicBlock
Auto Trait Implementations§
impl Freeze for BasicBlock
impl RefUnwindSafe for BasicBlock
impl Send for BasicBlock
impl Sync for BasicBlock
impl Unpin for BasicBlock
impl UnwindSafe for BasicBlock
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