[llvm] [CodeGenTypes] Remove unused ElSz argument from generated GET_VT_VECATTR (PR #95258)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 12 07:57:20 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 98174fb6ec9784d9eb7be313ee1317ca6e703d90 fe467d49f883cc18024a9eef1492eedf00e0561e -- llvm/include/llvm/CodeGenTypes/MachineValueType.h llvm/utils/TableGen/VTEmitter.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/CodeGenTypes/MachineValueType.h b/llvm/include/llvm/CodeGenTypes/MachineValueType.h
index 4e5e63cfb4..d3b2380453 100644
--- a/llvm/include/llvm/CodeGenTypes/MachineValueType.h
+++ b/llvm/include/llvm/CodeGenTypes/MachineValueType.h
@@ -256,9 +256,9 @@ namespace llvm {
default:
llvm_unreachable("Not a vector MVT!");
-#define GET_VT_VECATTR(Ty, Sc, nElem, ElTy) \
- case Ty: \
- return ElTy;
+#define GET_VT_VECATTR(Ty, Sc, nElem, ElTy) \
+ case Ty: \
+ return ElTy;
#include "llvm/CodeGen/GenVT.inc"
#undef GET_VT_VECATTR
}
@@ -270,9 +270,9 @@ namespace llvm {
default:
llvm_unreachable("Not a vector MVT!");
-#define GET_VT_VECATTR(Ty, Sc, nElem, ElTy) \
- case Ty: \
- return nElem;
+#define GET_VT_VECATTR(Ty, Sc, nElem, ElTy) \
+ case Ty: \
+ return nElem;
#include "llvm/CodeGen/GenVT.inc"
#undef GET_VT_VECATTR
}
@@ -440,9 +440,9 @@ namespace llvm {
}
static MVT getVectorVT(MVT VT, unsigned NumElements) {
-#define GET_VT_VECATTR(Ty, Sc, nElem, ElTy) \
- 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
@@ -450,9 +450,9 @@ namespace llvm {
}
static MVT getScalableVectorVT(MVT VT, unsigned NumElements) {
-#define GET_VT_VECATTR(Ty, Sc, nElem, ElTy) \
- 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
``````````
</details>
https://github.com/llvm/llvm-project/pull/95258
More information about the llvm-commits
mailing list