Home
last modified time | relevance | path

Searched refs:CreateBinOp (Results 1 – 25 of 41) sorted by relevance

12

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp367 Value *NewShift1 = Builder.CreateBinOp(ShiftOpcode, X, ShiftSumC); in foldShiftOfShiftedLogic()
368 Value *NewShift2 = Builder.CreateBinOp(ShiftOpcode, Y, I.getOperand(1)); in foldShiftOfShiftedLogic()
409 I.getOpcode(), Builder.CreateBinOp(I.getOpcode(), Op0, C), A); in commonShiftTransforms()
709 Value *NSh = Builder.CreateBinOp(I.getOpcode(), TrOp, ShAmt, I.getName()); in FoldShiftByConstant()
750 Value *X = Builder.CreateBinOp(Op0BO->getOpcode(), YS, V1, in FoldShiftByConstant()
782 Value *X = Builder.CreateBinOp(Op0BO->getOpcode(), V1, YS, in FoldShiftByConstant()
817 Builder.CreateBinOp(I.getOpcode(), Op0BO->getOperand(0), Op1); in FoldShiftByConstant()
861 Builder.CreateBinOp(I.getOpcode(), FalseVal, Op1); in FoldShiftByConstant()
862 Value *NewOp = Builder.CreateBinOp(TBO->getOpcode(), NewShift, in FoldShiftByConstant()
880 Builder.CreateBinOp(I.getOpcode(), TrueVal, Op1); in FoldShiftByConstant()
[all …]
H A DInstructionCombining.cpp624 V = Builder.CreateBinOp(TopLevelOpcode, B, D, RHS->getName()); in tryFactorization()
626 SimplifiedInst = Builder.CreateBinOp(InnerOpcode, A, V); in tryFactorization()
644 V = Builder.CreateBinOp(TopLevelOpcode, A, C, LHS->getName()); in tryFactorization()
646 SimplifiedInst = Builder.CreateBinOp(InnerOpcode, V, B); in tryFactorization()
755 C = Builder.CreateBinOp(InnerOpcode, L, R); in SimplifyUsingDistributiveLaws()
764 C = Builder.CreateBinOp(TopLevelOpcode, B, C); in SimplifyUsingDistributiveLaws()
773 C = Builder.CreateBinOp(TopLevelOpcode, A, C); in SimplifyUsingDistributiveLaws()
794 A = Builder.CreateBinOp(InnerOpcode, L, R); in SimplifyUsingDistributiveLaws()
803 A = Builder.CreateBinOp(TopLevelOpcode, A, C); in SimplifyUsingDistributiveLaws()
812 A = Builder.CreateBinOp(TopLevelOpcode, A, B); in SimplifyUsingDistributiveLaws()
[all …]
H A DInstCombineMulDivRem.cpp292 Value *Rem = Builder.CreateBinOp(RemOpc, X, DivOp1); in visitMul()
419 Value *XY = Builder.CreateBinOp(Opcode, X, Y); in foldFPSignBitOps()
977 Value *NarrowOp = Builder.CreateBinOp(Opcode, X, Y); in narrowUDivURem()
993 Value *NarrowOp = isa<Constant>(D) ? Builder.CreateBinOp(Opcode, X, TruncC) in narrowUDivURem()
994 : Builder.CreateBinOp(Opcode, TruncC, X); in narrowUDivURem()
H A DInstCombineAndOrXor.cpp111 Value *BinOp = Builder.CreateBinOp(I.getOpcode(), NewLHS, NewRHS); in SimplifyBSwap()
1202 return Builder.CreateBinOp(Logic.getOpcode(), Cmp0, SubstituteCmp); in foldAndOrOfICmpsWithConstEq()
1544 Value *AndOr = Builder.CreateBinOp(Opcode, A, B, I.getName() + ".demorgan"); in matchDeMorgansLaws()
1588 Value *NewOp = Builder.CreateBinOp(LogicOpc, X, TruncC); in foldLogicCastConstant()
1598 Value *NewOp = Builder.CreateBinOp(LogicOpc, X, TruncC); in foldLogicCastConstant()
1641 Value *NewOp = Builder.CreateBinOp(LogicOpc, Cast0Src, Cast1Src, in foldCastedBitwiseLogic()
1776 Value *NewBO = Opc == Instruction::Sub ? Builder.CreateBinOp(Opc, NewC, X) in narrowMaskedBinOp()
1777 : Builder.CreateBinOp(Opc, X, NewC); in narrowMaskedBinOp()
1929 BinOp = Builder.CreateBinOp(Op0I->getOpcode(), X, TruncC1); in visitAnd()
1931 BinOp = Builder.CreateBinOp(Op0I->getOpcode(), TruncC1, X); in visitAnd()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUAtomicOptimizer.cpp257 return B.CreateBinOp(Instruction::Add, LHS, RHS); in buildNonAtomicBinOp()
259 return B.CreateBinOp(Instruction::Sub, LHS, RHS); in buildNonAtomicBinOp()
261 return B.CreateBinOp(Instruction::And, LHS, RHS); in buildNonAtomicBinOp()
263 return B.CreateBinOp(Instruction::Or, LHS, RHS); in buildNonAtomicBinOp()
265 return B.CreateBinOp(Instruction::Xor, LHS, RHS); in buildNonAtomicBinOp()
H A DAMDGPUCodeGenPrepare.cpp340 ExtRes = Builder.CreateBinOp(I.getOpcode(), ExtOp0, ExtOp1); in promoteUniformOpToI32()
1224 NewElt = Builder.CreateBinOp(Opc, NumEltN, DenEltN); in visitBinaryOperator()
1233 NewElt = Builder.CreateBinOp(Opc, NumEltN, DenEltN); in visitBinaryOperator()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DReplaceConstant.cpp49 Builder.CreateBinOp((Instruction::BinaryOps)OpCode, CE->getOperand(0), in createReplacementInstr()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp1623 return B.CreateBinOp(cast<BinaryOperator>(T)->getOpcode(), in setupPreSimplifier()
1658 B.CreateBinOp(Op, X, Z), in setupPreSimplifier()
1659 B.CreateBinOp(Op, Y, Z)); in setupPreSimplifier()
1666 B.CreateBinOp(Op, X, Y), in setupPreSimplifier()
1667 B.CreateBinOp(Op, X, Z)); in setupPreSimplifier()
1720 return B.CreateBinOp(BitOp->getOpcode(), in setupPreSimplifier()
1748 return B.CreateBinOp(BitOp2->getOpcode(), X, in setupPreSimplifier()
1749 B.CreateBinOp(BitOp1->getOpcode(), CA, CB)); in setupPreSimplifier()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DExpandReductions.cpp133 Rdx = Builder.CreateBinOp((Instruction::BinaryOps)getOpcode(ID), in expandReductions()
H A DExpandVectorPredication.cpp245 Value *NewBinOp = Builder.CreateBinOp(OC, Op0, Op1, VPI.getName()); in expandPredicationInBinaryOperator()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DIRBuilderFolder.h58 virtual Value *CreateBinOp(Instruction::BinaryOps Opc,
H A DConstantFolder.h118 Constant *CreateBinOp(Instruction::BinaryOps Opc, in CreateBinOp() function
H A DNoFolder.h147 Instruction *CreateBinOp(Instruction::BinaryOps Opc, in CreateBinOp() function
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp436 Builder.CreateBinOp(cast<BinaryOperator>(&I)->getOpcode(), V0, V1); in foldExtExtBinop()
659 : Builder.CreateBinOp((Instruction::BinaryOps)Opcode, V0, V1); in scalarizeBinopOrCmp()
755 Value *VecLogic = Builder.CreateBinOp(cast<BinaryOperator>(I).getOpcode(), in foldExtractedCmps()
H A DLoopVectorize.cpp2298 Value *Mul = Builder.CreateBinOp(MulOp, Step, RuntimeVF); in createVectorIntOrFpInductionPHI()
2325 Builder.CreateBinOp(AddOp, LastInduction, SplatVF, "step.add")); in createVectorIntOrFpInductionPHI()
2547 return Builder.CreateBinOp(BinOp, Val, MulOp, "induction"); in getStepVector()
2601 auto *Mul = Builder.CreateBinOp(MulOp, InitVec, SplatStep); in buildScalarSteps()
2602 auto *Add = Builder.CreateBinOp(AddOp, SplatIV, Mul); in buildScalarSteps()
2615 Value *StartIdx = Builder.CreateBinOp( in buildScalarSteps()
2622 auto *Mul = Builder.CreateBinOp(MulOp, StartIdx, Step); in buildScalarSteps()
2623 auto *Add = Builder.CreateBinOp(AddOp, ScalarIV, Mul); in buildScalarSteps()
2770 ? Builder.CreateBinOp(Instruction::And, ShuffledMask, in vectorizeInterleaveGroup()
3424 return B.CreateBinOp(InductionBinOp->getOpcode(), StartValue, MulExp, in emitTransformedIndex()
[all …]
H A DVPlan.cpp578 Value *V = Builder.CreateBinOp((Instruction::BinaryOps)getOpcode(), A, B); in generateInstruction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DCorrelatedValuePropagation.cpp529 B.CreateBinOp(Opcode, WO->getLHS(), WO->getRHS(), WO->getName()); in processOverflowIntrinsic()
713 auto *BO = B.CreateBinOp(Instr->getOpcode(), LHS, RHS, Instr->getName()); in narrowSDivOrSRem()
757 auto *BO = B.CreateBinOp(Instr->getOpcode(), LHS, RHS, Instr->getName()); in processUDivOrURem()
H A DFloat2Int.cpp496 NewV = IRB.CreateBinOp(mapBinOpcode(I->getOpcode()), in convert()
H A DScalarizer.cpp154 return Builder.CreateBinOp(BO.getOpcode(), Op0, Op1, Name); in operator ()()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVPTXGenericToNVVM.cpp301 return Builder.CreateBinOp(Instruction::BinaryOps(C->getOpcode()), in remapConstantExpr()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/AggressiveInstCombine/
H A DTruncInstCombine.cpp362 Res = Builder.CreateBinOp((Instruction::BinaryOps)Opc, LHS, RHS); in ReduceExpressionDag()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DFlattenCFG.cpp496 Value *NC = Builder.CreateBinOp(CombineOp, CInst1, CInst2); in MergeIfRegion()
H A DLoopUtils.cpp961 Result = Builder.CreateBinOp((Instruction::BinaryOps)Op, Result, Ext, in getOrderedReduction()
1000 TmpVec = Builder.CreateBinOp((Instruction::BinaryOps)Op, TmpVec, Shuf, in getShuffleReduction()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DTargetFolder.h112 Constant *CreateBinOp(Instruction::BinaryOps Opc, in CreateBinOp() function
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGAtomic.cpp685 Result = CGF.Builder.CreateBinOp((llvm::Instruction::BinaryOps)PostOp, RMWI, in EmitAtomicOp()
1270 ResVal = Builder.CreateBinOp(PostOp, ResVal, LoadVal1); in EmitAtomicExpr()

12