Expand description
Infer pointer offset direction from a calleeβs MIR.
Re-exportsΒ§
use std::collections::HashSet;πuse rustc_hir::def_id::DefId;πuse rustc_middle::mir::BinOp;πuse rustc_middle::mir::Body;πuse rustc_middle::mir::Local;πuse rustc_middle::mir::Operand;πuse rustc_middle::mir::Rvalue;πuse rustc_middle::mir::StatementKind;πuse rustc_middle::mir::TerminatorKind;πuse rustc_middle::ty::TyCtxt;πuse rustc_middle::ty::TypingEnv;πuse crate::def_ids::intrinsic_api;πuse crate::def_ids::other_api;πuse crate::util::mir_utils;π
StructsΒ§
- Pointer
Offset π
EnumsΒ§
FunctionsΒ§
- is_
zero_ πconstant - merge_
pointer_ πoffsets - pointer_
offset π - pointer_
offset_ πdirection - Infer the direction of a pointer offset from optimized MIR, including
wrappers around
Offsetand thearith_offsetintrinsic. - trace_
offset_ πcount - trace_
pointer_ πoffset - ub_
check_ πresult_ operand - A debug UB check may branch before the ZST switch without changing the result.
- zst_
property_ πoperand