2017-12-12 17:14:49 +01:00
|
|
|
//! An interpreter for MIR used in CTFE and by miri
|
|
|
|
|
|
|
|
|
|
mod cast;
|
2023-02-06 17:08:34 +01:00
|
|
|
mod discriminant;
|
2017-12-12 17:14:49 +01:00
|
|
|
mod eval_context;
|
2018-08-13 16:14:22 +02:00
|
|
|
mod intern;
|
2018-08-23 19:04:33 +02:00
|
|
|
mod intrinsics;
|
2017-12-12 17:14:49 +01:00
|
|
|
mod machine;
|
|
|
|
|
mod memory;
|
|
|
|
|
mod operand;
|
|
|
|
|
mod operator;
|
|
|
|
|
mod place;
|
2022-07-04 08:48:05 -04:00
|
|
|
mod projection;
|
2017-12-12 17:14:49 +01:00
|
|
|
mod step;
|
|
|
|
|
mod terminator;
|
|
|
|
|
mod traits;
|
2020-07-24 13:16:54 +01:00
|
|
|
mod util;
|
2018-08-17 12:18:02 +02:00
|
|
|
mod validity;
|
2022-04-21 19:35:06 +02:00
|
|
|
mod visitor;
|
2017-12-12 17:14:49 +01:00
|
|
|
|
2020-03-29 16:41:09 +02:00
|
|
|
pub use rustc_middle::mir::interpret::*; // have all the `interpret` symbols in one place: here
|
2018-10-16 14:50:07 +02:00
|
|
|
|
2024-01-06 13:48:48 +01:00
|
|
|
pub use self::eval_context::{format_interp_error, Frame, FrameInfo, InterpCx, StackPopCleanup};
|
2023-10-07 09:19:37 +00:00
|
|
|
pub use self::intern::{
|
|
|
|
|
intern_const_alloc_for_constprop, intern_const_alloc_recursive, InternKind,
|
|
|
|
|
};
|
2020-04-27 19:01:30 +02:00
|
|
|
pub use self::machine::{compile_time_machine, AllocMap, Machine, MayLeak, StackPopJump};
|
2022-06-27 10:58:30 -04:00
|
|
|
pub use self::memory::{AllocKind, AllocRef, AllocRefMut, FnVal, Memory, MemoryKind};
|
2023-09-04 17:53:38 +02:00
|
|
|
pub use self::operand::{ImmTy, Immediate, OpTy, Readable};
|
|
|
|
|
pub use self::place::{MPlaceTy, MemPlaceMeta, PlaceTy, Writeable};
|
2023-09-02 16:12:57 +02:00
|
|
|
pub use self::projection::{OffsetMode, Projectable};
|
2023-07-10 22:07:07 +02:00
|
|
|
pub use self::terminator::FnArg;
|
2020-10-25 11:12:19 +01:00
|
|
|
pub use self::validity::{CtfeValidationMode, RefTracking};
|
2023-07-24 11:44:58 +02:00
|
|
|
pub use self::visitor::ValueVisitor;
|
2019-06-07 19:22:42 +02:00
|
|
|
|
2023-09-04 17:53:38 +02:00
|
|
|
use self::{
|
|
|
|
|
operand::Operand,
|
|
|
|
|
place::{MemPlace, Place},
|
|
|
|
|
};
|
|
|
|
|
|
2022-05-20 19:51:09 -04:00
|
|
|
pub(crate) use self::intrinsics::eval_nullary_intrinsic;
|
2020-03-29 15:43:36 +02:00
|
|
|
use eval_context::{from_known_layout, mir_assign_valid_types};
|