From: Daniel Sanders Date: Fri, 5 Apr 2019 20:47:13 +0000 (+0000) Subject: [globalisel] Support 3-type legalForCartesianProduct() X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e38b140d2504c63b907ef628ec127baa78e52f1;p=llvm [globalisel] Support 3-type legalForCartesianProduct() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357815 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h b/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h index b33f3f22c86..734ef30d9d6 100644 --- a/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h +++ b/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h @@ -485,6 +485,14 @@ public: std::initializer_list Types1) { return actionForCartesianProduct(LegalizeAction::Legal, Types0, Types1); } + /// The instruction is legal when type indexes 0, 1, and 2 are both their + /// respective lists. + LegalizeRuleSet &legalForCartesianProduct(std::initializer_list Types0, + std::initializer_list Types1, + std::initializer_list Types2) { + return actionForCartesianProduct(LegalizeAction::Legal, Types0, Types1, + Types2); + } /// The instruction is lowered. LegalizeRuleSet &lower() {