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:
parent
a121181074
commit
2010e696b2
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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() {
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user