mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Simplify the interface and remove an unneeded #include
llvm-svn: 13692
This commit is contained in:
parent
fee8ce6131
commit
bf8b81252f
@ -19,11 +19,9 @@
|
|||||||
|
|
||||||
#define DEBUG_TYPE "inline"
|
#define DEBUG_TYPE "inline"
|
||||||
#include "llvm/CallGraphSCCPass.h"
|
#include "llvm/CallGraphSCCPass.h"
|
||||||
#include <set>
|
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
class CallSite;
|
||||||
class CallSite;
|
|
||||||
|
|
||||||
/// Inliner - This class contains all of the helper code which is used to
|
/// Inliner - This class contains all of the helper code which is used to
|
||||||
/// perform the inlining operations that does not depend on the policy.
|
/// perform the inlining operations that does not depend on the policy.
|
||||||
@ -51,12 +49,6 @@ struct Inliner : public CallGraphSCCPass {
|
|||||||
/// not inlined.
|
/// not inlined.
|
||||||
///
|
///
|
||||||
virtual int getInlineCost(CallSite CS) = 0;
|
virtual int getInlineCost(CallSite CS) = 0;
|
||||||
|
|
||||||
/// getRecursiveInlineCost - This method can be implemented by subclasses if
|
|
||||||
/// it wants to treat calls to functions within the current SCC specially. If
|
|
||||||
/// this method is not overloaded, it just chains to getInlineCost().
|
|
||||||
///
|
|
||||||
virtual int getRecursiveInlineCost(CallSite CS);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// InlineThreshold - Cache the value here for easy access.
|
// InlineThreshold - Cache the value here for easy access.
|
||||||
|
Loading…
Reference in New Issue
Block a user