-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[RISCV] Change RISCVMCExpr::VK_RISCV_None to RISCVMCExpr::VK_None #131774
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
which were added in llvm#130779 Change-Id: I80b8d74e1a862b482bd72cd4cd5eb4433bae8d92
@llvm/pr-subscribers-backend-risc-v Author: quic_hchandel (hchandel) ChangesFix RISCVMCExpr::VK_RISCV_None which were added in #130779 Full diff: https://github.com/llvm/llvm-project/pull/131774.diff 1 Files Affected:
diff --git a/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp b/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
index 267d8bb1d67ba..5ac7779240148 100644
--- a/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
+++ b/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
@@ -823,12 +823,12 @@ struct RISCVOperand final : public MCParsedAsmOperand {
bool isSImm5NonZero() const {
if (!isImm())
return false;
- RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None;
+ RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_None;
int64_t Imm;
bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK);
return IsConstantImm && Imm != 0 &&
isInt<5>(fixImmediateForRV32(Imm, isRV64Imm())) &&
- VK == RISCVMCExpr::VK_RISCV_None;
+ VK == RISCVMCExpr::VK_None;
}
bool isSImm6() const {
@@ -1021,22 +1021,22 @@ struct RISCVOperand final : public MCParsedAsmOperand {
bool isSImm16NonZero() const {
if (!isImm())
return false;
- RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None;
+ RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_None;
int64_t Imm;
bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK);
return IsConstantImm && Imm != 0 &&
isInt<16>(fixImmediateForRV32(Imm, isRV64Imm())) &&
- VK == RISCVMCExpr::VK_RISCV_None;
+ VK == RISCVMCExpr::VK_None;
}
bool isUImm16NonZero() const {
if (!isImm())
return false;
int64_t Imm;
- RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None;
+ RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_None;
bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK);
return IsConstantImm && isUInt<16>(Imm) && (Imm != 0) &&
- VK == RISCVMCExpr::VK_RISCV_None;
+ VK == RISCVMCExpr::VK_None;
}
bool isUImm20LUI() const {
|
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
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 - please either get this committed asap or revert #130779 as you are breaking most buildbots at the moment
If either of the windows or linux build has already passed, a fixup like this should be good to go. |
I didn't know that. Thanks for the clarification. |
Its not ideal, but either you get a minimal fix in or you should revert and start again when everything is green again. The CI checks on the original PR should have caught all of this though, which is strange. |
@hchandel I have observed the same problem before. The checks run in github do not necessarily reflect reality because they are based on whatever commit your PR is based on. To work around this I normally rebase the PR downstream and run "make check-all" locally as I do not trust the github results. |
Fix RISCVMCExpr::VK_RISCV_None which were added in #130779