[PATCH] D13666: Add an (optional) identification block in the bitcode
Mehdi AMINI via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 12 12:11:28 PDT 2015
joker.eph created this revision.
joker.eph added a reviewer: rafael.
joker.eph added subscribers: llvm-commits, bob.wilson, dexonsmith, chandlerc.
joker.eph set the repository for this revision to rL LLVM.
Processing bitcode from a different LLVM version can lead to unexpected behavior. The LLVM project guarantees autoupdating bitcode from a previous minor revision for the same major, but can't make any promise when reading bitcode generated from a either a non-released LLVM, a vendor toolchain, or a "future" LLVM release.
This patch aims at being more user-friendly and allows a bitcode produce to emit an optional block at the beginning of the bitcode that will contains an opaque string intended to describe the bitcode producer information.
The bitcode reader will dump this information alongside any error it reports.
Repository:
rL LLVM
http://reviews.llvm.org/D13666
Files:
include/llvm/Bitcode/LLVMBitCodes.h
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
test/Bitcode/identification.ll
tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13666.37140.patch
Type: text/x-patch
Size: 5267 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151012/ca805ed6/attachment.bin>
More information about the llvm-commits
mailing list