[llvm] [GISel][AArch64] Allow PatLeafs to be imported in GISel which were previously causing warnings (PR #140935)

Pierre van Houtryve via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 5 02:05:25 PDT 2025


================
@@ -33,6 +33,8 @@ Error failUnsupported(const Twine &Reason) {
 std::string getEnumNameForPredicate(const TreePredicateFn &Predicate) {
   if (Predicate.hasGISelPredicateCode())
     return "GICXXPred_MI_" + Predicate.getFnName();
+  if (Predicate.hasGISelLeafPredicateCode())
+    return "GICXXPred_MO_" + Predicate.getFnName();
----------------
Pierre-vh wrote:

Is it possible for both cases to be true somehow?

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


More information about the llvm-commits mailing list