[llvm] [TableGen] Refactor Intrinsics record (PR #106986)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 03:49:54 PDT 2024


================
@@ -96,17 +96,18 @@ CodeGenIntrinsic::CodeGenIntrinsic(const Record *R,
                                   TargetPrefix + ".'!");
   }
 
-  if (auto *Types = R->getValue("Types")) {
-    auto *TypeList = cast<ListInit>(Types->getValue());
-    isOverloaded = R->getValueAsBit("isOverloaded");
+  const Record *TypeInfo = R->getValueAsDef("TypeInfo");
+  assert(TypeInfo->isSubClassOf("TypeInfoGen"));
----------------
arsenm wrote:

If this isn't verified in some parser context, this should be a fatal error instead 

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


More information about the llvm-commits mailing list