runner: split modes (mir/vm/llvm/bench) and extract plugin init; interpreter: split objects into ops/methods/fields; VM logs gated; Phi selection minimal fix; CURRENT_TASK updated; remove legacy backups
This commit is contained in:
26
src/backend/dispatch.rs
Normal file
26
src/backend/dispatch.rs
Normal file
@ -0,0 +1,26 @@
|
||||
/*!
|
||||
* VM Dispatch table (scaffolding)
|
||||
*
|
||||
* Purpose: Centralize mapping from MIR instruction kinds to handler fns.
|
||||
* Status: Initial skeleton; currently unused. Future: build static table for hot-path dispatch.
|
||||
*/
|
||||
|
||||
use crate::mir::MirInstruction;
|
||||
use super::vm::{VMError};
|
||||
|
||||
/// Placeholder for an instruction dispatch entry
|
||||
pub struct DispatchEntry;
|
||||
|
||||
/// Placeholder dispatch table
|
||||
pub struct DispatchTable;
|
||||
|
||||
impl DispatchTable {
|
||||
pub fn new() -> Self { Self }
|
||||
|
||||
/// Example API for future use: resolve a handler for an instruction
|
||||
pub fn resolve(&self, _instr: &MirInstruction) -> Option<DispatchEntry> { None }
|
||||
}
|
||||
|
||||
/// Example execution of a dispatch entry
|
||||
pub fn execute_entry(_entry: &DispatchEntry) -> Result<(), VMError> { Ok(()) }
|
||||
|
||||
Reference in New Issue
Block a user