summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-09-27 06:10:15 +0000
committerFangrui Song <maskray@google.com>2018-09-27 06:10:15 +0000
commit22438a844c490942fbca42848f8ab3a11c4af587 (patch)
tree6fe43bb18588dda0565c373940502192a09e204b /llvm/tools/llvm-exegesis/llvm-exegesis.cpp
parent0c0fb4b76559db8ba4c6dff9599300b0cc5fe3fe (diff)
downloadbcm5719-llvm-22438a844c490942fbca42848f8ab3a11c4af587.tar.gz
bcm5719-llvm-22438a844c490942fbca42848f8ab3a11c4af587.zip
[llvm-exegesis] Remove unused headers and fix naming issues
Reviewers: courbet Reviewed By: courbet Subscribers: tschuett, llvm-commits Differential Revision: https://reviews.llvm.org/D52565 llvm-svn: 343177
Diffstat (limited to 'llvm/tools/llvm-exegesis/llvm-exegesis.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/llvm-exegesis.cpp26
1 files changed, 12 insertions, 14 deletions
diff --git a/llvm/tools/llvm-exegesis/llvm-exegesis.cpp b/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
index a91e5fa5963..8fed1375c6f 100644
--- a/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
+++ b/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
@@ -36,9 +36,7 @@
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/TargetSelect.h"
#include <algorithm>
-#include <random>
#include <string>
-#include <unordered_map>
static llvm::cl::opt<unsigned>
OpcodeIndex("opcode-index", llvm::cl::desc("opcode to measure, by index"),
@@ -160,10 +158,10 @@ public:
// Implementation of the llvm::MCStreamer interface. We only care about
// instructions.
- void EmitInstruction(const llvm::MCInst &instruction,
- const llvm::MCSubtargetInfo &mc_subtarget_info,
+ void EmitInstruction(const llvm::MCInst &Instruction,
+ const llvm::MCSubtargetInfo &STI,
bool PrintSchedInfo) override {
- Result->Instructions.push_back(instruction);
+ Result->Instructions.push_back(Instruction);
}
// Implementation of the llvm::AsmCommentConsumer.
@@ -211,17 +209,17 @@ public:
private:
// We only care about instructions, we don't implement this part of the API.
- void EmitCommonSymbol(llvm::MCSymbol *symbol, uint64_t size,
- unsigned byte_alignment) override {}
- bool EmitSymbolAttribute(llvm::MCSymbol *symbol,
- llvm::MCSymbolAttr attribute) override {
+ void EmitCommonSymbol(llvm::MCSymbol *Symbol, uint64_t Size,
+ unsigned ByteAlignment) override {}
+ bool EmitSymbolAttribute(llvm::MCSymbol *Symbol,
+ llvm::MCSymbolAttr Attribute) override {
return false;
}
- void EmitValueToAlignment(unsigned byte_alignment, int64_t value,
- unsigned value_size,
- unsigned max_bytes_to_emit) override {}
- void EmitZerofill(llvm::MCSection *section, llvm::MCSymbol *symbol,
- uint64_t size, unsigned byte_alignment,
+ void EmitValueToAlignment(unsigned ByteAlignment, int64_t Value,
+ unsigned ValueSize,
+ unsigned MaxBytesToEmit) override {}
+ void EmitZerofill(llvm::MCSection *Section, llvm::MCSymbol *Symbol,
+ uint64_t Size, unsigned ByteAlignment,
llvm::SMLoc Loc) override {}
unsigned findRegisterByName(const llvm::StringRef RegName) const {
OpenPOWER on IntegriCloud