主要な変更: - MIR Core-13命令セット確定(Load/Store削除の革命的設計) - Const, BinOp, Compare(値・計算) - Jump, Branch, Return, Phi(制御) - Call, BoxCall, ExternCall(呼び出し) - TypeOp, Safepoint, Barrier(メタ) - Phase 12.7糖衣構文ドキュメント整理(超圧縮重視、可逆変換保証) - MIRビルダーのモジュール分割完了 - vtableテストスイート拡充 - AI協調開発ツール追加(並列リファクタリング支援) 詳細: - src/mir/instruction_introspection.rs: core13_instruction_names()追加 - MIRビルダー分割: decls.rs, exprs_*.rs, fields.rs - plugin_loader_v2: errors.rs, host_bridge.rs分離 - 論文用データ: mir13-final.md作成 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
49 lines
1.4 KiB
Rust
49 lines
1.4 KiB
Rust
/*!
|
|
* Backend module - Different execution backends for MIR
|
|
*/
|
|
|
|
pub mod vm;
|
|
pub mod vm_phi;
|
|
pub mod vm_instructions;
|
|
pub mod vm_values;
|
|
pub mod vm_types;
|
|
pub mod vm_boxcall;
|
|
pub mod vm_stats;
|
|
// Phase 9.78h: VM split scaffolding (control_flow/dispatch/frame)
|
|
pub mod control_flow;
|
|
pub mod dispatch;
|
|
pub mod frame;
|
|
pub mod gc_helpers;
|
|
pub mod vm_control_flow;
|
|
mod vm_gc; // A3: GC roots & diagnostics extracted
|
|
mod vm_exec; // A3: execution loop extracted
|
|
mod vm_state; // A3: state & basic helpers extracted
|
|
mod vm_methods; // A3-S1: method dispatch wrappers extracted
|
|
pub mod abi_util; // Shared ABI/utility helpers
|
|
pub mod mir_interpreter; // Lightweight MIR interpreter
|
|
|
|
#[cfg(feature = "wasm-backend")]
|
|
pub mod wasm;
|
|
#[cfg(feature = "wasm-backend")]
|
|
pub mod aot;
|
|
#[cfg(feature = "wasm-backend")]
|
|
pub mod wasm_v2;
|
|
|
|
#[cfg(feature = "llvm")]
|
|
pub mod llvm;
|
|
#[cfg(feature = "cranelift-jit")]
|
|
pub mod cranelift;
|
|
|
|
pub use vm::{VM, VMError, VMValue};
|
|
pub use mir_interpreter::MirInterpreter;
|
|
|
|
#[cfg(feature = "wasm-backend")]
|
|
pub use wasm::{WasmBackend, WasmError};
|
|
#[cfg(feature = "wasm-backend")]
|
|
pub use aot::{AotBackend, AotError, AotConfig, AotStats};
|
|
|
|
#[cfg(feature = "llvm")]
|
|
pub use llvm::{compile_and_execute as llvm_compile_and_execute, compile_to_object as llvm_compile_to_object};
|
|
#[cfg(feature = "cranelift-jit")]
|
|
pub use cranelift::{compile_and_execute as cranelift_compile_and_execute, compile_to_object as cranelift_compile_to_object};
|