Skip to content

native: split the large backend and linker files - #4256

Merged
BaseMax merged 15 commits into
mainfrom
nativegen-split
Nov 25, 2026
Merged

BaseMax merged 15 commits into
mainfrom
nativegen-split

Conversation

@BaseMax

@BaseMax BaseMax commented Nov 25, 2026

Copy link
Copy Markdown
Member

Splits 14 large files in nativegen and nativelink into a main file plus parts named after it. Only whole declarations move; none are edited or renamed, and all are byte-identical to main. Objects for sample programs on nine targets, and the macOS, static Linux and Windows executables checked, match the previous compiler. Windows PDB files vary between runs with either compiler. Dynamic Linux linking was not run locally.

@BaseMax
BaseMax requested a review from a team as a code owner November 25, 2026 23:12
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 118 files, which is 18 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 137bbc7a-cb48-440a-adcc-1cb3436faf0d
Commits

Reviewing files that changed from the base of the PR and between d496477 and 3a64bdc.

Files selected for processing: 118

  • compiler/nativegen/ng_a64.salam
  • compiler/nativegen/ng_a64_enc.salam
  • compiler/nativegen/ng_a64_flags.salam
  • compiler/nativegen/ng_a64_frame.salam
  • compiler/nativegen/ng_a64_ins.salam
  • compiler/nativegen/ng_a64_ops.salam
  • compiler/nativegen/ng_a64_vec.salam
  • compiler/nativegen/ng_arm.salam
  • compiler/nativegen/ng_arm_enc.salam
  • compiler/nativegen/ng_arm_ins.salam
  • compiler/nativegen/ng_arm_mem.salam
  • compiler/nativegen/ng_arm_ops.salam
  • compiler/nativegen/ng_dvar.salam
  • compiler/nativegen/ng_dvar_events.salam
  • compiler/nativegen/ng_dvar_frag.salam
  • compiler/nativegen/ng_dvar_loc.salam
  • compiler/nativegen/ng_dvar_markers.salam
  • compiler/nativegen/ng_dvar_meta.salam
  • compiler/nativegen/ng_dvar_types.salam
  • compiler/nativegen/ng_dvar_write.salam
  • compiler/nativegen/ng_enc.salam
  • compiler/nativegen/ng_enc_frame.salam
  • compiler/nativegen/ng_enc_ins.salam
  • compiler/nativegen/ng_enc_layout.salam
  • compiler/nativegen/ng_enc_modrm.salam
  • compiler/nativegen/ng_enc_peephole.salam
  • compiler/nativegen/ng_enc_vex.salam
  • compiler/nativegen/ng_enc_x86.salam
  • compiler/nativegen/ng_isel.salam
  • compiler/nativegen/ng_isel_agg.salam
  • compiler/nativegen/ng_isel_args.salam
  • compiler/nativegen/ng_isel_armargs.salam
  • compiler/nativegen/ng_isel_atomic.salam
  • compiler/nativegen/ng_isel_bin.salam
  • compiler/nativegen/ng_isel_call.salam
  • compiler/nativegen/ng_isel_cast.salam
  • compiler/nativegen/ng_isel_cmp.salam
  • compiler/nativegen/ng_isel_div.salam
  • compiler/nativegen/ng_isel_escape.salam
  • compiler/nativegen/ng_isel_fold.salam
  • compiler/nativegen/ng_isel_loadstore.salam
  • compiler/nativegen/ng_isel_magic.salam
  • compiler/nativegen/ng_isel_mem.salam
  • compiler/nativegen/ng_isel_mul.salam
  • compiler/nativegen/ng_isel_phi.salam
  • compiler/nativegen/ng_isel_select.salam
  • compiler/nativegen/ng_isel_value.salam
  • compiler/nativegen/ng_isel_vec.salam
  • compiler/nativegen/ng_legal.salam
  • compiler/nativegen/ng_legal_build.salam
  • compiler/nativegen/ng_legal_call.salam
  • compiler/nativegen/ng_legal_divmod.salam
  • compiler/nativegen/ng_legal_helpers.salam
  • compiler/nativegen/ng_legal_math.salam
  • compiler/nativegen/ng_legal_narrow.salam
  • compiler/nativegen/ng_legal_one.salam
  • compiler/nativegen/ng_legal_ops.salam
  • compiler/nativegen/ng_lvec.salam
  • compiler/nativegen/ng_lvec_body.salam
  • compiler/nativegen/ng_lvec_classify.salam
  • compiler/nativegen/ng_lvec_emit.salam
  • compiler/nativegen/ng_lvec_iv.salam
  • compiler/nativegen/ng_lvec_legal.salam
  • compiler/nativegen/ng_lvec_match.salam
  • compiler/nativegen/ng_lvec_transform.salam
  • compiler/nativegen/ng_opt.salam
  • compiler/nativegen/ng_opt_arith.salam
  • compiler/nativegen/ng_opt_bits.salam
  • compiler/nativegen/ng_opt_cast.salam
  • compiler/nativegen/ng_opt_dce.salam
  • compiler/nativegen/ng_opt_fold.salam
  • compiler/nativegen/ng_opt_ifconv.salam
  • compiler/nativegen/ng_opt_jump.salam
  • compiler/nativegen/ng_opt_narrow.salam
  • compiler/nativegen/ng_opt_range.salam
  • compiler/nativegen/ng_opt_rodata.salam
  • compiler/nativegen/ng_ra.salam
  • compiler/nativegen/ng_ra_coalesce.salam
  • compiler/nativegen/ng_ra_cse.salam
  • compiler/nativegen/ng_ra_frame.salam
  • compiler/nativegen/ng_ra_live.salam
  • compiler/nativegen/ng_ra_rewrite.salam
  • compiler/nativegen/ng_ra_scan.salam
  • compiler/nativegen/ng_rv64.salam
  • compiler/nativegen/ng_rv64_alu.salam
  • compiler/nativegen/ng_rv64_compress.salam
  • compiler/nativegen/ng_rv64_enc.salam
  • compiler/nativegen/ng_rv64_ins.salam
  • compiler/nativegen/ng_rv64_mem.salam
  • compiler/nativegen/ng_rv64_ops.salam
  • compiler/nativelink/nl_dynout.salam
  • compiler/nativelink/nl_dynout_apply.salam
  • compiler/nativelink/nl_dynout_needs.salam
  • compiler/nativelink/nl_dynout_place.salam
  • compiler/nativelink/nl_dynout_scan.salam
  • compiler/nativelink/nl_dynout_tables.salam
  • compiler/nativelink/nl_dynout_write.salam
  • compiler/nativelink/nl_macho.salam
  • compiler/nativelink/nl_macho_cmds.salam
  • compiler/nativelink/nl_macho_dyld.salam
  • compiler/nativelink/nl_macho_dylib.salam
  • compiler/nativelink/nl_macho_input.salam
  • compiler/nativelink/nl_macho_reloc.salam
  • compiler/nativelink/nl_macho_scan.salam
  • compiler/nativelink/nl_macho_write.salam
  • compiler/nativelink/nl_pdb.salam
  • compiler/nativelink/nl_pdb_dbi.salam
  • compiler/nativelink/nl_pdb_module.salam
  • compiler/nativelink/nl_pdb_msf.salam
  • compiler/nativelink/nl_pdb_types.salam
  • compiler/nativelink/nl_pdb_util.salam
  • compiler/nativelink/nl_pe.salam
  • compiler/nativelink/nl_pe_items.salam
  • compiler/nativelink/nl_pe_layout.salam
  • compiler/nativelink/nl_pe_reloc.salam
  • compiler/nativelink/nl_pe_write.salam
  • docs/NATIVE_BACKEND.md
  • docs/NATIVE_LINKER.md

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@BaseMax
BaseMax merged commit 9b331f1 into main Nov 25, 2026
19 checks passed
@BaseMax
BaseMax deleted the nativegen-split branch November 25, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant