[llvm] [GISel][AArch64] Allow PatLeafs to be imported in GISel which were previously causing warnings (PR #140935)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 5 06:17:45 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();
----------------
jyli0116 wrote:
It is possible if both fields are assigned values in a PatLeaf. I'll add in a check against that to prevent it from happening
https://github.com/llvm/llvm-project/pull/140935
More information about the llvm-commits
mailing list