Home
last modified time | relevance | path

Searched refs:BinaryOps (Results 1 – 25 of 80) sorted by relevance

1234

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilderFolder.h36 virtual Value *FoldBinOp(Instruction::BinaryOps Opc, Value *LHS,
39 virtual Value *FoldExactBinOp(Instruction::BinaryOps Opc, Value *LHS,
42 virtual Value *FoldNoWrapBinOp(Instruction::BinaryOps Opc, Value *LHS,
46 virtual Value *FoldBinOpFMF(Instruction::BinaryOps Opc, Value *LHS,
H A DNoFolder.h48 Value *FoldBinOp(Instruction::BinaryOps Opc, Value *LHS, in FoldBinOp()
53 Value *FoldExactBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldExactBinOp()
58 Value *FoldNoWrapBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldNoWrapBinOp()
63 Value *FoldBinOpFMF(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldBinOpFMF()
H A DInstrTypes.h192 BinaryOperator(BinaryOps iType, Value *S1, Value *S2, Type *Ty,
213 static BinaryOperator *Create(BinaryOps Op, Value *S1, Value *S2,
246 CreateWithCopiedFlags(BinaryOps Opc, Value *V1, Value *V2, Value *CopyO,
254 static BinaryOperator *CreateWithFMF(BinaryOps Opc, Value *V1, Value *V2,
306 static BinaryOperator *CreateNSW(BinaryOps Opc, Value *V1, Value *V2,
312 static BinaryOperator *CreateNSW(BinaryOps Opc, Value *V1, Value *V2,
318 static BinaryOperator *CreateNSW(BinaryOps Opc, Value *V1, Value *V2,
324 static BinaryOperator *CreateNSW(BinaryOps Opc, Value *V1, Value *V2,
331 static BinaryOperator *CreateNUW(BinaryOps Opc, Value *V1, Value *V2,
337 static BinaryOperator *CreateNUW(BinaryOps Opc, Value *V1, Value *V2,
[all …]
H A DConstantFolder.h43 Value *FoldBinOp(Instruction::BinaryOps Opc, Value *LHS, in FoldBinOp()
55 Value *FoldExactBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldExactBinOp()
68 Value *FoldNoWrapBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldNoWrapBinOp()
86 Value *FoldBinOpFMF(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldBinOpFMF()
H A DConstantRange.h169 static ConstantRange makeGuaranteedNoWrapRegion(Instruction::BinaryOps BinOp,
175 static ConstantRange makeExactNoWrapRegion(Instruction::BinaryOps BinOp,
390 ConstantRange binaryOp(Instruction::BinaryOps BinOp,
397 ConstantRange overflowingBinaryOp(Instruction::BinaryOps BinOp,
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInstSimplifyFolder.h50 Value *FoldBinOp(Instruction::BinaryOps Opc, Value *LHS, in FoldBinOp()
55 Value *FoldExactBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldExactBinOp()
60 Value *FoldNoWrapBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldNoWrapBinOp()
65 Value *FoldBinOpFMF(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldBinOpFMF()
H A DTargetFolder.h54 Value *FoldBinOp(Instruction::BinaryOps Opc, Value *LHS, in FoldBinOp()
66 Value *FoldExactBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldExactBinOp()
79 Value *FoldNoWrapBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldNoWrapBinOp()
97 Value *FoldBinOpFMF(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldBinOpFMF()
H A DIVDescriptors.h367 Instruction::BinaryOps getInductionOpcode() const { in getInductionOpcode()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp289 Instruction::BinaryOps Opcode = I.getOpcode(); in maintainNoSignedWrap()
421 Instruction::BinaryOps Opcode = I.getOpcode(); in SimplifyAssociativeOrCommutative()
589 static bool leftDistributesOverRight(Instruction::BinaryOps LOp, in leftDistributesOverRight()
590 Instruction::BinaryOps ROp) { in leftDistributesOverRight()
610 static bool rightDistributesOverLeft(Instruction::BinaryOps LOp, in rightDistributesOverLeft()
611 Instruction::BinaryOps ROp) { in rightDistributesOverLeft()
625 static Value *getIdentityValue(Instruction::BinaryOps Opcode, Value *V) { in getIdentityValue()
637 static Instruction::BinaryOps
638 getBinOpsForFactorization(Instruction::BinaryOps TopOpcode, BinaryOperator *Op, in getBinOpsForFactorization()
668 Instruction::BinaryOps InnerOpcode, Value *A, in tryFactorization()
[all …]
H A DInstCombineShifts.cpp96 Instruction::BinaryOps ShiftOpcode = Sh0->getOpcode(); in reassociateShiftAmtsOfTwoSameDirectionShifts()
153 if (ShiftOpcode == Instruction::BinaryOps::Shl) { in reassociateShiftAmtsOfTwoSameDirectionShifts()
192 assert(OuterShift->getOpcode() == Instruction::BinaryOps::Shl && in dropRedundantMaskingOfLeftShiftInput()
363 Instruction::BinaryOps ShiftOpcode = I.getOpcode(); in foldShiftOfShiftedBinOp()
1137 auto isSuitableBinOpcode = [](Instruction::BinaryOps BinOpcode) { in visitShl()
1307 auto isSuitableBinOpcode = [](Instruction::BinaryOps BinOpcode) { in visitLShr()
H A DInstCombineInternal.h274 bool OptimizeOverflowCheck(Instruction::BinaryOps BinaryOp, bool IsSigned,
369 bool willNotOverflow(BinaryOperator::BinaryOps Opcode, const Value *LHS, in willNotOverflow()
491 Instruction::BinaryOps BinaryOp, bool IsSigned,
H A DInstCombineAndOrXor.cpp1612 Instruction::BinaryOps Opcode = BO.getOpcode(); in reassociateFCmps()
1657 const Instruction::BinaryOps Opcode = I.getOpcode(); in matchDeMorgansLaws()
1662 const Instruction::BinaryOps FlippedOpcode = in matchDeMorgansLaws()
1936 Instruction::BinaryOps Opc = cast<BinaryOperator>(Op0)->getOpcode(); in narrowMaskedBinOp()
1953 const Instruction::BinaryOps Opcode = I.getOpcode(); in foldComplexAndOrPatterns()
1957 const Instruction::BinaryOps FlippedOpcode = in foldComplexAndOrPatterns()
2096 Instruction::BinaryOps Opcode = BO.getOpcode(); in reassociateForUses()
2130 Instruction::BinaryOps OpC = I.getOpcode(); in canonicalizeLogicFirst()
2191 Instruction::BinaryOps ShiftOp = in foldBinOpOfDisplacedShifts()
2192 static_cast<Instruction::BinaryOps>(Op0Inst->getOpcode()); in foldBinOpOfDisplacedShifts()
[all …]
H A DInstCombineVectorOps.cpp2051 BinaryOperator::BinaryOps Opcode;
2054 BinopElts(BinaryOperator::BinaryOps Opc = (BinaryOperator::BinaryOps)0, in BinopElts()
2166 BinaryOperator::BinaryOps BOpcode = BO->getOpcode(); in foldSelectShuffleWith1Binop()
2292 BinaryOperator::BinaryOps Opc0 = B0->getOpcode(); in foldSelectShuffle()
2293 BinaryOperator::BinaryOps Opc1 = B1->getOpcode(); in foldSelectShuffle()
2316 BinaryOperator::BinaryOps BOpc = Opc0; in foldSelectShuffle()
/freebsd/contrib/llvm-project/llvm/include/llvm/FuzzMutate/
H A DOperations.h41 OpDescriptor binOpDescriptor(unsigned Weight, Instruction::BinaryOps Op);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorizationPlanner.h171 return createInstruction(Instruction::BinaryOps::And, {LHS, RHS}, DL, Name);
178 Instruction::BinaryOps::Or, {LHS, RHS},
H A DVPlanRecipes.cpp390 Builder.CreateBinOp((Instruction::BinaryOps)getOpcode(), A, B, Name); in generatePerPart()
589 (Instruction::BinaryOps)Op, RdxPart, ReducedPartRdx, "bin.rdx"); in generatePerPart()
1191 Instruction::BinaryOps BinOp, ElementCount VF, in getStepVector()
1298 Instruction::BinaryOps AddOp; in execute()
1299 Instruction::BinaryOps MulOp; in execute()
1418 Instruction::BinaryOps AddOp; in execute()
1419 Instruction::BinaryOps MulOp; in execute()
1731 (Instruction::BinaryOps)RdxDesc.getOpcode(Kind), PrevInChain, in execute()
1745 (Instruction::BinaryOps)RdxDesc.getOpcode(Kind), NewRed, PrevInChain); in execute()
1785 (Instruction::BinaryOps)RdxDesc.getOpcode(Kind), NewRed, Prev); in execute()
H A DVectorCombine.cpp899 : Builder.CreateBinOp((Instruction::BinaryOps)(*FunctionalOpcode), in scalarizeVPIntrinsic()
1010 : Builder.CreateBinOp((Instruction::BinaryOps)Opcode, V0, V1); in scalarizeBinopOrCmp()
1022 : Builder.CreateBinOp((Instruction::BinaryOps)Opcode, VecC0, VecC1); in scalarizeBinopOrCmp()
1414 Instruction::BinaryOps Opcode = B0->getOpcode(); in foldShuffleOfBinops()
1801 auto *Value = Builder.CreateBinOp((Instruction::BinaryOps)BI->getOpcode(), in generateNewInstTree()
2475 Value *NOp0 = Builder.CreateBinOp((Instruction::BinaryOps)Op0->getOpcode(), in foldSelectShuffle()
2480 Value *NOp1 = Builder.CreateBinOp((Instruction::BinaryOps)Op1->getOpcode(), in foldSelectShuffle()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXTargetTransformInfo.cpp145 std::optional<Instruction::BinaryOps> BinaryOp; in simplifyNvvmIntrinsic()
163 SimplifyAction(Instruction::BinaryOps BinaryOp, FtzRequirementTy FtzReq) in simplifyNvvmIntrinsic()
H A DNVPTXGenericToNVVM.cpp262 return Builder.CreateBinOp(Instruction::BinaryOps(C->getOpcode()), in remapConstantExpr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DFloat2Int.cpp78 static Instruction::BinaryOps mapBinOpcode(unsigned Opcode) { in mapBinOpcode()
271 auto BinOp = (Instruction::BinaryOps) I->getOpcode(); in calcRange()
H A DCorrelatedValuePropagation.cpp447 static void setDeducedOverflowingFlags(Value *V, Instruction::BinaryOps Opcode, in setDeducedOverflowingFlags()
609 Instruction::BinaryOps Opcode = WO->getBinaryOp(); in processOverflowIntrinsic()
634 Instruction::BinaryOps Opcode = SI->getBinaryOp(); in processSaturatingInst()
1158 Instruction::BinaryOps Opcode = BinOp->getOpcode(); in processBinOp()
H A DInductiveRangeCheckElimination.cpp354 if (SE.willNotOverflow(Instruction::BinaryOps::Add, Signed, RHSS, One)) { in parseIvAgaisntLimit()
430 auto getExprScaledIfOverflow = [&](Instruction::BinaryOps BinOp, in reassociateSubLHS()
464 Limit = getExprScaledIfOverflow(Instruction::BinaryOps::Add, Offset, Limit); in reassociateSubLHS()
467 Limit = getExprScaledIfOverflow(Instruction::BinaryOps::Sub, Offset, Limit); in reassociateSubLHS()
474 Limit = getExprScaledIfOverflow(Instruction::BinaryOps::Add, Limit, in reassociateSubLHS()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandReductions.cpp85 Rdx = Builder.CreateBinOp((Instruction::BinaryOps)RdxOpcode, Acc, Rdx, in expandReductions()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp922 BinaryOperator::Create((Instruction::BinaryOps)Opcode, in pushOutMulShl()
927 BinaryOperator::Create((Instruction::BinaryOps)Opcode, IncrementPerRound, in pushOutMulShl()
1062 Instruction::BinaryOps(IncInstruction->getOpcode()), Phi, in optimiseOffsets()
1074 Instruction::BinaryOps(IncInstruction->getOpcode()), NewPhi, in optimiseOffsets()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.h390 Instruction::BinaryOps Opc, const Value *Lhs, const Value *Rhs,
396 Instruction::BinaryOps Opc, BranchProbability TProb,

1234