[llvm] [ValueTypes][NFC] Generate EVT::getTypeForEVT from GenVT.inc (PR #96608)

Kito Cheng via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 25 06:23:44 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");
----------------
kito-cheng wrote:

Extract this into VTtoGetLLVMTyString now :)

https://github.com/llvm/llvm-project/pull/96608


More information about the llvm-commits mailing list