Lines Matching refs:CombinerHelper
45 CombinerHelper::CombinerHelper(GISelChangeObserver &Observer, in CombinerHelper() function in CombinerHelper
54 const TargetLowering &CombinerHelper::getTargetLowering() const { in getTargetLowering()
118 bool CombinerHelper::isLegalOrBeforeLegalizer( in isLegalOrBeforeLegalizer()
123 void CombinerHelper::replaceRegWith(MachineRegisterInfo &MRI, Register FromReg, in replaceRegWith()
135 void CombinerHelper::replaceRegOpWith(MachineRegisterInfo &MRI, in replaceRegOpWith()
146 bool CombinerHelper::tryCombineCopy(MachineInstr &MI) { in tryCombineCopy()
153 bool CombinerHelper::matchCombineCopy(MachineInstr &MI) { in matchCombineCopy()
160 void CombinerHelper::applyCombineCopy(MachineInstr &MI) { in applyCombineCopy()
167 bool CombinerHelper::tryCombineConcatVectors(MachineInstr &MI) { in tryCombineConcatVectors()
177 bool CombinerHelper::matchCombineConcatVectors(MachineInstr &MI, bool &IsUndef, in matchCombineConcatVectors()
222 void CombinerHelper::applyCombineConcatVectors( in applyCombineConcatVectors()
244 bool CombinerHelper::tryCombineShuffleVector(MachineInstr &MI) { in tryCombineShuffleVector()
253 bool CombinerHelper::matchCombineShuffleVector(MachineInstr &MI, in matchCombineShuffleVector()
329 void CombinerHelper::applyCombineShuffleVector(MachineInstr &MI, in applyCombineShuffleVector()
429 bool CombinerHelper::tryCombineExtendingLoads(MachineInstr &MI) { in tryCombineExtendingLoads()
438 bool CombinerHelper::matchCombineExtendingLoads(MachineInstr &MI, in matchCombineExtendingLoads()
516 void CombinerHelper::applyCombineExtendingLoads(MachineInstr &MI, in applyCombineExtendingLoads()
626 bool CombinerHelper::isPredecessor(const MachineInstr &DefMI, in isPredecessor()
642 bool CombinerHelper::dominates(const MachineInstr &DefMI, in dominates()
654 bool CombinerHelper::matchSextTruncSextLoad(MachineInstr &MI) { in matchSextTruncSextLoad()
680 void CombinerHelper::applySextTruncSextLoad(MachineInstr &MI) { in applySextTruncSextLoad()
687 bool CombinerHelper::matchSextInRegOfLoad( in matchSextInRegOfLoad()
718 void CombinerHelper::applySextInRegOfLoad( in applySextInRegOfLoad()
742 bool CombinerHelper::findPostIndexCandidate(MachineInstr &MI, Register &Addr, in findPostIndexCandidate()
810 bool CombinerHelper::findPreIndexCandidate(MachineInstr &MI, Register &Addr, in findPreIndexCandidate()
871 bool CombinerHelper::tryCombineIndexedLoadStore(MachineInstr &MI) { in tryCombineIndexedLoadStore()
880 bool CombinerHelper::matchCombineIndexedLoadStore(MachineInstr &MI, IndexedLoadStoreMatchInfo &Matc… in matchCombineIndexedLoadStore()
901 void CombinerHelper::applyCombineIndexedLoadStore( in applyCombineIndexedLoadStore()
943 bool CombinerHelper::matchCombineDivRem(MachineInstr &MI, in matchCombineDivRem()
1005 void CombinerHelper::applyCombineDivRem(MachineInstr &MI, in applyCombineDivRem()
1037 bool CombinerHelper::matchOptBrCondByInvertingCond(MachineInstr &MI, in matchOptBrCondByInvertingCond()
1071 void CombinerHelper::applyOptBrCondByInvertingCond(MachineInstr &MI, in applyOptBrCondByInvertingCond()
1211 bool CombinerHelper::optimizeMemset(MachineInstr &MI, Register Dst, in optimizeMemset()
1324 bool CombinerHelper::tryEmitMemcpyInline(MachineInstr &MI) { in tryEmitMemcpyInline()
1355 bool CombinerHelper::tryEmitMemcpyInline(MachineInstr &MI, Register Dst, in tryEmitMemcpyInline()
1365 bool CombinerHelper::optimizeMemcpy(MachineInstr &MI, Register Dst, in optimizeMemcpy()
1469 bool CombinerHelper::optimizeMemmove(MachineInstr &MI, Register Dst, in optimizeMemmove()
1574 bool CombinerHelper::tryCombineMemCpyFamily(MachineInstr &MI, unsigned MaxLen) { in tryCombineMemCpyFamily()
1676 bool CombinerHelper::matchCombineConstantFoldFpUnary(MachineInstr &MI, in matchCombineConstantFoldFpUnary()
1685 void CombinerHelper::applyCombineConstantFoldFpUnary(MachineInstr &MI, in applyCombineConstantFoldFpUnary()
1696 bool CombinerHelper::matchPtrAddImmedChain(MachineInstr &MI, in matchPtrAddImmedChain()
1736 void CombinerHelper::applyPtrAddImmedChain(MachineInstr &MI, in applyPtrAddImmedChain()
1748 bool CombinerHelper::matchShiftImmedChain(MachineInstr &MI, in matchShiftImmedChain()
1793 void CombinerHelper::applyShiftImmedChain(MachineInstr &MI, in applyShiftImmedChain()
1826 bool CombinerHelper::matchShiftOfShiftedLogic(MachineInstr &MI, in matchShiftOfShiftedLogic()
1907 void CombinerHelper::applyShiftOfShiftedLogic(MachineInstr &MI, in applyShiftOfShiftedLogic()
1941 bool CombinerHelper::matchCombineMulToShl(MachineInstr &MI, in matchCombineMulToShl()
1953 void CombinerHelper::applyCombineMulToShl(MachineInstr &MI, in applyCombineMulToShl()
1966 bool CombinerHelper::matchCombineShlOfExtend(MachineInstr &MI, in matchCombineShlOfExtend()
2003 void CombinerHelper::applyCombineShlOfExtend(MachineInstr &MI, in applyCombineShlOfExtend()
2017 bool CombinerHelper::matchCombineMergeUnmerge(MachineInstr &MI, in matchCombineMergeUnmerge()
2044 bool CombinerHelper::matchCombineUnmergeMergeToPlainValues( in matchCombineUnmergeMergeToPlainValues()
2071 void CombinerHelper::applyCombineUnmergeMergeToPlainValues( in applyCombineUnmergeMergeToPlainValues()
2094 bool CombinerHelper::matchCombineUnmergeConstant(MachineInstr &MI, in matchCombineUnmergeConstant()
2119 void CombinerHelper::applyCombineUnmergeConstant(MachineInstr &MI, in applyCombineUnmergeConstant()
2135 bool CombinerHelper::matchCombineUnmergeWithDeadLanesToTrunc(MachineInstr &MI) { in matchCombineUnmergeWithDeadLanesToTrunc()
2146 void CombinerHelper::applyCombineUnmergeWithDeadLanesToTrunc(MachineInstr &MI) { in applyCombineUnmergeWithDeadLanesToTrunc()
2167 bool CombinerHelper::matchCombineUnmergeZExtToZExt(MachineInstr &MI) { in matchCombineUnmergeZExtToZExt()
2193 void CombinerHelper::applyCombineUnmergeZExtToZExt(MachineInstr &MI) { in applyCombineUnmergeZExtToZExt()
2227 bool CombinerHelper::matchCombineShiftToUnmerge(MachineInstr &MI, in matchCombineShiftToUnmerge()
2252 void CombinerHelper::applyCombineShiftToUnmerge(MachineInstr &MI, in applyCombineShiftToUnmerge()
2325 bool CombinerHelper::tryCombineShiftToUnmerge(MachineInstr &MI, in tryCombineShiftToUnmerge()
2336 bool CombinerHelper::matchCombineI2PToP2I(MachineInstr &MI, Register &Reg) { in matchCombineI2PToP2I()
2345 void CombinerHelper::applyCombineI2PToP2I(MachineInstr &MI, Register &Reg) { in applyCombineI2PToP2I()
2353 bool CombinerHelper::matchCombineP2IToI2P(MachineInstr &MI, Register &Reg) { in matchCombineP2IToI2P()
2359 void CombinerHelper::applyCombineP2IToI2P(MachineInstr &MI, Register &Reg) { in applyCombineP2IToI2P()
2367 bool CombinerHelper::matchCombineAddP2IToPtrAdd( in matchCombineAddP2IToPtrAdd()
2392 void CombinerHelper::applyCombineAddP2IToPtrAdd( in applyCombineAddP2IToPtrAdd()
2411 bool CombinerHelper::matchCombineConstPtrAddToI2P(MachineInstr &MI, in matchCombineConstPtrAddToI2P()
2429 void CombinerHelper::applyCombineConstPtrAddToI2P(MachineInstr &MI, in applyCombineConstPtrAddToI2P()
2439 bool CombinerHelper::matchCombineAnyExtTrunc(MachineInstr &MI, Register &Reg) { in matchCombineAnyExtTrunc()
2448 bool CombinerHelper::matchCombineZextTrunc(MachineInstr &MI, Register &Reg) { in matchCombineZextTrunc()
2462 bool CombinerHelper::matchCombineExtOfExt( in matchCombineExtOfExt()
2483 void CombinerHelper::applyCombineExtOfExt( in applyCombineExtOfExt()
2514 void CombinerHelper::applyCombineMulByNegativeOne(MachineInstr &MI) { in applyCombineMulByNegativeOne()
2526 bool CombinerHelper::matchCombineFNegOfFNeg(MachineInstr &MI, Register &Reg) { in matchCombineFNegOfFNeg()
2532 bool CombinerHelper::matchCombineFAbsOfFAbs(MachineInstr &MI, Register &Src) { in matchCombineFAbsOfFAbs()
2539 bool CombinerHelper::matchCombineTruncOfExt( in matchCombineTruncOfExt()
2553 void CombinerHelper::applyCombineTruncOfExt( in applyCombineTruncOfExt()
2574 bool CombinerHelper::matchCombineTruncOfShl( in matchCombineTruncOfShl()
2598 void CombinerHelper::applyCombineTruncOfShl( in applyCombineTruncOfShl()
2614 bool CombinerHelper::matchAnyExplicitUseIsUndef(MachineInstr &MI) { in matchAnyExplicitUseIsUndef()
2621 bool CombinerHelper::matchAllExplicitUsesAreUndef(MachineInstr &MI) { in matchAllExplicitUsesAreUndef()
2628 bool CombinerHelper::matchUndefShuffleVectorMask(MachineInstr &MI) { in matchUndefShuffleVectorMask()
2634 bool CombinerHelper::matchUndefStore(MachineInstr &MI) { in matchUndefStore()
2640 bool CombinerHelper::matchUndefSelectCmp(MachineInstr &MI) { in matchUndefSelectCmp()
2646 bool CombinerHelper::matchConstantSelectCmp(MachineInstr &MI, unsigned &OpIdx) { in matchConstantSelectCmp()
2656 bool CombinerHelper::eraseInst(MachineInstr &MI) { in eraseInst()
2661 bool CombinerHelper::matchEqualDefs(const MachineOperand &MOP1, in matchEqualDefs()
2733 bool CombinerHelper::matchConstantOp(const MachineOperand &MOP, int64_t C) { in matchConstantOp()
2741 bool CombinerHelper::replaceSingleDefInstWithOperand(MachineInstr &MI, in replaceSingleDefInstWithOperand()
2752 bool CombinerHelper::replaceSingleDefInstWithReg(MachineInstr &MI, in replaceSingleDefInstWithReg()
2762 bool CombinerHelper::matchSelectSameVal(MachineInstr &MI) { in matchSelectSameVal()
2770 bool CombinerHelper::matchBinOpSameVal(MachineInstr &MI) { in matchBinOpSameVal()
2776 bool CombinerHelper::matchOperandIsZero(MachineInstr &MI, unsigned OpIdx) { in matchOperandIsZero()
2782 bool CombinerHelper::matchOperandIsUndef(MachineInstr &MI, unsigned OpIdx) { in matchOperandIsUndef()
2788 bool CombinerHelper::matchOperandIsKnownToBeAPowerOfTwo(MachineInstr &MI, in matchOperandIsKnownToBeAPowerOfTwo()
2794 bool CombinerHelper::replaceInstWithFConstant(MachineInstr &MI, double C) { in replaceInstWithFConstant()
2802 bool CombinerHelper::replaceInstWithConstant(MachineInstr &MI, int64_t C) { in replaceInstWithConstant()
2810 bool CombinerHelper::replaceInstWithConstant(MachineInstr &MI, APInt C) { in replaceInstWithConstant()
2818 bool CombinerHelper::replaceInstWithUndef(MachineInstr &MI) { in replaceInstWithUndef()
2826 bool CombinerHelper::matchSimplifyAddToSub( in matchSimplifyAddToSub()
2846 bool CombinerHelper::matchCombineInsertVecElts( in matchCombineInsertVecElts()
2887 void CombinerHelper::applyCombineInsertVecElts( in applyCombineInsertVecElts()
2906 void CombinerHelper::applySimplifyAddToSub( in applySimplifyAddToSub()
2915 bool CombinerHelper::matchHoistLogicOpWithSameOpcodeHands( in matchHoistLogicOpWithSameOpcodeHands()
3006 void CombinerHelper::applyBuildInstructionSteps( in applyBuildInstructionSteps()
3021 bool CombinerHelper::matchAshrShlToSextInreg( in matchAshrShlToSextInreg()
3039 void CombinerHelper::applyAshShlToSextInreg( in applyAshShlToSextInreg()
3052 bool CombinerHelper::matchOverlappingAnd( in matchOverlappingAnd()
3078 bool CombinerHelper::matchRedundantAnd(MachineInstr &MI, in matchRedundantAnd()
3133 bool CombinerHelper::matchRedundantOr(MachineInstr &MI, Register &Replacement) { in matchRedundantOr()
3179 bool CombinerHelper::matchRedundantSExtInReg(MachineInstr &MI) { in matchRedundantSExtInReg()
3194 bool CombinerHelper::matchNotCmp(MachineInstr &MI, in matchNotCmp()
3271 void CombinerHelper::applyNotCmp(MachineInstr &MI, in applyNotCmp()
3303 bool CombinerHelper::matchXorOfAndWithSameReg( in matchXorOfAndWithSameReg()
3334 void CombinerHelper::applyXorOfAndWithSameReg( in applyXorOfAndWithSameReg()
3348 bool CombinerHelper::matchPtrAddZero(MachineInstr &MI) { in matchPtrAddZero()
3366 void CombinerHelper::applyPtrAddZero(MachineInstr &MI) { in applyPtrAddZero()
3374 void CombinerHelper::applySimplifyURemByPow2(MachineInstr &MI) { in applySimplifyURemByPow2()
3389 CombinerHelper::findCandidatesForLoadOrCombine(const MachineInstr *Root) const { in findCandidatesForLoadOrCombine()
3487 CombinerHelper::findLoadOffsetsForLoadOrCombine( in findLoadOffsetsForLoadOrCombine()
3620 bool CombinerHelper::matchLoadOrCombine( in matchLoadOrCombine()
3735 bool CombinerHelper::matchExtendThroughPhis(MachineInstr &MI, in matchExtendThroughPhis()
3790 void CombinerHelper::applyExtendThroughPhis(MachineInstr &MI, in applyExtendThroughPhis()
3836 bool CombinerHelper::matchExtractVecEltBuildVec(MachineInstr &MI, in matchExtractVecEltBuildVec()
3873 void CombinerHelper::applyExtractVecEltBuildVec(MachineInstr &MI, in applyExtractVecEltBuildVec()
3891 bool CombinerHelper::matchExtractAllEltsFromBuildVector( in matchExtractAllEltsFromBuildVector()
3934 void CombinerHelper::applyExtractAllEltsFromBuildVector( in applyExtractAllEltsFromBuildVector()
3946 void CombinerHelper::applyBuildFn( in applyBuildFn()
3953 void CombinerHelper::applyBuildFnNoErase( in applyBuildFnNoErase()
3960 bool CombinerHelper::matchFunnelShiftToRotate(MachineInstr &MI) { in matchFunnelShiftToRotate()
3972 void CombinerHelper::applyFunnelShiftToRotate(MachineInstr &MI) { in applyFunnelShiftToRotate()
3984 bool CombinerHelper::matchRotateOutOfRange(MachineInstr &MI) { in matchRotateOutOfRange()
3999 void CombinerHelper::applyRotateOutOfRange(MachineInstr &MI) { in applyRotateOutOfRange()
4014 bool CombinerHelper::matchICmpToTrueFalseKnownBits(MachineInstr &MI, in matchICmpToTrueFalseKnownBits()
4068 bool CombinerHelper::matchBitfieldExtractFromSExtInReg( in matchBitfieldExtractFromSExtInReg()
4097 bool CombinerHelper::matchBitfieldExtractFromAnd( in matchBitfieldExtractFromAnd()
4133 bool CombinerHelper::reassociationCanBreakAddressingModePattern( in reassociationCanBreakAddressingModePattern()
4201 bool CombinerHelper::matchReassocPtrAdd( in matchReassocPtrAdd()
4257 bool CombinerHelper::matchConstantFold(MachineInstr &MI, APInt &MatchInfo) { in matchConstantFold()
4267 bool CombinerHelper::tryCombine(MachineInstr &MI) { in tryCombine()