Struct rustc_codegen_ssa::mir::analyze::LocalAnalyzer [−][src]
struct LocalAnalyzer<'mir, 'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> {
fx: &'mir FunctionCx<'a, 'tcx, Bx>,
dominators: Dominators<BasicBlock>,
locals: IndexVec<Local, LocalKind>,
}
Fields
fx: &'mir FunctionCx<'a, 'tcx, Bx>
dominators: Dominators<BasicBlock>
locals: IndexVec<Local, LocalKind>
Implementations
fn process_place(
&mut self,
place_ref: &PlaceRef<'tcx>,
context: PlaceContext,
location: Location
)
Trait Implementations
impl<'mir, 'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> Visitor<'tcx> for LocalAnalyzer<'mir, 'a, 'tcx, Bx>
impl<'mir, 'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> Visitor<'tcx> for LocalAnalyzer<'mir, 'a, 'tcx, Bx>
fn visit_ascribe_user_ty(
&mut self,
place: &Place<'tcx>,
variance: &Variance,
user_ty: &UserTypeProjection,
location: Location
)
fn visit_projection(
&mut self,
place_ref: PlaceRef<'tcx>,
context: PlaceContext,
location: Location
)
fn visit_projection_elem(
&mut self,
local: Local,
proj_base: &[ProjectionElem<Local, &'tcx TyS<'tcx>>],
elem: ProjectionElem<Local, &'tcx TyS<'tcx>>,
context: PlaceContext,
location: Location
)
fn super_projection(
&mut self,
place_ref: PlaceRef<'tcx>,
context: PlaceContext,
location: Location
)
fn super_projection_elem(
&mut self,
_local: Local,
_proj_base: &[ProjectionElem<Local, &'tcx TyS<'tcx>>],
elem: ProjectionElem<Local, &'tcx TyS<'tcx>>,
_context: PlaceContext,
location: Location
)
fn visit_user_type_annotation(
&mut self,
index: UserTypeAnnotationIndex,
ty: &CanonicalUserTypeAnnotation<'tcx>
)
fn super_ascribe_user_ty(
&mut self,
place: &Place<'tcx>,
_variance: &Variance,
user_ty: &UserTypeProjection,
location: Location
)
fn super_user_type_annotation(
&mut self,
_index: UserTypeAnnotationIndex,
ty: &CanonicalUserTypeAnnotation<'tcx>
)
Auto Trait Implementations
impl<'mir, 'a, 'tcx, Bx> !RefUnwindSafe for LocalAnalyzer<'mir, 'a, 'tcx, Bx>
impl<'mir, 'a, 'tcx, Bx> !Send for LocalAnalyzer<'mir, 'a, 'tcx, Bx>
impl<'mir, 'a, 'tcx, Bx> !Sync for LocalAnalyzer<'mir, 'a, 'tcx, Bx>
impl<'mir, 'a, 'tcx, Bx> Unpin for LocalAnalyzer<'mir, 'a, 'tcx, Bx> where
'a: 'mir,
'tcx: 'mir,
impl<'mir, 'a, 'tcx, Bx> !UnwindSafe for LocalAnalyzer<'mir, 'a, 'tcx, Bx>
Blanket Implementations
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 80 bytes