Skip to content

[Compatibility] Some old version of bitcode cannot be parsed since 18.0.0 #65885

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
uaex opened this issue Sep 10, 2023 · 2 comments
Closed

[Compatibility] Some old version of bitcode cannot be parsed since 18.0.0 #65885

uaex opened this issue Sep 10, 2023 · 2 comments
Labels
llvm:bitcode question A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

Comments

@uaex
Copy link

uaex commented Sep 10, 2023

I found some changes in LLVM version 18.0.0:

The constant expression variants of the following instructions have been removed:
and
or

Some old version of bitcode cannot be parsed. Can we provide compatibility support?

Error Message:
Value referenced by initializer is an unsupported constant expression of type or

@nikic
Copy link
Contributor

nikic commented Sep 10, 2023

Please provide the problematic bitcode. Though as the expression is part of an initializer, the answer is probably "no".

@RIscRIpt
Copy link
Member

RIscRIpt commented May 9, 2025

If I understand correctly, this is related to #139245. If you take bug.ll from #139245 and try to assemble it using LLVM19 you can observe relevant error message:

bug.ll:22:104: error: or constexprs are no longer supported

According to LLVM Developer Policy there are no promises made about compatibility of textual format:

The textual format is not backwards compatible. We don’t change it too often, but there are no specific promises.

For this reason, I think we can close this issue.

@RIscRIpt RIscRIpt closed this as not planned Won't fix, can't repro, duplicate, stale May 9, 2025
@EugeneZelenko EugeneZelenko added the question A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead! label May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
llvm:bitcode question A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!
Projects
None yet
Development

No branches or pull requests

5 participants