[llvm] da60558 - [RISCV] Rename getMin/MaxVLen to getArchMin/MaxVlen and make protected [nfc]
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 28 15:54:49 PDT 2022
Author: Philip Reames
Date: 2022-06-28T15:54:40-07:00
New Revision: da60558d8aa9e0827a93b6d26c53f4ddcea5d9ee
URL: https://github.com/llvm/llvm-project/commit/da60558d8aa9e0827a93b6d26c53f4ddcea5d9ee
DIFF: https://github.com/llvm/llvm-project/commit/da60558d8aa9e0827a93b6d26c53f4ddcea5d9ee.diff
LOG: [RISCV] Rename getMin/MaxVLen to getArchMin/MaxVlen and make protected [nfc]
Added:
Modified:
llvm/lib/Target/RISCV/RISCVSubtarget.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVSubtarget.h b/llvm/lib/Target/RISCV/RISCVSubtarget.h
index 62f33a5738df..831f7fadaa62 100644
--- a/llvm/lib/Target/RISCV/RISCVSubtarget.h
+++ b/llvm/lib/Target/RISCV/RISCVSubtarget.h
@@ -207,15 +207,13 @@ class RISCVSubtarget : public RISCVGenSubtargetInfo {
assert(hasVInstructions() && "Expected V extension");
return hasVInstructionsI64() ? 64 : 32;
}
- unsigned getMinVLen() const { return ZvlLen; }
- unsigned getMaxVLen() const { return 65536; }
unsigned getRealMinVLen() const {
unsigned VLen = getMinRVVVectorSizeInBits();
- return VLen == 0 ? getMinVLen() : VLen;
+ return VLen == 0 ? getArchMinVLen() : VLen;
}
unsigned getRealMaxVLen() const {
unsigned VLen = getMaxRVVVectorSizeInBits();
- return VLen == 0 ? getMaxVLen() : VLen;
+ return VLen == 0 ? getArchMaxVLen() : VLen;
}
RISCVABI::ABI getTargetABI() const { return TargetABI; }
bool isRegisterReservedByUser(Register i) const {
@@ -253,6 +251,11 @@ class RISCVSubtarget : public RISCVGenSubtargetInfo {
unsigned getMaxRVVVectorSizeInBits() const;
unsigned getMinRVVVectorSizeInBits() const;
+ // Return the known range for the bit length of RVV data registers as indicated
+ // by -march and -mattr.
+ unsigned getArchMinVLen() const { return ZvlLen; }
+ unsigned getArchMaxVLen() const { return 65536; }
+
public:
const CallLowering *getCallLowering() const override;
InstructionSelector *getInstructionSelector() const override;
More information about the llvm-commits
mailing list