diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-16 15:14:50 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-16 15:14:50 +0000 |
commit | 52d55bd224ac08dfef959527ca8257f82a80dbb0 (patch) | |
tree | 995c3e7f7c0a2df80d0bacd7a851451bb799fe2c /include/llvm/Analysis/InlineCost.h | |
parent | a5145c8d5ad6433cd490ce2e19584256b380d6b3 (diff) | |
download | external_llvm-52d55bd224ac08dfef959527ca8257f82a80dbb0.zip external_llvm-52d55bd224ac08dfef959527ca8257f82a80dbb0.tar.gz external_llvm-52d55bd224ac08dfef959527ca8257f82a80dbb0.tar.bz2 |
Make callIsSmall accessible as a utility function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/InlineCost.h')
-rw-r--r-- | include/llvm/Analysis/InlineCost.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Analysis/InlineCost.h b/include/llvm/Analysis/InlineCost.h index a0c521d..066b943 100644 --- a/include/llvm/Analysis/InlineCost.h +++ b/include/llvm/Analysis/InlineCost.h @@ -189,6 +189,10 @@ namespace llvm { /// eliminated. void growCachedCostInfo(Function* Caller, Function* Callee); }; + + /// callIsSmall - If a call is likely to lower to a single target instruction, + /// or is otherwise deemed small return true. + bool callIsSmall(const Function *Callee); } #endif |