refactor(B2.1): move comptime hooks + const folding to lower/comptime.zig
Verbatim relocation of the 26-method comptime cluster (comptime eval hooks, #insert, comptime calls/deps/substitution, source-const folding and module-const selection) plus the three nested const-selection types (SelectedConst, ConstAuthor, ConstSourcePin) into src/ir/lower/ comptime.zig. 26 fn aliases + SelectedConst type alias on Lowering keep all call sites unchanged. Shared file-scope helpers stay in lower.zig per the helpers-stay-home rule, now pub: ConstFoldFrame, constFoldFrameContains, SourceConstCtx. Method pub-flips: findVariantIndex, putGlobal, tryLowerAsExpr, lowerVariadicArgs, resolver, setCurrentSourceFile, diagNonIntegralNarrow, lowerStmt, stampCallerSource, resolveParamType, resolveReturnType. Gate: zig build OK; zig build test 426/426; run_examples 541/0; zero expected/ snapshot churn.
This commit is contained in:
982
src/ir/lower.zig
982
src/ir/lower.zig
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user