Skip to content

CG: clearer names, following Rodney - #1356

Merged
hosking merged 1 commit into
masterfrom
cg-clearer-names
Nov 24, 2026
Merged

hosking merged 1 commit into
masterfrom
cg-clearer-names

Conversation

@hosking

@hosking hosking commented Nov 24, 2026

Copy link
Copy Markdown
Member

Names only; the generated code is unchanged. These are the renames Rodney made on rodney-new, applied to master so that branch merges cleanly (see his comment on #1328):

  • ValRec.temp_base/temp_bits become base_is_temp/bits_is_temp, and save_temp_bits becomes save_bits_is_temp.
  • SimpleIndirectLoad/SimpleIndirectStore become LoadIndirectSimple/IndirectStoreSimple.
  • In Load_indirect and Store_indirect, best_type/best_size/best_align become fetch_type/fetch_size/fetch_align, since nothing about them is "best".

One difference from rodney-new: Load_indirect already had a local fetch_align, the smallest container a run-time bit offset needs (the one #1328 changed). Here it becomes container_align and keeps its own role. On rodney-new it was merged with the fetch type's alignment, which changes what ReduceBits and the alignment check see when no wider type is chosen.

#1329 uses x.temp_bits; I'll update it after this merges.

🤖 Generated with Claude Code

Rename, as on rodney-new, so that branch merges cleanly:
- ValRec fields temp_base/temp_bits -> base_is_temp/bits_is_temp
  (and save_temp_bits -> save_bits_is_temp);
- SimpleIndirectLoad/SimpleIndirectStore -> LoadIndirectSimple/
  IndirectStoreSimple;
- best_type/best_size/best_align -> fetch_type/fetch_size/fetch_align
  in Load_indirect and Store_indirect, where nothing about them is "best".

Load_indirect already had a local fetch_align, the smallest container a
run-time bit offset needs.  That keeps its own role and becomes
container_align, rather than being merged with the fetch type's
alignment.  Names only; the generated code is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hosking
hosking merged commit a877d6e into master Nov 24, 2026
21 of 22 checks passed
hosking pushed a commit that referenced this pull request Nov 24, 2026
Resolve the m3tests list (p314 beside master's p315) and follow #1356's
rename of ValRec.temp_bits to bits_is_temp in Split_bit_address.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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