diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:10:56 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:10:56 +0000 | 
| commit | 044eb2f6afba375a914ac9d8024f8f5142bb912e (patch) | |
| tree | 1475247dc9f9fe5be155ebd4c9069c75aadf8c20 /lib/CodeGen/SpillPlacement.h | |
| parent | eb70dddbd77e120e5d490bd8fbe7ff3f8fa81c6b (diff) | |
Notes
Diffstat (limited to 'lib/CodeGen/SpillPlacement.h')
| -rw-r--r-- | lib/CodeGen/SpillPlacement.h | 20 | 
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/CodeGen/SpillPlacement.h b/lib/CodeGen/SpillPlacement.h index 9b9ecccf9049..aa3ac444e0da 100644 --- a/lib/CodeGen/SpillPlacement.h +++ b/lib/CodeGen/SpillPlacement.h @@ -1,4 +1,4 @@ -//===-- SpillPlacement.h - Optimal Spill Code Placement --------*- C++ -*--===// +//===- SpillPlacement.h - Optimal Spill Code Placement ---------*- C++ -*--===//  //  //                     The LLVM Compiler Infrastructure  // @@ -37,9 +37,9 @@ namespace llvm {  class BitVector;  class EdgeBundles; -class MachineBasicBlock; -class MachineLoopInfo;  class MachineBlockFrequencyInfo; +class MachineFunction; +class MachineLoopInfo;  class SpillPlacement : public MachineFunctionPass {    struct Node; @@ -47,7 +47,7 @@ class SpillPlacement : public MachineFunctionPass {    const EdgeBundles *bundles;    const MachineLoopInfo *loops;    const MachineBlockFrequencyInfo *MBFI; -  Node *nodes; +  Node *nodes = nullptr;    // Nodes that are active in the current computation. Owned by the prepare()    // caller. @@ -73,7 +73,7 @@ class SpillPlacement : public MachineFunctionPass {  public:    static char ID; // Pass identification, replacement for typeid. -  SpillPlacement() : MachineFunctionPass(ID), nodes(nullptr) {} +  SpillPlacement() : MachineFunctionPass(ID) {}    ~SpillPlacement() override { releaseMemory(); }    /// BorderConstraint - A basic block has separate constraints for entry and @@ -155,16 +155,16 @@ public:    }  private: -  bool runOnMachineFunction(MachineFunction&) override; -  void getAnalysisUsage(AnalysisUsage&) const override; +  bool runOnMachineFunction(MachineFunction &mf) override; +  void getAnalysisUsage(AnalysisUsage &AU) const override;    void releaseMemory() override; -  void activate(unsigned); +  void activate(unsigned n);    void setThreshold(const BlockFrequency &Entry); -  bool update(unsigned); +  bool update(unsigned n);  };  } // end namespace llvm -#endif +#endif // LLVM_LIB_CODEGEN_SPILLPLACEMENT_H  | 
