Skip to content
Merged
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
4 changes: 2 additions & 2 deletions llvm/lib/Target/AMDGPU/GCNProcessors.td
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
// The code produced for "generic" is only useful for tests and cannot
// reasonably be expected to execute on any particular target.
def : ProcessorModel<"generic", NoSchedModel,
[FeatureGDS, FeatureGWS]
[FeatureGDS]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a side note I'd remove one last feature. IMO generic shall be featureless.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GDS was also removed, so it should also not be here. Not sure how it ended up here in the first place

Copy link
Contributor Author

@changpeng changpeng Jul 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GDS was also removed, so it should also not be here. Not sure how it ended up here in the first place

I am going to remove it in a following patch. Additional work is to remove gds related LIT tests for amdgcn/amdhsa with no target.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd even assert somewhere that feature mask for generic is zero.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No tests should be removed. The tests should be moved to use an explicit target

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a side note I'd remove one last feature. IMO generic shall be featureless.

Maybe we can keep FeatureFlatAddressSpace for generic-hsa to differentiate from generic.

Copy link
Collaborator

@rampitec rampitec Jul 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tahiti is not the one to support it. No luck here. Technically it has it, but practically it does not. Unless we say it is not a hsa target, which it is not really.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can ignore FeatureFlatAddressSpace, it is irrelevant now. Just leave it alone

>;

def : ProcessorModel<"generic-hsa", NoSchedModel,
[FeatureGDS, FeatureGWS, FeatureFlatAddressSpace]
[FeatureGDS, FeatureFlatAddressSpace]
>;

//===------------------------------------------------------------===//
Expand Down
Loading