1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

[llvm-mca] Remove unused header files and correctly guard some include headers under NDEBUG. NFC

llvm-svn: 335589
This commit is contained in:
Andrea Di Biagio 2018-06-26 10:44:12 +00:00
parent 49c0efbc03
commit a58b32e07f
7 changed files with 19 additions and 8 deletions

View File

@ -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>

View File

@ -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;

View File

@ -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

View File

@ -16,7 +16,10 @@
#include "RegisterFile.h"
#include "Instruction.h"
#ifndef NDEBUG
#include "llvm/Support/Debug.h"
#endif
using namespace llvm;

View File

@ -13,7 +13,10 @@
//===----------------------------------------------------------------------===//
#include "RetireControlUnit.h"
#ifndef NDEBUG
#include "llvm/Support/Debug.h"
#endif
using namespace llvm;

View File

@ -17,8 +17,6 @@
#include "Instruction.h"
#include "llvm/MC/MCSchedule.h"
#include <algorithm>
#include <vector>
namespace mca {

View File

@ -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();