Mercurial > hg > CbC > CbC_llvm
comparison lib/Transforms/IPO/InlineAlways.cpp @ 95:afa8332a0e37 LLVM3.8
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | 60c9769439b8 |
children | 7d135dc70f03 |
comparison
equal
deleted
inserted
replaced
84:f3e34b893a5f | 95:afa8332a0e37 |
---|---|
12 // | 12 // |
13 //===----------------------------------------------------------------------===// | 13 //===----------------------------------------------------------------------===// |
14 | 14 |
15 #include "llvm/Transforms/IPO.h" | 15 #include "llvm/Transforms/IPO.h" |
16 #include "llvm/ADT/SmallPtrSet.h" | 16 #include "llvm/ADT/SmallPtrSet.h" |
17 #include "llvm/Analysis/AliasAnalysis.h" | |
18 #include "llvm/Analysis/AssumptionCache.h" | 17 #include "llvm/Analysis/AssumptionCache.h" |
19 #include "llvm/Analysis/CallGraph.h" | 18 #include "llvm/Analysis/CallGraph.h" |
20 #include "llvm/Analysis/InlineCost.h" | 19 #include "llvm/Analysis/InlineCost.h" |
20 #include "llvm/Analysis/TargetLibraryInfo.h" | |
21 #include "llvm/IR/CallSite.h" | 21 #include "llvm/IR/CallSite.h" |
22 #include "llvm/IR/CallingConv.h" | 22 #include "llvm/IR/CallingConv.h" |
23 #include "llvm/IR/DataLayout.h" | 23 #include "llvm/IR/DataLayout.h" |
24 #include "llvm/IR/Instructions.h" | 24 #include "llvm/IR/Instructions.h" |
25 #include "llvm/IR/IntrinsicInst.h" | 25 #include "llvm/IR/IntrinsicInst.h" |
65 } | 65 } |
66 | 66 |
67 char AlwaysInliner::ID = 0; | 67 char AlwaysInliner::ID = 0; |
68 INITIALIZE_PASS_BEGIN(AlwaysInliner, "always-inline", | 68 INITIALIZE_PASS_BEGIN(AlwaysInliner, "always-inline", |
69 "Inliner for always_inline functions", false, false) | 69 "Inliner for always_inline functions", false, false) |
70 INITIALIZE_AG_DEPENDENCY(AliasAnalysis) | |
71 INITIALIZE_PASS_DEPENDENCY(AssumptionCacheTracker) | 70 INITIALIZE_PASS_DEPENDENCY(AssumptionCacheTracker) |
72 INITIALIZE_PASS_DEPENDENCY(CallGraphWrapperPass) | 71 INITIALIZE_PASS_DEPENDENCY(CallGraphWrapperPass) |
73 INITIALIZE_PASS_DEPENDENCY(InlineCostAnalysis) | 72 INITIALIZE_PASS_DEPENDENCY(InlineCostAnalysis) |
73 INITIALIZE_PASS_DEPENDENCY(TargetLibraryInfoWrapperPass) | |
74 INITIALIZE_PASS_END(AlwaysInliner, "always-inline", | 74 INITIALIZE_PASS_END(AlwaysInliner, "always-inline", |
75 "Inliner for always_inline functions", false, false) | 75 "Inliner for always_inline functions", false, false) |
76 | 76 |
77 Pass *llvm::createAlwaysInlinerPass() { return new AlwaysInliner(); } | 77 Pass *llvm::createAlwaysInlinerPass() { return new AlwaysInliner(); } |
78 | 78 |