[−][src]Struct rustc_mir_build::build::CFG

pub(in build) struct CFG<'tcx> {
    basic_blocks: IndexVec<BasicBlock, BasicBlockData<'tcx>>,
}

Fields

basic_blocks: IndexVec<BasicBlock, BasicBlockData<'tcx>>

Implementations

impl<'tcx> CFG<'tcx>[src]

pub(crate) fn block_data(&self, blk: BasicBlock) -> &BasicBlockData<'tcx>[src]

pub(crate) fn block_data_mut(
    &mut self,
    blk: BasicBlock
) -> &mut BasicBlockData<'tcx>
[src]

pub(crate) fn start_new_block(&mut self) -> BasicBlock[src]

pub(crate) fn start_new_cleanup_block(&mut self) -> BasicBlock[src]

pub(crate) fn push(&mut self, block: BasicBlock, statement: Statement<'tcx>)[src]

pub(crate) fn push_assign(
    &mut self,
    block: BasicBlock,
    source_info: SourceInfo,
    place: Place<'tcx>,
    rvalue: Rvalue<'tcx>
)
[src]

pub(crate) fn push_assign_constant(
    &mut self,
    block: BasicBlock,
    source_info: SourceInfo,
    temp: Place<'tcx>,
    constant: Constant<'tcx>
)
[src]

pub(crate) fn push_assign_unit(
    &mut self,
    block: BasicBlock,
    source_info: SourceInfo,
    place: Place<'tcx>,
    tcx: TyCtxt<'tcx>
)
[src]

pub(crate) fn push_fake_read(
    &mut self,
    block: BasicBlock,
    source_info: SourceInfo,
    cause: FakeReadCause,
    place: Place<'tcx>
)
[src]

pub(crate) fn terminate(
    &mut self,
    block: BasicBlock,
    source_info: SourceInfo,
    kind: TerminatorKind<'tcx>
)
[src]

pub(crate) fn goto(
    &mut self,
    origin: BasicBlock,
    source_info: SourceInfo,
    target: BasicBlock
)
[src]

In the origin block, push a goto -> target terminator.

Auto Trait Implementations

impl<'tcx> !RefUnwindSafe for CFG<'tcx>

impl<'tcx> !Send for CFG<'tcx>

impl<'tcx> !Sync for CFG<'tcx>

impl<'tcx> Unpin for CFG<'tcx>

impl<'tcx> !UnwindSafe for CFG<'tcx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.