[llvm] [X86][GlobalISel] Support fp80 for G_FPTRUNC and G_FPEXT (PR #141611)

Evgenii Kudriashov via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 24 02:33:02 PDT 2026


================
@@ -685,6 +685,15 @@ class LegalizeRuleSet {
                     LegalityPredicates::typePairAndMemDescInSet(
                         typeIdx(0), typeIdx(1), /*MMOIdx*/ 0, TypesAndMemDesc));
   }
+  LegalizeRuleSet &legalForTypesWithMemDesc(
+      bool Pred, std::initializer_list<LegalityPredicates::TypePairAndMemDesc>
+                     TypesAndMemDesc) {
+    if (!Pred)
+      return *this;
+    return actionIf(LegalizeAction::Legal,
+                    LegalityPredicates::typePairAndMemDescInSet(
+                        typeIdx(0), typeIdx(1), /*MMOIdx*/ 0, TypesAndMemDesc));
----------------
e-kud wrote:

I always forget whether it should be or not, looked around and there was none, added anyway.

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


More information about the llvm-commits mailing list