[PATCH] D14838: [ThinLTO] Metadata linking for imported functions
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 19 12:13:14 PST 2015
tejohnson created this revision.
tejohnson added reviewers: dexonsmith, joker.eph.
tejohnson added subscribers: llvm-commits, davidxl.
tejohnson added a dependency: D14825: [ThinLTO] Add MODULE_CODE_METADATA_VALUES record.
Herald added a subscriber: joker.eph.
Second patch split out from http://reviews.llvm.org/D14752.
Maps metadata as a post-pass from each module when importing complete,
suturing up final metadata to the temporary metadata left on the
imported instructions.
This entails saving the mapping from bitcode value id to temporary
metadata in the importing pass, and from bitcode value id to final
metadata during the metadata linking postpass.
Depends on D14825.
http://reviews.llvm.org/D14838
Files:
include/llvm/IR/DebugInfoMetadata.h
include/llvm/IR/GVMaterializer.h
include/llvm/IR/Metadata.h
include/llvm/IR/TrackingMDRef.h
include/llvm/IRReader/IRReader.h
include/llvm/Linker/Linker.h
include/llvm/Transforms/Utils/ValueMapper.h
lib/Bitcode/Reader/BitcodeReader.cpp
lib/IR/Metadata.cpp
lib/IRReader/IRReader.cpp
lib/Linker/LinkModules.cpp
lib/Transforms/Utils/ValueMapper.cpp
test/Linker/Inputs/thinlto_funcimport_debug.ll
test/Linker/thinlto_funcimport_debug.ll
tools/llvm-link/llvm-link.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14838.40690.patch
Type: text/x-patch
Size: 46745 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151119/02aa1f68/attachment.bin>
More information about the llvm-commits
mailing list