Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp358 Value *NewShift1 = Builder.CreateBinOp(ShiftOpcode, X, ShiftSumC); in foldShiftOfShiftedLogic()
359 Value *NewShift2 = Builder.CreateBinOp(ShiftOpcode, Y, I.getOperand(1)); in foldShiftOfShiftedLogic()
400 I.getOpcode(), Builder.CreateBinOp(I.getOpcode(), Op0, C), A); in commonShiftTransforms()
727 Value *NSh = Builder.CreateBinOp(I.getOpcode(), TrOp, ShAmt, I.getName()); in FoldShiftByConstant()
777 Value *X = Builder.CreateBinOp(Op0BO->getOpcode(), YS, V1, in FoldShiftByConstant()
812 Value *X = Builder.CreateBinOp(Op0BO->getOpcode(), V1, YS, in FoldShiftByConstant()
851 Builder.CreateBinOp(I.getOpcode(), Op0BO->getOperand(0), Op1); in FoldShiftByConstant()
895 Builder.CreateBinOp(I.getOpcode(), FalseVal, Op1); in FoldShiftByConstant()
896 Value *NewOp = Builder.CreateBinOp(TBO->getOpcode(), NewShift, in FoldShiftByConstant()
914 Builder.CreateBinOp(I.getOpcode(), TrueVal, Op1); in FoldShiftByConstant()
[all …]
DInstructionCombining.cpp582 V = Builder.CreateBinOp(TopLevelOpcode, B, D, RHS->getName()); in tryFactorization()
584 SimplifiedInst = Builder.CreateBinOp(InnerOpcode, A, V); in tryFactorization()
602 V = Builder.CreateBinOp(TopLevelOpcode, A, C, LHS->getName()); in tryFactorization()
604 SimplifiedInst = Builder.CreateBinOp(InnerOpcode, V, B); in tryFactorization()
711 C = Builder.CreateBinOp(InnerOpcode, L, R); in SimplifyUsingDistributiveLaws()
720 C = Builder.CreateBinOp(TopLevelOpcode, B, C); in SimplifyUsingDistributiveLaws()
729 C = Builder.CreateBinOp(TopLevelOpcode, A, C); in SimplifyUsingDistributiveLaws()
748 A = Builder.CreateBinOp(InnerOpcode, L, R); in SimplifyUsingDistributiveLaws()
757 A = Builder.CreateBinOp(TopLevelOpcode, A, C); in SimplifyUsingDistributiveLaws()
766 A = Builder.CreateBinOp(TopLevelOpcode, A, B); in SimplifyUsingDistributiveLaws()
[all …]
DInstCombineAndOrXor.cpp109 Value *BinOp = Builder.CreateBinOp(I.getOpcode(), NewLHS, NewRHS); in SimplifyBSwap()
1472 Value *AndOr = Builder.CreateBinOp(Opcode, A, B, I.getName() + ".demorgan"); in matchDeMorgansLaws()
1516 Value *NewOp = Builder.CreateBinOp(LogicOpc, X, TruncC); in foldLogicCastConstant()
1526 Value *NewOp = Builder.CreateBinOp(LogicOpc, X, TruncC); in foldLogicCastConstant()
1569 Value *NewOp = Builder.CreateBinOp(LogicOpc, Cast0Src, Cast1Src, in foldCastedBitwiseLogic()
1715 Value *NewBO = Opc == Instruction::Sub ? Builder.CreateBinOp(Opc, NewC, X) in narrowMaskedBinOp()
1716 : Builder.CreateBinOp(Opc, X, NewC); in narrowMaskedBinOp()
1835 BinOp = Builder.CreateBinOp(Op0I->getOpcode(), X, TruncC1); in visitAnd()
1837 BinOp = Builder.CreateBinOp(Op0I->getOpcode(), TruncC1, X); in visitAnd()
DInstCombineMulDivRem.cpp324 Value *Rem = Builder.CreateBinOp(RemOpc, X, DivOp1); in visitMul()
930 Value *NarrowOp = Builder.CreateBinOp(Opcode, X, Y); in narrowUDivURem()
946 Value *NarrowOp = isa<Constant>(D) ? Builder.CreateBinOp(Opcode, X, TruncC) in narrowUDivURem()
947 : Builder.CreateBinOp(Opcode, TruncC, X); in narrowUDivURem()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUAtomicOptimizer.cpp254 return B.CreateBinOp(Instruction::Add, LHS, RHS); in buildNonAtomicBinOp()
256 return B.CreateBinOp(Instruction::Sub, LHS, RHS); in buildNonAtomicBinOp()
258 return B.CreateBinOp(Instruction::And, LHS, RHS); in buildNonAtomicBinOp()
260 return B.CreateBinOp(Instruction::Or, LHS, RHS); in buildNonAtomicBinOp()
262 return B.CreateBinOp(Instruction::Xor, LHS, RHS); in buildNonAtomicBinOp()
DAMDGPUCodeGenPrepare.cpp312 ExtRes = Builder.CreateBinOp(I.getOpcode(), ExtOp0, ExtOp1); in promoteUniformOpToI32()
914 NewElt = Builder.CreateBinOp(Opc, NumEltN, DenEltN); in visitBinaryOperator()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DExpandReductions.cpp132 Rdx = Builder.CreateBinOp((Instruction::BinaryOps)getOpcode(ID), in expandReductions()
DCodeGenPrepare.cpp6039 Value *NewTVal = Builder.CreateBinOp(Opcode, Shift->getOperand(0), TVal); in optimizeShiftInst()
6040 Value *NewFVal = Builder.CreateBinOp(Opcode, Shift->getOperand(0), FVal); in optimizeShiftInst()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonLoopIdiomRecognition.cpp1605 return B.CreateBinOp(cast<BinaryOperator>(T)->getOpcode(), in setupPreSimplifier()
1640 B.CreateBinOp(Op, X, Z), in setupPreSimplifier()
1641 B.CreateBinOp(Op, Y, Z)); in setupPreSimplifier()
1648 B.CreateBinOp(Op, X, Y), in setupPreSimplifier()
1649 B.CreateBinOp(Op, X, Z)); in setupPreSimplifier()
1702 return B.CreateBinOp(BitOp->getOpcode(), in setupPreSimplifier()
1730 return B.CreateBinOp(BitOp2->getOpcode(), X, in setupPreSimplifier()
1731 B.CreateBinOp(BitOp1->getOpcode(), CA, CB)); in setupPreSimplifier()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/XCore/
DXCoreLowerThreadLocal.cpp105 Builder.CreateBinOp((Instruction::BinaryOps)OpCode, in createReplacementInstr()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DConstantFolder.h115 Constant *CreateBinOp(Instruction::BinaryOps Opc, in CreateBinOp() function
DNoFolder.h173 Instruction *CreateBinOp(Instruction::BinaryOps Opc, in CreateBinOp() function
DIRBuilder.h1169 return (LC && RC) ? Insert(Folder.CreateBinOp(Opc, LC, RC), Name) : nullptr; in foldConstant()
1551 Value *CreateBinOp(Instruction::BinaryOps Opc,
1641 return CreateBinOp(static_cast<Instruction::BinaryOps>(Opc),
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTXGenericToNVVM.cpp301 return Builder.CreateBinOp(Instruction::BinaryOps(C->getOpcode()), in remapConstantExpr()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DTargetFolder.h107 Constant *CreateBinOp(Instruction::BinaryOps Opc, in CreateBinOp() function
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/AggressiveInstCombine/
DTruncInstCombine.cpp351 Res = Builder.CreateBinOp((Instruction::BinaryOps)Opc, LHS, RHS); in ReduceExpressionDag()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp502 B.CreateBinOp(Opcode, WO->getLHS(), WO->getRHS(), WO->getName()); in processOverflowIntrinsic()
649 auto *BO = B.CreateBinOp(Instr->getOpcode(), LHS, RHS, Instr->getName()); in processUDivOrURem()
DFloat2Int.cpp498 NewV = IRB.CreateBinOp(mapBinOpcode(I->getOpcode()), in convert()
DScalarizer.cpp148 return Builder.CreateBinOp(BO.getOpcode(), Op0, Op1, Name); in operator ()()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLoopUtils.cpp815 Result = Builder.CreateBinOp((Instruction::BinaryOps)Op, Result, Ext, in getOrderedReduction()
858 TmpVec = Builder.CreateBinOp((Instruction::BinaryOps)Op, TmpVec, Shuf, in getShuffleReduction()
DSimplifyCFG.cpp2774 Builder.CreateBinOp(Opc, PBI->getCondition(), CondInPred, "or.cond")); in FoldBranchToCommonDest()
2838 Builder.CreateBinOp(Instruction::And, NotCond, CondInPred, in FoldBranchToCommonDest()
2841 MergedCond = cast<Instruction>(Builder.CreateBinOp( in FoldBranchToCommonDest()
2847 MergedCond = cast<Instruction>(Builder.CreateBinOp( in FoldBranchToCommonDest()
2852 MergedCond = cast<Instruction>(Builder.CreateBinOp( in FoldBranchToCommonDest()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp1720 Value *Mul = addFastMathFlag(Builder.CreateBinOp(MulOp, Step, ConstVF)); in createVectorIntOrFpInductionPHI()
1746 Builder.CreateBinOp(AddOp, LastInduction, SplatVF, "step.add"))); in createVectorIntOrFpInductionPHI()
1952 Value *BOp = Builder.CreateBinOp(BinOp, Val, MulOp, "induction"); in getStepVector()
1991 auto *Mul = addFastMathFlag(Builder.CreateBinOp(MulOp, StartIdx, Step)); in buildScalarSteps()
1992 auto *Add = addFastMathFlag(Builder.CreateBinOp(AddOp, ScalarIV, Mul)); in buildScalarSteps()
2259 ? Builder.CreateBinOp(Instruction::And, ShuffledMask, in vectorizeInterleaveGroup()
2898 Value *BOp = B.CreateBinOp(InductionBinOp->getOpcode(), StartValue, MulExp, in emitTransformedIndex()
3361 NewI = B.CreateBinOp(BO->getOpcode(), ShrinkOperand(BO->getOperand(0)), in truncateToMinimalBitwidths()
3832 Builder.CreateBinOp((Instruction::BinaryOps)Op, RdxPart, in fixReduction()
6636 return addFastMathFlag(Builder.CreateBinOp(BinOp, Val, MulOp)); in getStepVector()
DVPlan.cpp317 Value *V = Builder.CreateBinOp((Instruction::BinaryOps)getOpcode(), A, B); in generateInstruction()
DSLPVectorizer.cpp4314 Value *V = Builder.CreateBinOp( in vectorizeTree()
4529 V0 = Builder.CreateBinOp( in vectorizeTree()
4531 V1 = Builder.CreateBinOp( in vectorizeTree()
6155 return Builder.CreateBinOp((Instruction::BinaryOps)Opcode, LHS, RHS, in createOp()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp228 Instruction *BO = cast<Instruction>(Builder.CreateBinOp(Opcode, LHS, RHS)); in InsertBinop()

12