This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Mark zvkn* and zvks* extensions as enabled when all their subextensions are.
ClosedPublic

Authored by craig.topper on Jun 29 2023, 4:59 PM.

Details

Summary

These extensions don't contain any instructions on their own, they
are just aliases for a set of extensions. We should set the preprocessor
define anytime all the sub-extensions are supported.

Diff Detail

Event Timeline

craig.topper created this revision.Jun 29 2023, 4:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2023, 4:59 PM
craig.topper requested review of this revision.Jun 29 2023, 4:59 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 29 2023, 4:59 PM
craig.topper edited the summary of this revision. (Show Details)Jun 29 2023, 5:01 PM
eopXD added a comment.EditedJun 29 2023, 5:38 PM

Do we need to do the same for v extension?

I didn't understand the problem fully, we don't need to care about v extension here because 'v' itself adds something new to the architecture.

eopXD accepted this revision.Jun 29 2023, 5:41 PM

The change looks good.

This revision is now accepted and ready to land.Jun 29 2023, 5:41 PM

Do we need to do the same for v extension?

I didn't understand the problem fully, we don't need to care about v extension here because 'v' itself adds something new to the architecture.

Correct. V has some SEW=64 multiply instructions that aren't in zve64*.

This revision was landed with ongoing or failed builds.Jun 29 2023, 8:59 PM
This revision was automatically updated to reflect the committed changes.