Expand description
Functions concerning immediate values and operands, and reading from operands. All high-level functions to read from memory work on operands as sources.
Re-exportsยง
use std::assert_matches;๐use either::Either;๐use either::Left;๐use either::Right;๐use rustc_abi as abi;๐use rustc_abi as abi;๐use rustc_abi::BackendRepr;๐use rustc_abi::HasDataLayout;๐use rustc_abi::Size;๐use rustc_hir::def::Namespace;๐use rustc_middle::ty::layout::HasTyCtxt;๐use rustc_middle::ty::layout::HasTypingEnv;๐use rustc_middle::ty::layout::TyAndLayout;๐use rustc_middle::ty::print::FmtPrinter;๐use rustc_middle::ty::print::PrettyPrinter;๐use rustc_middle::ty::ConstInt;๐use rustc_middle::ty::ScalarInt;๐use rustc_middle::ty::Ty;๐use rustc_middle::ty::TyCtxt;๐use rustc_middle::mir;๐use rustc_middle::ty;๐use rustc_span::DUMMY_SP;๐use rustc_span::bug;๐use rustc_span::span_bug;๐use tracing::field::Empty;๐use tracing::trace;๐use super::CtfeProvenance;๐use super::Frame;๐use super::InterpCx;๐use super::InterpResult;๐use super::MPlaceTy;๐use super::Machine;๐use super::MemPlace;๐use super::MemPlaceMeta;๐use super::OffsetMode;๐use super::PlaceTy;๐use super::Pointer;๐use super::Projectable;๐use super::Provenance;๐use super::Scalar;๐use super::alloc_range;๐use super::err_ub;๐use super::from_known_layout;๐use super::interp_ok;๐use super::mir_assign_valid_types;๐use super::throw_ub;๐use crate::enter_trace_span;๐
Modulesยง
- size_
asserts ๐
Structsยง
Enumsยง
- Immediate
- An
Immediaterepresents a single immediate self-contained Rust value. - Operand ๐
- An
Operandis the result of computing amir::Operand. It can be immediate, or still in memory. The latter is an optimization, to delay reading that chunk of memory and to avoid having to store arbitrary-sized data here.