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

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 07:03:31 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"));
----------------
jurahul wrote:

Done.

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


More information about the llvm-commits mailing list