Struct paralegal_spdg::rustc::mir::BasicBlockData
source · pub struct BasicBlockData<'tcx> {
pub statements: Vec<Statement<'tcx>, Global>,
pub terminator: Option<Terminator<'tcx>>,
pub is_cleanup: bool,
}
Expand description
Data for a basic block, including a list of its statements.
See BasicBlock
for documentation on what basic blocks are at a high level.
Fields§
§statements: Vec<Statement<'tcx>, Global>
List of statements in this block.
terminator: Option<Terminator<'tcx>>
Terminator for this block.
N.B., this should generally ONLY be None
during construction.
Therefore, you should generally access it via the
terminator()
or terminator_mut()
methods. The only
exception is that certain passes, such as simplify_cfg
, swap
out the terminator temporarily with None
while they continue
to recurse over the set of basic blocks.
is_cleanup: bool
If true, this block lies on an unwind path. This is used during codegen where distinct kinds of basic blocks may be generated (particularly for MSVC cleanup). Unwind blocks must only branch to other unwind blocks.
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for BasicBlockData<'tcx>
impl<'tcx> !Send for BasicBlockData<'tcx>
impl<'tcx> !Sync for BasicBlockData<'tcx>
impl<'tcx> Unpin for BasicBlockData<'tcx>
impl<'tcx> !UnwindSafe for BasicBlockData<'tcx>
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