[llvm] 71a5b37 - [CodeGenTypes] Remove unused ElSz argument from generated GET_VT_VECATTR (#95258)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 13 02:04:08 PDT 2024
Author: Jay Foad
Date: 2024-06-13T10:04:04+01:00
New Revision: 71a5b37cc08b25e0e207296181c2c15e8927595e
URL: https://github.com/llvm/llvm-project/commit/71a5b37cc08b25e0e207296181c2c15e8927595e
DIFF: https://github.com/llvm/llvm-project/commit/71a5b37cc08b25e0e207296181c2c15e8927595e.diff
LOG: [CodeGenTypes] Remove unused ElSz argument from generated GET_VT_VECATTR (#95258)
Added:
Modified:
llvm/include/llvm/CodeGenTypes/MachineValueType.h
llvm/utils/TableGen/VTEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGenTypes/MachineValueType.h b/llvm/include/llvm/CodeGenTypes/MachineValueType.h
index a646f683cb91c..7e7608c34fb70 100644
--- a/llvm/include/llvm/CodeGenTypes/MachineValueType.h
+++ b/llvm/include/llvm/CodeGenTypes/MachineValueType.h
@@ -438,9 +438,9 @@ namespace llvm {
}
static MVT getVectorVT(MVT VT, unsigned NumElements) {
-#define GET_VT_VECATTR(Ty, Sc, nElem, ElTy, ElSz) \
- if (!Sc && VT.SimpleTy == ElTy && NumElements == nElem) \
- return Ty;
+#define GET_VT_VECATTR(Ty, Sc, nElem, ElTy) \
+ if (!Sc && VT.SimpleTy == ElTy && NumElements == nElem) \
+ return Ty;
#include "llvm/CodeGen/GenVT.inc"
#undef GET_VT_VECATTR
@@ -448,9 +448,9 @@ namespace llvm {
}
static MVT getScalableVectorVT(MVT VT, unsigned NumElements) {
-#define GET_VT_VECATTR(Ty, Sc, nElem, ElTy, ElSz) \
- if (Sc && VT.SimpleTy == ElTy && NumElements == nElem) \
- return Ty;
+#define GET_VT_VECATTR(Ty, Sc, nElem, ElTy) \
+ if (Sc && VT.SimpleTy == ElTy && NumElements == nElem) \
+ return Ty;
#include "llvm/CodeGen/GenVT.inc"
#undef GET_VT_VECATTR
diff --git a/llvm/utils/TableGen/VTEmitter.cpp b/llvm/utils/TableGen/VTEmitter.cpp
index ddee8fffc10c8..3187548a29704 100644
--- a/llvm/utils/TableGen/VTEmitter.cpp
+++ b/llvm/utils/TableGen/VTEmitter.cpp
@@ -115,7 +115,7 @@ void VTEmitter::run(raw_ostream &OS) {
}
OS << "#endif\n\n";
- OS << "#ifdef GET_VT_VECATTR // (Ty, Sc, nElem, ElTy, ElSz)\n";
+ OS << "#ifdef GET_VT_VECATTR // (Ty, Sc, nElem, ElTy)\n";
for (const auto *VT : VTsByNumber) {
if (!VT || !VT->getValueAsBit("isVector"))
continue;
@@ -126,8 +126,7 @@ void VTEmitter::run(raw_ostream &OS) {
<< VT->getValueAsString("LLVMName") << ", "
<< VT->getValueAsBit("isScalable") << ", "
<< VT->getValueAsInt("nElem") << ", "
- << ElTy->getName() << ", "
- << ElTy->getValueAsInt("Size") << ")\n";
+ << ElTy->getName() << ")\n";
// clang-format on
}
OS << "#endif\n\n";
More information about the llvm-commits
mailing list