pub fn validate_and_generate_rir_parallel(
program: ParsedProgram,
) -> MultiErrorResult<ValidatedProgram>Expand description
Validate symbols and generate RIR in parallel for multi-file compilation.
This is the optimized path for multi-file compilation:
- Validates that there are no duplicate symbol definitions across files
- Generates RIR for each file in parallel using Rayon
- Merges the per-file RIRs into a single RIR with renumbered references
This is more efficient than the sequential path for projects with many files, as RIR generation is embarrassingly parallel (no cross-file dependencies at the RIR level).
§Arguments
program- The parsed program containing all files and shared interner
§Returns
A ValidatedProgram containing the merged RIR, or errors if duplicates are found.