summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objcopy/Object.cpp
diff options
context:
space:
mode:
authorEaswaran Raman <eraman@google.com>2018-01-25 22:02:29 +0000
committerEaswaran Raman <eraman@google.com>2018-01-25 22:02:29 +0000
commit8410c3746548f63c8471a34c696543fb51e22afb (patch)
tree62e95f2e18042fc992d13c7fd72c5cd555b33605 /llvm/tools/llvm-objcopy/Object.cpp
parent0715092c65baa4005f8ec6bdd2a5f52ff8861da1 (diff)
downloadbcm5719-llvm-8410c3746548f63c8471a34c696543fb51e22afb.tar.gz
bcm5719-llvm-8410c3746548f63c8471a34c696543fb51e22afb.zip
[SyntheticCounts] Rewrite the code using only graph traits.
Summary: The intent of this is to allow the code to be used with ThinLTO. In Thinlink phase, a traditional Callgraph can not be computed even though all the necessary information (nodes and edges of a call graph) is available. This is due to the fact that CallGraph class is closely tied to the IR. This patch first extends GraphTraits to add a CallGraphTraits graph. This is then used to implement a version of counts propagation on a generic callgraph. Reviewers: davidxl Subscribers: mehdi_amini, tejohnson, llvm-commits Differential Revision: https://reviews.llvm.org/D42311 llvm-svn: 323475
Diffstat (limited to 'llvm/tools/llvm-objcopy/Object.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud