stable_mir::mir::visit

Trait MirVisitor

Source
pub trait MirVisitor {
Show 43 methods // Provided methods fn visit_body(&mut self, body: &Body) { ... } fn visit_basic_block(&mut self, bb: &BasicBlock) { ... } fn visit_ret_decl(&mut self, local: Local, decl: &LocalDecl) { ... } fn visit_arg_decl(&mut self, local: Local, decl: &LocalDecl) { ... } fn visit_local_decl(&mut self, local: Local, decl: &LocalDecl) { ... } fn visit_statement(&mut self, stmt: &Statement, location: Location) { ... } fn visit_terminator(&mut self, term: &Terminator, location: Location) { ... } fn visit_span(&mut self, span: &Span) { ... } fn visit_place( &mut self, place: &Place, ptx: PlaceContext, location: Location, ) { ... } fn visit_projection_elem( &mut self, place_ref: PlaceRef<'_>, elem: &ProjectionElem, ptx: PlaceContext, location: Location, ) { ... } fn visit_local( &mut self, local: &Local, ptx: PlaceContext, location: Location, ) { ... } fn visit_rvalue(&mut self, rvalue: &Rvalue, location: Location) { ... } fn visit_operand(&mut self, operand: &Operand, location: Location) { ... } fn visit_user_type_projection(&mut self, projection: &UserTypeProjection) { ... } fn visit_ty(&mut self, ty: &Ty, location: Location) { ... } fn visit_const_operand( &mut self, constant: &ConstOperand, location: Location, ) { ... } fn visit_mir_const(&mut self, constant: &MirConst, location: Location) { ... } fn visit_ty_const(&mut self, constant: &TyConst, location: Location) { ... } fn visit_region(&mut self, region: &Region, location: Location) { ... } fn visit_args(&mut self, args: &GenericArgs, location: Location) { ... } fn visit_assert_msg(&mut self, msg: &AssertMessage, location: Location) { ... } fn visit_var_debug_info(&mut self, var_debug_info: &VarDebugInfo) { ... } fn super_body(&mut self, body: &Body) { ... } fn super_basic_block(&mut self, bb: &BasicBlock) { ... } fn super_local_decl(&mut self, local: Local, decl: &LocalDecl) { ... } fn super_ret_decl(&mut self, local: Local, decl: &LocalDecl) { ... } fn super_arg_decl(&mut self, local: Local, decl: &LocalDecl) { ... } fn super_statement(&mut self, stmt: &Statement, location: Location) { ... } fn super_terminator(&mut self, term: &Terminator, location: Location) { ... } fn super_span(&mut self, span: &Span) { ... } fn super_place( &mut self, place: &Place, ptx: PlaceContext, location: Location, ) { ... } fn super_projection_elem( &mut self, elem: &ProjectionElem, ptx: PlaceContext, location: Location, ) { ... } fn super_rvalue(&mut self, rvalue: &Rvalue, location: Location) { ... } fn super_operand(&mut self, operand: &Operand, location: Location) { ... } fn super_user_type_projection(&mut self, projection: &UserTypeProjection) { ... } fn super_ty(&mut self, ty: &Ty) { ... } fn super_const_operand( &mut self, constant: &ConstOperand, location: Location, ) { ... } fn super_mir_const(&mut self, constant: &MirConst, location: Location) { ... } fn super_ty_const(&mut self, constant: &TyConst) { ... } fn super_region(&mut self, region: &Region) { ... } fn super_args(&mut self, args: &GenericArgs) { ... } fn super_var_debug_info(&mut self, var_debug_info: &VarDebugInfo) { ... } fn super_assert_msg(&mut self, msg: &AssertMessage, location: Location) { ... }
}

Provided Methods§

Source

fn visit_body(&mut self, body: &Body)

Source

fn visit_basic_block(&mut self, bb: &BasicBlock)

Source

fn visit_ret_decl(&mut self, local: Local, decl: &LocalDecl)

Source

fn visit_arg_decl(&mut self, local: Local, decl: &LocalDecl)

Source

fn visit_local_decl(&mut self, local: Local, decl: &LocalDecl)

Source

fn visit_statement(&mut self, stmt: &Statement, location: Location)

Source

fn visit_terminator(&mut self, term: &Terminator, location: Location)

Source

fn visit_span(&mut self, span: &Span)

Source

fn visit_place(&mut self, place: &Place, ptx: PlaceContext, location: Location)

Source

fn visit_projection_elem( &mut self, place_ref: PlaceRef<'_>, elem: &ProjectionElem, ptx: PlaceContext, location: Location, )

Source

fn visit_local(&mut self, local: &Local, ptx: PlaceContext, location: Location)

Source

fn visit_rvalue(&mut self, rvalue: &Rvalue, location: Location)

Source

fn visit_operand(&mut self, operand: &Operand, location: Location)

Source

fn visit_user_type_projection(&mut self, projection: &UserTypeProjection)

Source

fn visit_ty(&mut self, ty: &Ty, location: Location)

Source

fn visit_const_operand(&mut self, constant: &ConstOperand, location: Location)

Source

fn visit_mir_const(&mut self, constant: &MirConst, location: Location)

Source

fn visit_ty_const(&mut self, constant: &TyConst, location: Location)

Source

fn visit_region(&mut self, region: &Region, location: Location)

Source

fn visit_args(&mut self, args: &GenericArgs, location: Location)

Source

fn visit_assert_msg(&mut self, msg: &AssertMessage, location: Location)

Source

fn visit_var_debug_info(&mut self, var_debug_info: &VarDebugInfo)

Source

fn super_body(&mut self, body: &Body)

Source

fn super_basic_block(&mut self, bb: &BasicBlock)

Source

fn super_local_decl(&mut self, local: Local, decl: &LocalDecl)

Source

fn super_ret_decl(&mut self, local: Local, decl: &LocalDecl)

Source

fn super_arg_decl(&mut self, local: Local, decl: &LocalDecl)

Source

fn super_statement(&mut self, stmt: &Statement, location: Location)

Source

fn super_terminator(&mut self, term: &Terminator, location: Location)

Source

fn super_span(&mut self, span: &Span)

Source

fn super_place(&mut self, place: &Place, ptx: PlaceContext, location: Location)

Source

fn super_projection_elem( &mut self, elem: &ProjectionElem, ptx: PlaceContext, location: Location, )

Source

fn super_rvalue(&mut self, rvalue: &Rvalue, location: Location)

Source

fn super_operand(&mut self, operand: &Operand, location: Location)

Source

fn super_user_type_projection(&mut self, projection: &UserTypeProjection)

Source

fn super_ty(&mut self, ty: &Ty)

Source

fn super_const_operand(&mut self, constant: &ConstOperand, location: Location)

Source

fn super_mir_const(&mut self, constant: &MirConst, location: Location)

Source

fn super_ty_const(&mut self, constant: &TyConst)

Source

fn super_region(&mut self, region: &Region)

Source

fn super_args(&mut self, args: &GenericArgs)

Source

fn super_var_debug_info(&mut self, var_debug_info: &VarDebugInfo)

Source

fn super_assert_msg(&mut self, msg: &AssertMessage, location: Location)

Implementors§