From: Matt Arsenault Date: Thu, 30 Jan 2020 23:05:12 +0000 (-0500) Subject: GlobalISel: Make LegalizerHelper primitives public X-Git-Tag: llvmorg-12-init~15684 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc1cffbe097997da21ad6860b371dddbc922f228;p=platform%2Fupstream%2Fllvm.git GlobalISel: Make LegalizerHelper primitives public I want to re-use widenScalarDst/moreElementsVectorDst directly. --- diff --git a/llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h b/llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h index 6dcb43d..0ef9a71 100644 --- a/llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h +++ b/llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h @@ -95,7 +95,6 @@ public: /// Expose LegalizerInfo so the clients can re-use. const LegalizerInfo &getLegalizerInfo() const { return LI; } -private: /// Legalize a single operand \p OpIdx of the machine instruction \p MI as a /// Use by extending the operand's type to \p WideTy using the specified \p /// ExtOpcode for the extension instruction, and replacing the vreg of the @@ -129,6 +128,7 @@ private: /// original vector type, and replacing the vreg of the operand in place. void moreElementsVectorSrc(MachineInstr &MI, LLT MoreTy, unsigned OpIdx); +private: LegalizeResult widenScalarMergeValues(MachineInstr &MI, unsigned TypeIdx, LLT WideTy); LegalizeResult