2025-08-25 17:49:21 +09:00
|
|
|
/*!
|
|
|
|
|
* MIR Builder Module - Modular AST to MIR conversion
|
|
|
|
|
*
|
|
|
|
|
* This module contains the refactored MIR builder split into focused sub-modules:
|
|
|
|
|
*
|
|
|
|
|
* - `core`: Core builder functionality and instruction emission
|
|
|
|
|
* - `expressions`: Expression AST node conversion
|
|
|
|
|
* - `statements`: Statement AST node conversion
|
|
|
|
|
* - `control_flow`: Control flow constructs (if, loop, try-catch)
|
|
|
|
|
* - `box_handlers`: Box-related operations (new, declarations)
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
pub mod core;
|
|
|
|
|
pub mod expressions;
|
|
|
|
|
pub mod statements;
|
|
|
|
|
pub mod control_flow;
|
|
|
|
|
pub mod box_handlers;
|
|
|
|
|
|
|
|
|
|
// Re-export the main builder struct and key functionality
|
|
|
|
|
pub use self::core::MirBuilder;
|
|
|
|
|
|
|
|
|
|
// Re-export commonly used types from the parent module
|
|
|
|
|
pub use super::{
|
|
|
|
|
MirInstruction, BasicBlock, BasicBlockId, MirFunction, MirModule,
|
|
|
|
|
FunctionSignature, ValueId, ConstValue, BinaryOp, UnaryOp, CompareOp,
|
2025-08-26 19:13:57 +09:00
|
|
|
MirType, EffectMask, Effect, BasicBlockIdGenerator, ValueIdGenerator, TypeOpKind
|
|
|
|
|
};
|