[llvm] [ValueTypes][NFC] Generate EVT::getTypeForEVT from GenVT.inc (PR #96608)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 25 05:50:13 PDT 2024
================
@@ -130,6 +130,61 @@ void VTEmitter::run(raw_ostream &OS) {
// clang-format on
}
OS << "#endif\n\n";
+
+ OS << "#ifdef GET_VT_EVT\n";
+ for (const auto *VT : VTsByNumber) {
+ if (!VT)
+ continue;
+ bool IsInteger = VT->getValueAsBit("isInteger");
+ bool IsVector = VT->getValueAsBit("isVector");
+ bool IsFP = VT->getValueAsBit("isFP");
+
+ if (!(IsInteger || IsVector || IsFP))
----------------
arsenm wrote:
demorgan this
https://github.com/llvm/llvm-project/pull/96608
More information about the llvm-commits
mailing list