projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[RS4GC] Fix rematerialization of bitcast of bitcast.
[oota-llvm.git]
/
include
/
llvm
/
Analysis
/
InlineCost.h
diff --git
a/include/llvm/Analysis/InlineCost.h
b/include/llvm/Analysis/InlineCost.h
index 383f69713ad276458a43e207e53b8f37987b5b04..79ed74d8241110976b6289d97676aff6dd5137a4 100644
(file)
--- a/
include/llvm/Analysis/InlineCost.h
+++ b/
include/llvm/Analysis/InlineCost.h
@@
-19,10
+19,11
@@
#include <climits>
namespace llvm {
#include <climits>
namespace llvm {
+class AssumptionCacheTracker;
class CallSite;
class DataLayout;
class Function;
class CallSite;
class DataLayout;
class Function;
-class TargetTransformInfo;
+class TargetTransformInfo
WrapperPass
;
namespace InlineConstants {
// Various magic constants used to adjust heuristics.
namespace InlineConstants {
// Various magic constants used to adjust heuristics.
@@
-76,7
+77,7
@@
public:
}
/// \brief Test whether the inline cost is low enough for inlining.
}
/// \brief Test whether the inline cost is low enough for inlining.
-
LLVM_EXPLICIT
operator bool() const {
+
explicit
operator bool() const {
return Cost < Threshold;
}
return Cost < Threshold;
}
@@
-99,18
+100,18
@@
public:
/// \brief Cost analyzer used by inliner.
class InlineCostAnalysis : public CallGraphSCCPass {
/// \brief Cost analyzer used by inliner.
class InlineCostAnalysis : public CallGraphSCCPass {
-
const DataLayout *TD
;
-
const TargetTransformInfo *TTI
;
+
TargetTransformInfoWrapperPass *TTIWP
;
+
AssumptionCacheTracker *ACT
;
public:
static char ID;
InlineCostAnalysis();
public:
static char ID;
InlineCostAnalysis();
- ~InlineCostAnalysis();
+ ~InlineCostAnalysis()
override
;
// Pass interface implementation.
// Pass interface implementation.
- void getAnalysisUsage(AnalysisUsage &AU) const;
- bool runOnSCC(CallGraphSCC &SCC);
+ void getAnalysisUsage(AnalysisUsage &AU) const
override
;
+ bool runOnSCC(CallGraphSCC &SCC)
override
;
/// \brief Get an InlineCost object representing the cost of inlining this
/// callsite.
/// \brief Get an InlineCost object representing the cost of inlining this
/// callsite.