diff options
| author | 2018-04-06 14:26:03 +0000 | |
|---|---|---|
| committer | 2018-04-06 14:26:03 +0000 | |
| commit | bdabc2f19ffb9e20600dad6e8a300842a7bda50e (patch) | |
| tree | c50e7b2e5449b074651bb82a58517a8ebc4a8cf7 /gnu/llvm/lib/CodeGen/SpillPlacement.h | |
| parent | Print a 'p' flag for file descriptors that were opened after pledge(2). (diff) | |
| download | wireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.tar.xz wireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.zip | |
Import LLVM 6.0.1 release including clang, lld and lldb.
"where is the kaboom?" deraadt@
Diffstat (limited to 'gnu/llvm/lib/CodeGen/SpillPlacement.h')
| -rw-r--r-- | gnu/llvm/lib/CodeGen/SpillPlacement.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gnu/llvm/lib/CodeGen/SpillPlacement.h b/gnu/llvm/lib/CodeGen/SpillPlacement.h index 9b9ecccf904..aa3ac444e0d 100644 --- a/gnu/llvm/lib/CodeGen/SpillPlacement.h +++ b/gnu/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 |
