pub struct Block {
pub kind: BlockKind,
pub debug_name: String,
/* private fields */
}Fields§
§kind: BlockKind§debug_name: StringImplementations§
Source§impl Block
impl Block
Sourcepub fn new(kind: BlockKind, debug_name: String) -> Self
pub fn new(kind: BlockKind, debug_name: String) -> Self
Block::Block(BlockKind kind, std::string debugName). Reference: ControlFlowGraph.cpp:58-62.
Sourcepub fn contains_definition(&self, sym: Symbol) -> bool
pub fn contains_definition(&self, sym: Symbol) -> bool
bool Block::containsDefinition(Symbol sym) const. Reference: ControlFlowGraph.cpp:70-73.
Sourcepub fn get_instructions(&self) -> &Vec<InstrId> ⓘ
pub fn get_instructions(&self) -> &Vec<InstrId> ⓘ
const std::vector<InstrId>& Block::getInstructions() const.
Sourcepub fn get_predecessors(&self) -> &Vec<BlockId> ⓘ
pub fn get_predecessors(&self) -> &Vec<BlockId> ⓘ
const std::vector<BlockId>& Block::getPredecessors() const.
Sourcepub fn get_reaching_definition(&self, sym: Symbol) -> *mut Definition
pub fn get_reaching_definition(&self, sym: Symbol) -> *mut Definition
Definition* Block::getReachingDefinition(Symbol sym) const. Reference: ControlFlowGraph.cpp:75-80.
Sourcepub fn get_successors(&self) -> &Vec<BlockId> ⓘ
pub fn get_successors(&self) -> &Vec<BlockId> ⓘ
const std::vector<BlockId>& Block::getSuccessors() const.
Sourcepub fn set_reaching_definition(&mut self, sym: Symbol, def: *mut Definition)
pub fn set_reaching_definition(&mut self, sym: Symbol, def: *mut Definition)
void Block::setReachingDefinition(Symbol sym, DefId def). Reference: ControlFlowGraph.cpp:82-85.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Block
impl !Sync for Block
impl Freeze for Block
impl RefUnwindSafe for Block
impl Unpin for Block
impl UnsafeUnpin for Block
impl UnwindSafe for Block
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