forked from OSchip/llvm-project
[llvm-mca] Remove unused header files and correctly guard some include headers under NDEBUG. NFC
llvm-svn: 335589
This commit is contained in:
parent
4a69b0bb36
commit
eec6b81922
|
@ -17,7 +17,11 @@
|
|||
#define LLVM_TOOLS_LLVM_MCA_INSTRUCTION_H
|
||||
|
||||
#include "llvm/Support/MathExtras.h"
|
||||
|
||||
#ifndef NDEBUG
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#endif
|
||||
|
||||
#include <memory>
|
||||
#include <set>
|
||||
#include <vector>
|
||||
|
|
|
@ -14,8 +14,11 @@
|
|||
|
||||
#include "LSUnit.h"
|
||||
#include "Instruction.h"
|
||||
|
||||
#ifndef NDEBUG
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#endif
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
|
|
|
@ -16,12 +16,8 @@
|
|||
#ifndef LLVM_TOOLS_LLVM_MCA_LSUNIT_H
|
||||
#define LLVM_TOOLS_LLVM_MCA_LSUNIT_H
|
||||
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <set>
|
||||
|
||||
#define DEBUG_TYPE "llvm-mca"
|
||||
|
||||
namespace mca {
|
||||
|
||||
class InstRef;
|
||||
|
@ -145,6 +141,7 @@ public:
|
|||
bool isReady(const InstRef &IR) const;
|
||||
void onInstructionExecuted(const InstRef &IR);
|
||||
};
|
||||
|
||||
} // namespace mca
|
||||
|
||||
#endif
|
||||
|
|
|
@ -16,7 +16,10 @@
|
|||
|
||||
#include "RegisterFile.h"
|
||||
#include "Instruction.h"
|
||||
|
||||
#ifndef NDEBUG
|
||||
#include "llvm/Support/Debug.h"
|
||||
#endif
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "RetireControlUnit.h"
|
||||
|
||||
#ifndef NDEBUG
|
||||
#include "llvm/Support/Debug.h"
|
||||
#endif
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
|
|
|
@ -17,8 +17,6 @@
|
|||
|
||||
#include "Instruction.h"
|
||||
#include "llvm/MC/MCSchedule.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
|
||||
namespace mca {
|
||||
|
|
|
@ -12,15 +12,18 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "Scheduler.h"
|
||||
#include "HWEventListener.h"
|
||||
#include "Pipeline.h"
|
||||
#include "Support.h"
|
||||
#ifndef NDEBUG
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#endif
|
||||
|
||||
namespace mca {
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "llvm-mca"
|
||||
|
||||
uint64_t ResourceState::selectNextInSequence() {
|
||||
assert(isReady());
|
||||
uint64_t Next = getNextInSequence();
|
||||
|
|
Loading…
Reference in New Issue