Skip to content

Commit 71a5b37

Browse files
authored
[CodeGenTypes] Remove unused ElSz argument from generated GET_VT_VECATTR (#95258)
1 parent 705f858 commit 71a5b37

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

llvm/include/llvm/CodeGenTypes/MachineValueType.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -438,19 +438,19 @@ namespace llvm {
438438
}
439439

440440
static MVT getVectorVT(MVT VT, unsigned NumElements) {
441-
#define GET_VT_VECATTR(Ty, Sc, nElem, ElTy, ElSz) \
442-
if (!Sc && VT.SimpleTy == ElTy && NumElements == nElem) \
443-
return Ty;
441+
#define GET_VT_VECATTR(Ty, Sc, nElem, ElTy) \
442+
if (!Sc && VT.SimpleTy == ElTy && NumElements == nElem) \
443+
return Ty;
444444
#include "llvm/CodeGen/GenVT.inc"
445445
#undef GET_VT_VECATTR
446446

447447
return (MVT::SimpleValueType)(MVT::INVALID_SIMPLE_VALUE_TYPE);
448448
}
449449

450450
static MVT getScalableVectorVT(MVT VT, unsigned NumElements) {
451-
#define GET_VT_VECATTR(Ty, Sc, nElem, ElTy, ElSz) \
452-
if (Sc && VT.SimpleTy == ElTy && NumElements == nElem) \
453-
return Ty;
451+
#define GET_VT_VECATTR(Ty, Sc, nElem, ElTy) \
452+
if (Sc && VT.SimpleTy == ElTy && NumElements == nElem) \
453+
return Ty;
454454
#include "llvm/CodeGen/GenVT.inc"
455455
#undef GET_VT_VECATTR
456456

llvm/utils/TableGen/VTEmitter.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ void VTEmitter::run(raw_ostream &OS) {
115115
}
116116
OS << "#endif\n\n";
117117

118-
OS << "#ifdef GET_VT_VECATTR // (Ty, Sc, nElem, ElTy, ElSz)\n";
118+
OS << "#ifdef GET_VT_VECATTR // (Ty, Sc, nElem, ElTy)\n";
119119
for (const auto *VT : VTsByNumber) {
120120
if (!VT || !VT->getValueAsBit("isVector"))
121121
continue;
@@ -126,8 +126,7 @@ void VTEmitter::run(raw_ostream &OS) {
126126
<< VT->getValueAsString("LLVMName") << ", "
127127
<< VT->getValueAsBit("isScalable") << ", "
128128
<< VT->getValueAsInt("nElem") << ", "
129-
<< ElTy->getName() << ", "
130-
<< ElTy->getValueAsInt("Size") << ")\n";
129+
<< ElTy->getName() << ")\n";
131130
// clang-format on
132131
}
133132
OS << "#endif\n\n";

0 commit comments

Comments
 (0)