-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[RISCV] Add Zilsd and Zclsd Extensions #131094
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
Conversation
✅ With the latest revision this PR passed the C/C++ code formatter. |
: RISCVExtension<1, 0, | ||
"Compressed Load/Store pair instructions", | ||
[FeatureStdExtZilsd,FeatureStdExtZca]>; | ||
def HasStdExtZclsd : Predicate<"Subtarget->hasStdExtZclsd() && !Subtarget->hasStdExtZcf()">, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The conflict with Zcf needs to be checked in RISCVISAInfo::checkDependency
in llvm/lib/TargetParser/RISCVISAInfo.cpp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not yet resolved, the check here should be exactly the following:
def HasStdExtZclsd : Predicate<"Subtarget->hasStdExtZclsd() && !Subtarget->hasStdExtZcf()">, | |
def HasStdExtZclsd : Predicate<"Subtarget->hasStdExtZclsd()">, |
When I tested with |
This should fix your failures
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a ReleaseNote.
: RISCVExtension<1, 0, | ||
"Compressed Load/Store pair instructions", | ||
[FeatureStdExtZilsd,FeatureStdExtZca]>; | ||
def HasStdExtZclsd : Predicate<"Subtarget->hasStdExtZclsd() && !Subtarget->hasStdExtZcf()">, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not yet resolved, the check here should be exactly the following:
def HasStdExtZclsd : Predicate<"Subtarget->hasStdExtZclsd() && !Subtarget->hasStdExtZcf()">, | |
def HasStdExtZclsd : Predicate<"Subtarget->hasStdExtZclsd()">, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
LGTM. do you need someone to merge this? |
Yes,Please help me merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
This commit adds the Load/Store pair instructions (Zilsd) and Compressed Load/Store pair instructions (Zclsd).
Specification link.