Skip to content

Commit 6b6c0af

Browse files
Addressing review comments
1 parent f35809b commit 6b6c0af

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

llvm/test/tools/llvm-exegesis/RISCV/latency-by-load.s

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ LBU-NEXT: - 'LBU X10 X10 i_0x0'
4242

4343
LUI: LUI: No strategy found to make the execution serial
4444

45-
4645
# RUN: llvm-exegesis -mode=latency -mtriple=riscv64-unknown-linux-gnu --mcpu=generic --benchmark-phase=assemble-measured-code -opcode-name=LB | FileCheck --check-prefix=LB %s
4746

4847
LB: ---

llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ Instruction::Instruction(const MCInstrDesc *Description, StringRef Name,
9696
const BitVector *ImplUseRegs,
9797
const BitVector *AllDefRegs,
9898
const BitVector *AllUseRegs,
99-
const BitVector *NotMemoryRegs)
99+
const BitVector *NonMemoryRegs)
100100
: Description(*Description), Name(Name), Operands(std::move(Operands)),
101101
Variables(std::move(Variables)), ImplDefRegs(*ImplDefRegs),
102102
ImplUseRegs(*ImplUseRegs), AllDefRegs(*AllDefRegs),
103-
AllUseRegs(*AllUseRegs), NotMemoryRegs(*NotMemoryRegs) {}
103+
AllUseRegs(*AllUseRegs), NonMemoryRegs(*NonMemoryRegs) {}
104104

105105
std::unique_ptr<Instruction>
106106
Instruction::create(const MCInstrInfo &InstrInfo,
@@ -167,7 +167,7 @@ Instruction::create(const MCInstrInfo &InstrInfo,
167167
BitVector ImplUseRegs = RATC.emptyRegisters();
168168
BitVector AllDefRegs = RATC.emptyRegisters();
169169
BitVector AllUseRegs = RATC.emptyRegisters();
170-
BitVector NotMemoryRegs = RATC.emptyRegisters();
170+
BitVector NonMemoryRegs = RATC.emptyRegisters();
171171

172172
for (const auto &Op : Operands) {
173173
if (Op.isReg()) {
@@ -181,7 +181,7 @@ Instruction::create(const MCInstrInfo &InstrInfo,
181181
if (Op.isUse() && Op.isImplicit())
182182
ImplUseRegs |= AliasingBits;
183183
if (Op.isUse() && !Op.isMemory())
184-
NotMemoryRegs |= AliasingBits;
184+
NonMemoryRegs |= AliasingBits;
185185
}
186186
}
187187
// Can't use make_unique because constructor is private.
@@ -191,7 +191,7 @@ Instruction::create(const MCInstrInfo &InstrInfo,
191191
BVC.getUnique(std::move(ImplUseRegs)),
192192
BVC.getUnique(std::move(AllDefRegs)),
193193
BVC.getUnique(std::move(AllUseRegs)),
194-
BVC.getUnique(std::move(NotMemoryRegs))));
194+
BVC.getUnique(std::move(NonMemoryRegs))));
195195
}
196196

197197
const Operand &Instruction::getPrimaryOperand(const Variable &Var) const {
@@ -248,7 +248,7 @@ bool Instruction::hasAliasingRegisters(
248248

249249
bool Instruction::hasAliasingNotMemoryRegisters(
250250
const BitVector &ForbiddenRegisters) const {
251-
return anyCommonExcludingForbidden(AllDefRegs, NotMemoryRegs,
251+
return anyCommonExcludingForbidden(AllDefRegs, NonMemoryRegs,
252252
ForbiddenRegisters);
253253
}
254254

llvm/tools/llvm-exegesis/lib/MCInstrDescView.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,14 @@ struct Instruction {
167167
const BitVector &AllDefRegs; // The set of all aliased def registers.
168168
const BitVector &AllUseRegs; // The set of all aliased use registers.
169169
// The set of all aliased not memory use registers.
170-
const BitVector &NotMemoryRegs;
170+
const BitVector &NonMemoryRegs;
171171

172172
private:
173173
Instruction(const MCInstrDesc *Description, StringRef Name,
174174
SmallVector<Operand, 8> Operands,
175175
SmallVector<Variable, 4> Variables, const BitVector *ImplDefRegs,
176176
const BitVector *ImplUseRegs, const BitVector *AllDefRegs,
177-
const BitVector *AllUseRegs, const BitVector *NotMemoryRegs);
177+
const BitVector *AllUseRegs, const BitVector *NonMemoryRegs);
178178
};
179179

180180
// Instructions are expensive to instantiate. This class provides a cache of

llvm/tools/llvm-exegesis/lib/PerfHelper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class CounterGroup {
119119
virtual void start();
120120

121121
/// Stops the measurement of the event.
122-
virtual void stop();
122+
void stop();
123123

124124
/// Returns the current value of the counter or error if it cannot be read.
125125
/// FunctionBytes: The benchmark function being executed.

0 commit comments

Comments
 (0)