Skip to content

Conversation

Enselic
Copy link
Member

@Enselic Enselic commented Oct 20, 2025

They are the same thing since they can be converted back and forth without loss.

We hint at that in the second bullet point two paragraphs down:

  • To get human readable versions of the LLVM bitcode, one just needs to convert
    the bitcode (.bc) files to .ll files using llvm-dis, which should be in
    the target local compilation of rustc.

That is also claimed in the last paragraph in this SO answer: https://stackoverflow.com/a/12954198/287761

@rustbot
Copy link
Collaborator

rustbot commented Oct 20, 2025

Thanks for the PR. If you have write access, feel free to merge this PR if it does not need reviews. You can request a review using r? rustc-dev-guide or r? <username>.

@rustbot rustbot added the S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content label Oct 20, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 20, 2025

⚠️ Warning ⚠️

They are the same thing since they can be converted back and forth
without loss.
@tshepang
Copy link
Member

so, these are different formats of the same data, so I would not call them the same thing

your change still looks like an improvement though, other than the commit message

@Noratrieb Noratrieb merged commit 7cb1f42 into rust-lang:main Oct 20, 2025
1 check passed
@rustbot rustbot removed the S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content label Oct 20, 2025
@Noratrieb
Copy link
Member

"LLVM IR" is the abstract idea, bitcode being one way to format IR

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.

4 participants