Files
hakorune/src/mir/builder/calls/mod.rs
nyash-codex dda65b94b7 Phase 21.7 normalization: optimization pre-work + bench harness expansion
- Add opt-in optimizations (defaults OFF)
  - Ret purity verifier: NYASH_VERIFY_RET_PURITY=1
  - strlen FAST enhancement for const handles
  - FAST_INT gate for same-BB SSA optimization
  - length cache for string literals in llvmlite
- Expand bench harness (tools/perf/microbench.sh)
  - Add branch/call/stringchain/arraymap/chip8/kilo cases
  - Auto-calculate ratio vs C reference
  - Document in benchmarks/README.md
- Compiler health improvements
  - Unify PHI insertion to insert_phi_at_head()
  - Add NYASH_LLVM_SKIP_BUILD=1 for build reuse
- Runtime & safety enhancements
  - Clarify Rust/Hako ownership boundaries
  - Strengthen receiver localization (LocalSSA/pin/after-PHIs)
  - Stop excessive PluginInvoke→BoxCall rewrites
- Update CURRENT_TASK.md, docs, and canaries

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-13 16:40:58 +09:00

31 lines
642 B
Rust

/*!
* Call System Module Organization
*
* Refactored from monolithic builder_calls.rs (879 lines)
* Split into focused modules following Single Responsibility Principle
*/
// Core types
pub mod call_target;
// Resolution system
pub mod method_resolution;
// External calls
pub mod extern_calls;
// Special handlers
pub mod special_handlers;
// Function lowering
pub mod function_lowering;
// Unified call system
pub mod call_unified;
// Call result annotation
pub mod annotation;
// Re-exports were removed to reduce unused-import warnings.
// Use module-qualified paths (e.g., special_handlers::parse_type_name_to_mir) instead.