[PGO] Use a helper function to find all indirect call-sites
authorRong Xu <xur@google.com>
Fri, 1 Apr 2016 23:16:44 +0000 (23:16 +0000)
committerRong Xu <xur@google.com>
Fri, 1 Apr 2016 23:16:44 +0000 (23:16 +0000)
commit0eb360362617a75fc9c7bb4e7fce50ad9196e49d
tree19b3f8ea5bf2beb7d2f02fe5e17bf62da57e2545
parent5dad9df9f7bd38a076e3c7cdf22270faa17b877f
[PGO] Use a helper function to find all indirect call-sites

Use a helper function to find all the direct-calls-sites in a function.
Also split the code into a separated file as this will be use by
indirect-call-promotion transformation.

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

llvm-svn: 265199
llvm/lib/Transforms/Instrumentation/IndirectCallSiteVisitor.h [new file with mode: 0644]
llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp