[PATCH] D12618: Reserve a vendor reserved block ID for bitcode
Mehdi AMINI via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 3 17:11:13 PDT 2015
joker.eph created this revision.
joker.eph added a reviewer: rafael.
joker.eph added a subscriber: llvm-commits.
The idea is that vendor toolchains can insert a block for their own
internal purpose while generating bitcode that will be compatible
with the open-source tools. The latter just ignoring this block.
We (Apple) intend to use it for versioning the bitcode. The versioning
would not make sense with respect to open-source release since our
internal versions/releases don't align.
http://reviews.llvm.org/D12618
Files:
include/llvm/Bitcode/LLVMBitCodes.h
Index: include/llvm/Bitcode/LLVMBitCodes.h
===================================================================
--- include/llvm/Bitcode/LLVMBitCodes.h
+++ include/llvm/Bitcode/LLVMBitCodes.h
@@ -34,7 +34,8 @@
CONSTANTS_BLOCK_ID,
FUNCTION_BLOCK_ID,
- UNUSED_ID1,
+ // Valid inside vendor specific toolchains only, discarded by open-source
+ VENDOR_RESERVED_ID,
VALUE_SYMTAB_BLOCK_ID,
METADATA_BLOCK_ID,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12618.33995.patch
Type: text/x-patch
Size: 435 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150904/e21dac09/attachment.bin>
More information about the llvm-commits
mailing list