diff options
author | Matthew Simpson <mssimpso@codeaurora.org> | 2017-10-25 13:40:08 +0000 |
---|---|---|
committer | Matthew Simpson <mssimpso@codeaurora.org> | 2017-10-25 13:40:08 +0000 |
commit | cb58558c2f680199ae7d9085c5f58d5e127e6f57 (patch) | |
tree | 460a2ada335c943a548094a25f65209bbaec4dd8 /llvm/include/llvm-c/Transforms | |
parent | 7af3edc4f4f19f0b216378b8e8c8677ce8dbafa2 (diff) | |
download | bcm5719-llvm-cb58558c2f680199ae7d9085c5f58d5e127e6f57.tar.gz bcm5719-llvm-cb58558c2f680199ae7d9085c5f58d5e127e6f57.zip |
Add CalledValuePropagation pass
This patch adds a new pass for attaching !callees metadata to indirect call
sites. The pass propagates values to call sites by performing an IPSCCP-like
analysis using the generic sparse propagation solver. For indirect call sites
having a small set of possible callees, the attached metadata indicates what
those callees are. The metadata can be used to facilitate optimizations like
intersecting the function attributes of the possible callees, refining the call
graph, performing indirect call promotion, etc.
Differential Revision: https://reviews.llvm.org/D37355
llvm-svn: 316576
Diffstat (limited to 'llvm/include/llvm-c/Transforms')
-rw-r--r-- | llvm/include/llvm-c/Transforms/IPO.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Transforms/IPO.h b/llvm/include/llvm-c/Transforms/IPO.h index 3af7425dd26..7705b1864dc 100644 --- a/llvm/include/llvm-c/Transforms/IPO.h +++ b/llvm/include/llvm-c/Transforms/IPO.h @@ -34,6 +34,9 @@ void LLVMAddArgumentPromotionPass(LLVMPassManagerRef PM); /** See llvm::createConstantMergePass function. */ void LLVMAddConstantMergePass(LLVMPassManagerRef PM); +/** See llvm::createCalledValuePropagationPass function. */ +void LLVMAddCalledValuePropagationPass(LLVMPassManagerRef PM); + /** See llvm::createDeadArgEliminationPass function. */ void LLVMAddDeadArgEliminationPass(LLVMPassManagerRef PM); |