[llvm] 94257d1 - [RISCV] Remove unused method isUImm5NonZero() from RISCVAsmParser.cpp. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 4 00:18:11 PST 2021
Author: Craig Topper
Date: 2021-01-04T00:17:39-08:00
New Revision: 94257d12cb2dc23ccdc34b6eb26b02a9cde3e668
URL: https://github.com/llvm/llvm-project/commit/94257d12cb2dc23ccdc34b6eb26b02a9cde3e668
DIFF: https://github.com/llvm/llvm-project/commit/94257d12cb2dc23ccdc34b6eb26b02a9cde3e668.diff
LOG: [RISCV] Remove unused method isUImm5NonZero() from RISCVAsmParser.cpp. NFC
The operand predicate that used this has been gone for a while.
Added:
Modified:
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp b/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
index 4172d33384bf..d31bb8f02dab 100644
--- a/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
+++ b/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
@@ -514,16 +514,6 @@ struct RISCVOperand : public MCParsedAsmOperand {
return IsConstantImm && isUInt<5>(Imm) && VK == RISCVMCExpr::VK_RISCV_None;
}
- bool isUImm5NonZero() const {
- int64_t Imm;
- RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None;
- if (!isImm())
- return false;
- bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK);
- return IsConstantImm && isUInt<5>(Imm) && (Imm != 0) &&
- VK == RISCVMCExpr::VK_RISCV_None;
- }
-
bool isSImm5() const {
if (!isImm())
return false;
@@ -540,7 +530,7 @@ struct RISCVOperand : public MCParsedAsmOperand {
int64_t Imm;
bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK);
return IsConstantImm && isInt<6>(Imm) &&
- VK == RISCVMCExpr::VK_RISCV_None;
+ VK == RISCVMCExpr::VK_RISCV_None;
}
bool isSImm6NonZero() const {
More information about the llvm-commits
mailing list