Skip to content

InOrderIssueStage for llvm-mca should be generic over LSUnitBase #101534

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions llvm/include/llvm/MCA/Stages/InOrderIssueStage.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

namespace llvm {
namespace mca {
class LSUnit;
class LSUnitBase;
class RegisterFile;

struct StallInfo {
Expand Down Expand Up @@ -56,7 +56,7 @@ class InOrderIssueStage final : public Stage {
RegisterFile &PRF;
ResourceManager RM;
CustomBehaviour &CB;
LSUnit &LSU;
LSUnitBase &LSU;

/// Instructions that were issued, but not executed yet.
SmallVector<InstRef, 4> IssuedInst;
Expand Down Expand Up @@ -113,7 +113,7 @@ class InOrderIssueStage final : public Stage {

public:
InOrderIssueStage(const MCSubtargetInfo &STI, RegisterFile &PRF,
CustomBehaviour &CB, LSUnit &LSU);
CustomBehaviour &CB, LSUnitBase &LSU);

unsigned getIssueWidth() const;
bool isAvailable(const InstRef &) const override;
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/MCA/Stages/InOrderIssueStage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void StallInfo::cycleEnd() {

InOrderIssueStage::InOrderIssueStage(const MCSubtargetInfo &STI,
RegisterFile &PRF, CustomBehaviour &CB,
LSUnit &LSU)
LSUnitBase &LSU)
: STI(STI), PRF(PRF), RM(STI.getSchedModel()), CB(CB), LSU(LSU),
NumIssued(), CarryOver(), Bandwidth(), LastWriteBackCycle() {}

Expand Down
Loading