Skip to content

intrinsic-test: add lots of documentation#2124

Merged
adamgemmell merged 8 commits into
rust-lang:mainfrom
davidtwco:intrinsic-test-docs
May 20, 2026
Merged

intrinsic-test: add lots of documentation#2124
adamgemmell merged 8 commits into
rust-lang:mainfrom
davidtwco:intrinsic-test-docs

Conversation

@davidtwco
Copy link
Copy Markdown
Member

When I had tried to make quick changes to intrinsic-test in the past, I found it quite an unintuitive codebase - lots of the code generation is split over multiple functions that make it hard to see the big picture of what is generated (particularly without running the tool and looking at what is generated), and lots of functions are confusingly named. Prior to doing any refactorings in pursuit of adding SVE testing, I wanted to first document as much of the codebase as I could to make it easier to understand - I'll follow-up with renames and refactorings.

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 19, 2026

r? @adamgemmell

rustbot has assigned @adamgemmell.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @Amanieu, @adamgemmell, @davidtwco, @folkertdev, @sayantn
  • @Amanieu, @adamgemmell, @davidtwco, @folkertdev, @sayantn expanded to Amanieu, adamgemmell, davidtwco, folkertdev, sayantn
  • Random selection from Amanieu, adamgemmell, folkertdev, sayantn

@rustbot

This comment has been minimized.

@davidtwco davidtwco force-pushed the intrinsic-test-docs branch from 4b84ed2 to 770f7ce Compare May 20, 2026 08:27
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 20, 2026

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

Comment on lines 13 to 19
1 => VALUES_8[index % 2].into(),
2 => VALUES_8[index % 4].into(),
3 => VALUES_8[index % 8].into(),
4 => VALUES_8[index % 16].into(),
5 => VALUES_5[index % VALUES_5.len()].into(),
6 => VALUES_6[index % VALUES_6.len()].into(),
7 => VALUES_7[index % VALUES_7.len()].into(),
Copy link
Copy Markdown
Contributor

@adamgemmell adamgemmell May 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These lines are very weird, I bet they're dead code 🤔

View changes since the review

@adamgemmell
Copy link
Copy Markdown
Contributor

LGTM - David & I have the same employer, but I'm going to merge this as it's just doc comments without functionality

@adamgemmell adamgemmell added this pull request to the merge queue May 20, 2026
Merged via the queue into rust-lang:main with commit 43350f2 May 20, 2026
74 checks passed
@davidtwco davidtwco deleted the intrinsic-test-docs branch May 20, 2026 13:58
@davidtwco
Copy link
Copy Markdown
Member Author

LGTM - David & I have the same employer, but I'm going to merge this as it's just doc comments without functionality

I'm fine with this when the changes aren't likely to be controversial and you haven't been involved in writing the changes.

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.

3 participants