[PATCH] D73422: [IR] Delete MODULE_CODE_DEPLIB

Mehdi AMINI via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 12 10:41:02 PDT 2020


mehdi_amini added inline comments.


================
Comment at: llvm/lib/Bitcode/Reader/BitcodeReader.cpp:3605
-      break;
-    }
     case bitc::MODULE_CODE_SECTIONNAME: {  // SECTIONNAME: [strchr x N]
----------------
MaskRay wrote:
> mehdi_amini wrote:
> > void wrote:
> > > mehdi_amini wrote:
> > > > Isn't this breaking bitcode backward compatibility?
> > > > 
> > > This used to be okay when changing major versions. I'm not too familiar with the current versioning system though or whether that's still the policy.
> > It changed when we changed the version numbering to not have major/minor anymore. At the time (IIRC) we considered we would break compatibility only if it is really motivated. The current section of the developer policy: https://llvm.org/docs/DeveloperPolicy.html#ir-backwards-compatibility
> > 
> Is this a case that "really no one makes use of the feature"? It was planned to be removed in 4.0
Anything that was "planned to be removed in 4.0" is now supported "forever" until we make an explicit choice to break backward compatibility.

The reason is that "4.0" was used during the development of the 3.x versions as "this future major breaking change version". At the time the major number was used to indicate the compatibility. When we reached 3.9 we decided to change the numbering, instead of going to 3.10 we went to 4.0 but after changing the meaning of the major number to not mean anything anymore with respect to bitcode backward compatibility.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73422/new/

https://reviews.llvm.org/D73422





More information about the llvm-commits mailing list