Expand description
Intrinsics and other functions that the interpreter executes without looking at their MIR. Intrinsics/functions supported here are shared by CTFE and miri.
Re-exportsยง
use std::assert_matches;๐use rustc_abi::FieldIdx;๐use rustc_abi::HasDataLayout;๐use rustc_abi::Size;๐use rustc_abi::VariantIdx;๐use rustc_apfloat::ieee::Double;๐use rustc_apfloat::ieee::Half;๐use rustc_apfloat::ieee::Quad;๐use rustc_apfloat::ieee::Single;๐use rustc_ast::IntTy;๐use rustc_ast::UintTy;๐use rustc_middle::mir::interpret::CTFE_ALLOC_SALT;๐use rustc_middle::mir::interpret::read_target_uint;๐use rustc_middle::mir::interpret::write_target_uint;๐use rustc_middle::mir;๐use rustc_middle::mir::BinOp;๐use rustc_middle::mir::ConstValue;๐use rustc_middle::mir::NonDivergingIntrinsic;๐use rustc_middle::ty::layout::TyAndLayout;๐use rustc_middle::ty;๐use rustc_middle::ty::FloatTy;๐use rustc_middle::ty::ScalarInt;๐use rustc_middle::ty::Ty;๐use rustc_middle::ty::TyCtxt;๐use rustc_middle::ty::TypeVisitableExt;๐use rustc_span::Symbol;๐use rustc_span::bug;๐use rustc_span::kw;๐use rustc_span::span_bug;๐use rustc_span::sym;๐use tracing::trace;๐use super::memory::MemoryKind;๐use super::util::ensure_monomorphic_enough;๐use super::AllocId;๐use super::AtomicRmwOp;๐use super::CheckInAllocMsg;๐use super::ImmTy;๐use super::Immediate;๐use super::InterpCx;๐use super::InterpResult;๐use super::Machine;๐use super::OpTy;๐use super::PlaceTy;๐use super::Pointer;๐use super::PointerArithmetic;๐use super::Projectable;๐use super::Provenance;๐use super::Scalar;๐use super::err_ub_format;๐use super::err_unsup_format;๐use super::interp_ok;๐use super::throw_inval;๐use super::throw_ub;๐use super::throw_ub_format;๐use crate::interpret::MPlaceTy;๐use crate::interpret::Writeable;๐
Modulesยง
Enumsยง
- MinMax ๐
- MulAdd
Type ๐ - VarArg
Compatible - Whether two types
TandUare compatible when a value of typeTis passed as a c-variadic argument and read as a value of typeU.
Functionsยง
- alloc_
type_ ๐name - Directly returns an
Allocationcontaining an absolute path representation of the given type.