Skip to content

Commit b36e65b

Browse files
committed
fixup! Remove getXSfmmAltFmt which duplicates isAltFmt.
1 parent 7ebe32c commit b36e65b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

llvm/include/llvm/TargetParser/RISCVTargetParser.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,6 @@ inline static unsigned getXSfmmWiden(unsigned VType) {
145145
return 1 << (TWiden - 1);
146146
}
147147

148-
inline static bool getXSfmmAltFmt(unsigned VType) { return (VType >> 8) & 1; }
149-
150148
static inline bool isValidXSfmmVType(unsigned VTypeI) {
151149
return (VTypeI & ~0x738) == 0 && RISCVVType::hasXSfmmWiden(VTypeI) &&
152150
RISCVVType::getSEW(VTypeI) * RISCVVType::getXSfmmWiden(VTypeI) <= 64;

llvm/lib/Target/RISCV/MCTargetDesc/RISCVInstPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ void RISCVInstPrinter::printXSfmmVType(const MCInst *MI, unsigned OpNo,
226226
assert(RISCVVType::isValidXSfmmVType(Imm));
227227
unsigned SEW = RISCVVType::getSEW(Imm);
228228
O << "e" << SEW;
229-
bool AltFmt = RISCVVType::getXSfmmAltFmt(Imm);
229+
bool AltFmt = RISCVVType::isAltFmt(Imm);
230230
if (AltFmt)
231231
O << "alt";
232232
unsigned Widen = RISCVVType::getXSfmmWiden(Imm);

0 commit comments

Comments
 (0)