[llvm] [RISCV] Change RISCVMCExpr::VK_RISCV_None to RISCVMCExpr::VK_None (PR #131774)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 18 03:11:54 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-risc-v
Author: quic_hchandel (hchandel)
<details>
<summary>Changes</summary>
Fix RISCVMCExpr::VK_RISCV_None which were added in #<!-- -->130779
---
Full diff: https://github.com/llvm/llvm-project/pull/131774.diff
1 Files Affected:
- (modified) llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp (+6-6)
``````````diff
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 {
``````````
</details>
https://github.com/llvm/llvm-project/pull/131774
More information about the llvm-commits
mailing list