From: Matt Arsenault Date: Fri, 17 May 2019 11:49:41 +0000 (+0000) Subject: GlobalISel: Fix missing version of customFor X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6881663f5c6eea2e2e82669fbfe0a0d7b7fe734;p=llvm GlobalISel: Fix missing version of customFor Add the list of pairs analagous, like legalFor and customFor has. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361020 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h b/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h index d38dbf9e0d1..7b7c899e009 100644 --- a/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h +++ b/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h @@ -650,6 +650,13 @@ public: LegalizeRuleSet &customFor(std::initializer_list Types) { return actionFor(LegalizeAction::Custom, Types); } + + /// The instruction is custom when type indexes 0 and 1 is any type pair in the + /// given list. + LegalizeRuleSet &customFor(std::initializer_list> Types) { + return actionFor(LegalizeAction::Custom, Types); + } + LegalizeRuleSet &customForCartesianProduct(std::initializer_list Types) { return actionForCartesianProduct(LegalizeAction::Custom, Types); }