This is necessary for compilation with [thin]lto.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
*ping* Any comments for this patch? I believe these are mostly mechanical changes that were left out of the original DSOLocalEquivalent patch.
I've never patched the bitcode reader/writer before, I think, but from similar patches I've seen, this look good to me. Is there any sort of registration you're supposed to do of the new code?
Hmm. By registration, do you mean making cmake aware of the new test? I don't *think* there's anything else I may need to change. I mainly just copied similar logic from how the other constant codes are handled.
Adding @rnk who may have more familiarity.
Some of the other serializers using bitcode require some of the codes to be registered, either as abbreviations or just for incidental reasons. If there's nothing like that for similar record codes, though, it's probably not a thing for BC.
Ah I see. So something similar to:
Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_STRING));
It seems there's a handful of other ConstantCode BCs that use this, but most of them don't seem to use it. I'm guessing this might also be a case where it's not required.