OSDN Git Service

Add support for metadata attachments for global variables.
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 31 May 2016 23:01:54 +0000 (23:01 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 31 May 2016 23:01:54 +0000 (23:01 +0000)
commit6aef9f9248e4b2859b9e405bd5c17d4c532f2bde
treef28a1c77725b8775a09b275c1e6c79ca09005eae
parente781066bc293cef5f6453995a8d1de4e684cf697
Add support for metadata attachments for global variables.

This patch adds an IR, assembly and bitcode representation for metadata
attachments for globals. Future patches will port existing features to use
these new attachments.

Differential Revision: http://reviews.llvm.org/D20074

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271348 91177308-0d34-0410-b5e6-96231b3b80d8
18 files changed:
docs/BitCodeFormat.rst
docs/LangRef.rst
include/llvm/Bitcode/LLVMBitCodes.h
include/llvm/IR/Function.h
include/llvm/IR/GlobalObject.h
include/llvm/IR/GlobalVariable.h
lib/AsmParser/LLParser.cpp
lib/AsmParser/LLParser.h
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/Bitcode/Writer/ValueEnumerator.cpp
lib/Bitcode/Writer/ValueEnumerator.h
lib/IR/AsmWriter.cpp
lib/IR/Function.cpp
lib/IR/Globals.cpp
lib/IR/LLVMContextImpl.h
lib/IR/Metadata.cpp
test/Assembler/metadata.ll