1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

HazardRecognizer - Fix definition/declaration argument name mismatches. NFCI.

Consistently use SUnit *SU (or drop the argname entirely if not used like the other HazardRecognizer methods).

Silences cppcheck warnings.
This commit is contained in:
Simon Pilgrim 2020-11-18 16:45:25 +00:00
parent a121181074
commit 2010e696b2
4 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ public:
void AddHazardRecognizer(std::unique_ptr<ScheduleHazardRecognizer> &&);
bool atIssueLimit() const override;
HazardType getHazardType(SUnit *m, int Stalls = 0) override;
HazardType getHazardType(SUnit *, int Stalls = 0) override;
void Reset() override;
void EmitInstruction(SUnit *) override;
void EmitInstruction(MachineInstr *) override;

View File

@ -57,7 +57,7 @@ public:
/// other instruction is available, issue it first.
/// * NoopHazard: issuing this instruction would break the program. If
/// some other instruction can be issued, do so, otherwise issue a noop.
virtual HazardType getHazardType(SUnit *m, int Stalls = 0) {
virtual HazardType getHazardType(SUnit *, int Stalls = 0) {
return NoHazard;
}

View File

@ -74,8 +74,8 @@ unsigned SystemZHazardRecognizer::getCurrCycleIdx(SUnit *SU) const {
}
ScheduleHazardRecognizer::HazardType SystemZHazardRecognizer::
getHazardType(SUnit *m, int Stalls) {
return (fitsIntoCurrentGroup(m) ? NoHazard : Hazard);
getHazardType(SUnit *SU, int Stalls) {
return (fitsIntoCurrentGroup(SU) ? NoHazard : Hazard);
}
void SystemZHazardRecognizer::Reset() {

View File

@ -113,7 +113,7 @@ public:
Reset();
}
HazardType getHazardType(SUnit *m, int Stalls = 0) override;
HazardType getHazardType(SUnit *SU, int Stalls = 0) override;
void Reset() override;
void EmitInstruction(SUnit *SU) override;