Lines Matching refs:buildInstr
1296 auto MIB = Builder.buildInstr(NewOpcode); in applyCombineIndexedLoadStore()
1408 Builder.buildInstr(IsSigned ? TargetOpcode::G_SDIVREM in applyCombineDivRem()
1796 Builder.buildInstr(Opcode, {DestType}, {Shift1Base, Const}).getReg(0); in applyShiftOfShiftedLogic()
1807 .buildInstr(Opcode, {DestType}, in applyShiftOfShiftedLogic()
1812 Builder.buildInstr(MatchInfo.Logic->getOpcode(), {Dest}, {Shift1, Shift2}); in applyShiftOfShiftedLogic()
1850 B.buildInstr(SrcDef->getOpcode(), {DstReg}, {S1, S2}); in matchCommuteShift()
2449 Builder.buildInstr(SrcExtOp, {DstReg}, {Reg}); in applyCombineExtOfExt()
2483 Builder.buildInstr(SrcExtOp, {DstReg}, {SrcReg}); in applyCombineTruncOfExt()
2583 .buildInstr(ShiftMI->getOpcode(), {NewShiftTy}, {ShiftSrc, ShiftAmt}) in applyCombineTruncOfShift()
2818 Builder.buildInstr( in applyFunnelShiftConstantModulo()
3081 MachineInstrBuilder Instr = Builder.buildInstr(InstrToBuild.Opcode); in applyBuildInstructionSteps()
3523 FoldTrue = Builder.buildInstr(BinOpcode, {Ty}, {SelectTrue, RHS}).getReg(0); in applyFoldBinOpIntoSelect()
3525 Builder.buildInstr(BinOpcode, {Ty}, {SelectFalse, RHS}).getReg(0); in applyFoldBinOpIntoSelect()
3527 FoldTrue = Builder.buildInstr(BinOpcode, {Ty}, {LHS, SelectTrue}).getReg(0); in applyFoldBinOpIntoSelect()
3529 Builder.buildInstr(BinOpcode, {Ty}, {LHS, SelectFalse}).getReg(0); in applyFoldBinOpIntoSelect()
4147 B.buildInstr(FshOpc, {Dst}, {ShlSrc, LShrSrc, Amt}); in matchOrShiftToFunnelShift()
4298 MatchInfo = [=](MachineIRBuilder &B) { B.buildInstr(Op, {Dst}, {LHS}); }; in matchICmpToLHSKnownBits()
4397 B.buildInstr(TargetOpcode::G_UBFX, {Dst}, {ShiftSrc, LSBCst, WidthCst}); in matchBitfieldExtractFromAnd()
4446 B.buildInstr(ExtrOpcode, {Dst}, {ShlSrc, PosCst, WidthCst}); in matchBitfieldExtractFromShr()
4503 B.buildInstr(TargetOpcode::G_UBFX, {Dst}, {AndSrc, PosCst, WidthCst}); in matchBitfieldExtractFromShrAnd()
4711 auto NewCst = B.buildInstr(Opc, {OpRHSTy}, {OpLHSRHS, OpRHS}); in tryReassocBinOp()
4712 B.buildInstr(Opc, {DstReg}, {OpLHSLHS, NewCst}); in tryReassocBinOp()
4720 auto NewLHSLHS = B.buildInstr(Opc, {OpRHSTy}, {OpLHSLHS, OpRHS}); in tryReassocBinOp()
4721 B.buildInstr(Opc, {DstReg}, {NewLHSLHS, OpLHSRHS}); in tryReassocBinOp()
4886 Builder.buildInstr(LHSOpc, {NarrowTy}, {NarrowLHS, NarrowRHS}); in matchNarrowBinopFeedingAnd()
5468 B.buildInstr(PreferredFusedOpcode, {MI.getOperand(0).getReg()}, in matchCombineFAddFMulToFMadOrFMA()
5479 B.buildInstr(PreferredFusedOpcode, {MI.getOperand(0).getReg()}, in matchCombineFAddFMulToFMadOrFMA()
5524 B.buildInstr(PreferredFusedOpcode, {MI.getOperand(0).getReg()}, in matchCombineFAddFpExtFMulToFMadOrFMA()
5539 B.buildInstr(PreferredFusedOpcode, {MI.getOperand(0).getReg()}, in matchCombineFAddFpExtFMulToFMadOrFMA()
5603 B.buildInstr(PreferredFusedOpcode, {InnerFMA}, {U, V, Z}); in matchCombineFAddFMAFMulToFMadOrFMA()
5604 B.buildInstr(PreferredFusedOpcode, {MI.getOperand(0).getReg()}, in matchCombineFAddFMAFMulToFMadOrFMA()
5648 B.buildInstr(PreferredFusedOpcode, {DstType}, {FpExtU, FpExtV, Z}) in matchCombineFAddFpExtFMulToFMadOrFMAAggressive()
5650 B.buildInstr(PreferredFusedOpcode, {MI.getOperand(0).getReg()}, in matchCombineFAddFpExtFMulToFMadOrFMAAggressive()
5770 B.buildInstr(PreferredFusedOpcode, {MI.getOperand(0).getReg()}, in matchCombineFSubFMulToFMadOrFMA()
5782 B.buildInstr(PreferredFusedOpcode, {MI.getOperand(0).getReg()}, in matchCombineFSubFMulToFMadOrFMA()
5816 B.buildInstr(PreferredFusedOpcode, {MI.getOperand(0).getReg()}, in matchCombineFSubFNegFMulToFMadOrFMA()
5828 B.buildInstr(PreferredFusedOpcode, {MI.getOperand(0).getReg()}, in matchCombineFSubFNegFMulToFMadOrFMA()
5864 B.buildInstr(PreferredFusedOpcode, {MI.getOperand(0).getReg()}, in matchCombineFSubFpExtFMulToFMadOrFMA()
5880 B.buildInstr(PreferredFusedOpcode, {MI.getOperand(0).getReg()}, in matchCombineFSubFpExtFMulToFMadOrFMA()
5909 B.buildInstr(PreferredFusedOpcode, {Dst}, {FpExtX, FpExtY, Z}); in matchCombineFSubFpExtFNegFMulToFMadOrFMA()
6175 B.buildInstr(Opc, {Dst}, {CmpLHS, CmpRHS}); in matchFPSelectToMinMax()