summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SpillPlacement.h
diff options
context:
space:
mode:
authorEugene Zelenko <eugene.zelenko@gmail.com>2017-09-21 23:20:16 +0000
committerEugene Zelenko <eugene.zelenko@gmail.com>2017-09-21 23:20:16 +0000
commitfb7f792f55cef99cb5f462430c2fd40bdba1cce8 (patch)
treecb1f9a8459e2d5e7e4e4d0b64ec1bc12102bc248 /llvm/lib/CodeGen/SpillPlacement.h
parentf3a0e8e84ec8d5c829fd82b3a9fe4131f5472578 (diff)
downloadbcm5719-llvm-fb7f792f55cef99cb5f462430c2fd40bdba1cce8.tar.gz
bcm5719-llvm-fb7f792f55cef99cb5f462430c2fd40bdba1cce8.zip
[CodeGen] Fix some Clang-tidy modernize-use-bool-literals and Include What You Use warnings; other minor fixes (NFC).
llvm-svn: 313941
Diffstat (limited to 'llvm/lib/CodeGen/SpillPlacement.h')
-rw-r--r--llvm/lib/CodeGen/SpillPlacement.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/SpillPlacement.h b/llvm/lib/CodeGen/SpillPlacement.h
index 9b9ecccf904..aa3ac444e0d 100644
--- a/llvm/lib/CodeGen/SpillPlacement.h
+++ b/llvm/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
OpenPOWER on IntegriCloud