You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever we fail to parse a bitcode file from a more recent Clang version, it's usually because a piece of LLVM metadata has gained an additional record field that llvm-pretty-bc-parser does not support. Whenever LLVM disassembles a .bc file, LLVM's policy is to reject metadata with a number of records that does not lie within a predefined range of expected records. llvm-pretty-bc-parser has adopted this policy as well, but at the expense of making llvm-pretty-bc-parser much more slow to adopt new LLVM versions (or, in extreme cases, alternative releases of supported LLVM versions, as in #235).
Most of the time, however, adding new metadata records is harmless, as they almost never affect the actual semantics of the bitcode itself. In light of this, perhaps we should relax llvm-pretty-bc-parser and allow parsing metadata with more records than what the predefined ranges allow. We might consider emitting a warning if that ever happens, but it need not be a fatal error. This would make llvm-pretty-bc-parser more forward-compatible with LLVM releases it has not encountered yet.
The text was updated successfully, but these errors were encountered:
Whenever we fail to parse a bitcode file from a more recent Clang version, it's usually because a piece of LLVM metadata has gained an additional record field that
llvm-pretty-bc-parser
does not support. Whenever LLVM disassembles a.bc
file, LLVM's policy is to reject metadata with a number of records that does not lie within a predefined range of expected records.llvm-pretty-bc-parser
has adopted this policy as well, but at the expense of makingllvm-pretty-bc-parser
much more slow to adopt new LLVM versions (or, in extreme cases, alternative releases of supported LLVM versions, as in #235).Most of the time, however, adding new metadata records is harmless, as they almost never affect the actual semantics of the bitcode itself. In light of this, perhaps we should relax
llvm-pretty-bc-parser
and allow parsing metadata with more records than what the predefined ranges allow. We might consider emitting a warning if that ever happens, but it need not be a fatal error. This would makellvm-pretty-bc-parser
more forward-compatible with LLVM releases it has not encountered yet.The text was updated successfully, but these errors were encountered: