diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-08-10 00:46:15 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-08-10 00:46:15 +0000 |
commit | c8fbf6ffeaeb4fc9a2b5fcd6c993d64bcbb52818 (patch) | |
tree | d746c79051b37da71bc55017cfadf5e25ae31d64 /llvm/lib/Target/AMDGPU/GCNRegPressure.cpp | |
parent | 3cbb12c2ed8ff2013d6d881800aecf46f8205813 (diff) | |
download | bcm5719-llvm-c8fbf6ffeaeb4fc9a2b5fcd6c993d64bcbb52818.tar.gz bcm5719-llvm-c8fbf6ffeaeb4fc9a2b5fcd6c993d64bcbb52818.zip |
[AMDGPU] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes (NFC).
llvm-svn: 310541
Diffstat (limited to 'llvm/lib/Target/AMDGPU/GCNRegPressure.cpp')
-rw-r--r-- | llvm/lib/Target/AMDGPU/GCNRegPressure.cpp | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/llvm/lib/Target/AMDGPU/GCNRegPressure.cpp b/llvm/lib/Target/AMDGPU/GCNRegPressure.cpp index 0384340174f..f8d0acb3df9 100644 --- a/llvm/lib/Target/AMDGPU/GCNRegPressure.cpp +++ b/llvm/lib/Target/AMDGPU/GCNRegPressure.cpp @@ -1,4 +1,4 @@ -//===------------------------- GCNRegPressure.cpp - -----------------------===// +//===- GCNRegPressure.cpp -------------------------------------------------===// // // The LLVM Compiler Infrastructure // @@ -6,13 +6,26 @@ // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// -// -/// \file -// -//===----------------------------------------------------------------------===// #include "GCNRegPressure.h" +#include "AMDGPUSubtarget.h" +#include "SIRegisterInfo.h" +#include "llvm/ADT/SmallVector.h" +#include "llvm/CodeGen/LiveInterval.h" +#include "llvm/CodeGen/LiveIntervalAnalysis.h" +#include "llvm/CodeGen/MachineInstr.h" +#include "llvm/CodeGen/MachineOperand.h" +#include "llvm/CodeGen/MachineRegisterInfo.h" #include "llvm/CodeGen/RegisterPressure.h" +#include "llvm/CodeGen/SlotIndexes.h" +#include "llvm/MC/LaneBitmask.h" +#include "llvm/Support/Compiler.h" +#include "llvm/Support/Debug.h" +#include "llvm/Support/ErrorHandling.h" +#include "llvm/Support/raw_ostream.h" +#include "llvm/Target/TargetRegisterInfo.h" +#include <algorithm> +#include <cassert> using namespace llvm; @@ -63,7 +76,6 @@ static bool isEqual(const GCNRPTracker::LiveRegSet &S1, } return true; } - #endif /////////////////////////////////////////////////////////////////////////////// @@ -177,7 +189,6 @@ void GCNRegPressure::print(raw_ostream &OS, const SISubtarget *ST) const { } #endif - static LaneBitmask getDefRegMask(const MachineOperand &MO, const MachineRegisterInfo &MRI) { assert(MO.isDef() && MO.isReg() && |