Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DHashRecognize.cpp131 case Instruction::BinaryOps::And: in computeBinOp()
133 case Instruction::BinaryOps::Or: in computeBinOp()
135 case Instruction::BinaryOps::Xor: in computeBinOp()
137 case Instruction::BinaryOps::Shl: { in computeBinOp()
142 case Instruction::BinaryOps::LShr: in computeBinOp()
144 case Instruction::BinaryOps::AShr: in computeBinOp()
146 case Instruction::BinaryOps::Add: { in computeBinOp()
151 case Instruction::BinaryOps::Sub: { in computeBinOp()
156 case Instruction::BinaryOps::Mul: { in computeBinOp()
162 case Instruction::BinaryOps::UDiv: in computeBinOp()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilderFolder.h37 virtual Value *FoldBinOp(Instruction::BinaryOps Opc, Value *LHS,
40 virtual Value *FoldExactBinOp(Instruction::BinaryOps Opc, Value *LHS,
43 virtual Value *FoldNoWrapBinOp(Instruction::BinaryOps Opc, Value *LHS,
47 virtual Value *FoldBinOpFMF(Instruction::BinaryOps Opc, Value *LHS,
H A DNoFolder.h49 Value *FoldBinOp(Instruction::BinaryOps Opc, Value *LHS, in FoldBinOp()
54 Value *FoldExactBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldExactBinOp()
59 Value *FoldNoWrapBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldNoWrapBinOp()
64 Value *FoldBinOpFMF(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldBinOpFMF()
H A DConstantFolder.h44 Value *FoldBinOp(Instruction::BinaryOps Opc, Value *LHS, in FoldBinOp()
56 Value *FoldExactBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldExactBinOp()
69 Value *FoldNoWrapBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldNoWrapBinOp()
87 Value *FoldBinOpFMF(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldBinOpFMF()
H A DConstantRange.h175 makeGuaranteedNoWrapRegion(Instruction::BinaryOps BinOp,
181 makeExactNoWrapRegion(Instruction::BinaryOps BinOp, const APInt &Other,
397 LLVM_ABI ConstantRange binaryOp(Instruction::BinaryOps BinOp,
404 LLVM_ABI ConstantRange overflowingBinaryOp(Instruction::BinaryOps BinOp,
H A DInstrTypes.h177 LLVM_ABI BinaryOperator(BinaryOps iType, Value *S1, Value *S2, Type *Ty,
198 LLVM_ABI static BinaryOperator *Create(BinaryOps Op, Value *S1, Value *S2,
219 CreateWithCopiedFlags(BinaryOps Opc, Value *V1, Value *V2, Value *CopyO,
227 static BinaryOperator *CreateWithFMF(BinaryOps Opc, Value *V1, Value *V2,
279 static BinaryOperator *CreateNSW(BinaryOps Opc, Value *V1, Value *V2,
286 static BinaryOperator *CreateNSW(BinaryOps Opc, Value *V1, Value *V2,
294 static BinaryOperator *CreateNUW(BinaryOps Opc, Value *V1, Value *V2,
301 static BinaryOperator *CreateNUW(BinaryOps Opc, Value *V1, Value *V2,
309 static BinaryOperator *CreateExact(BinaryOps Opc, Value *V1, Value *V2,
316 static BinaryOperator *CreateExact(BinaryOps Opc, Value *V1, Value *V2,
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInstSimplifyFolder.h52 Value *FoldBinOp(Instruction::BinaryOps Opc, Value *LHS, in FoldBinOp()
57 Value *FoldExactBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldExactBinOp()
62 Value *FoldNoWrapBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldNoWrapBinOp()
67 Value *FoldBinOpFMF(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldBinOpFMF()
H A DTargetFolder.h55 Value *FoldBinOp(Instruction::BinaryOps Opc, Value *LHS, in FoldBinOp()
67 Value *FoldExactBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldExactBinOp()
80 Value *FoldNoWrapBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldNoWrapBinOp()
98 Value *FoldBinOpFMF(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldBinOpFMF()
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DInstruction.cpp1185 static llvm::Instruction::BinaryOps getLLVMBinaryOp(Instruction::Opcode Opc) { in getLLVMBinaryOp()
1188 return static_cast<llvm::Instruction::BinaryOps>(llvm::Instruction::Add); in getLLVMBinaryOp()
1190 return static_cast<llvm::Instruction::BinaryOps>(llvm::Instruction::FAdd); in getLLVMBinaryOp()
1192 return static_cast<llvm::Instruction::BinaryOps>(llvm::Instruction::Sub); in getLLVMBinaryOp()
1194 return static_cast<llvm::Instruction::BinaryOps>(llvm::Instruction::FSub); in getLLVMBinaryOp()
1196 return static_cast<llvm::Instruction::BinaryOps>(llvm::Instruction::Mul); in getLLVMBinaryOp()
1198 return static_cast<llvm::Instruction::BinaryOps>(llvm::Instruction::FMul); in getLLVMBinaryOp()
1200 return static_cast<llvm::Instruction::BinaryOps>(llvm::Instruction::UDiv); in getLLVMBinaryOp()
1202 return static_cast<llvm::Instruction::BinaryOps>(llvm::Instruction::SDiv); in getLLVMBinaryOp()
1204 return static_cast<llvm::Instruction::BinaryOps>(llvm::Instruction::FDiv); in getLLVMBinaryOp()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/FuzzMutate/
H A DOperations.h47 Instruction::BinaryOps Op);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp450 Instruction::BinaryOps Opcode = I.getOpcode(); in SimplifyAssociativeOrCommutative()
618 static bool leftDistributesOverRight(Instruction::BinaryOps LOp, in leftDistributesOverRight()
619 Instruction::BinaryOps ROp) { in leftDistributesOverRight()
639 static bool rightDistributesOverLeft(Instruction::BinaryOps LOp, in rightDistributesOverLeft()
640 Instruction::BinaryOps ROp) { in rightDistributesOverLeft()
654 static Value *getIdentityValue(Instruction::BinaryOps Opcode, Value *V) { in getIdentityValue()
666 static Instruction::BinaryOps
667 getBinOpsForFactorization(Instruction::BinaryOps TopOpcode, BinaryOperator *Op, in getBinOpsForFactorization()
697 Instruction::BinaryOps InnerOpcode, Value *A, in tryFactorization()
704 Instruction::BinaryOps TopLevelOpcode = I.getOpcode(); 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()
1159 auto isSuitableBinOpcode = [](Instruction::BinaryOps BinOpcode) { in visitShl()
1329 auto isSuitableBinOpcode = [](Instruction::BinaryOps BinOpcode) { in visitLShr()
H A DInstCombineInternal.h275 bool OptimizeOverflowCheck(Instruction::BinaryOps BinaryOp, bool IsSigned,
370 bool willNotOverflow(BinaryOperator::BinaryOps Opcode, const Value *LHS, in willNotOverflow()
510 Instruction::BinaryOps BinaryOp, bool IsSigned,
H A DInstCombineAndOrXor.cpp1657 Instruction::BinaryOps Opcode = BO.getOpcode(); in reassociateFCmps()
1698 const Instruction::BinaryOps Opcode = I.getOpcode(); in matchDeMorgansLaws()
1703 const Instruction::BinaryOps FlippedOpcode = in matchDeMorgansLaws()
1991 Instruction::BinaryOps Opc = cast<BinaryOperator>(Op0)->getOpcode(); in narrowMaskedBinOp()
2008 const Instruction::BinaryOps Opcode = I.getOpcode(); in foldComplexAndOrPatterns()
2012 const Instruction::BinaryOps FlippedOpcode = in foldComplexAndOrPatterns()
2151 Instruction::BinaryOps Opcode = BO.getOpcode(); in reassociateForUses()
2185 Instruction::BinaryOps OpC = I.getOpcode(); in canonicalizeLogicFirst()
2246 Instruction::BinaryOps ShiftOp = in foldBinOpOfDisplacedShifts()
2247 static_cast<Instruction::BinaryOps>(Op0Inst->getOpcode()); in foldBinOpOfDisplacedShifts()
[all …]
H A DInstCombineVectorOps.cpp2129 BinaryOperator::BinaryOps Opcode;
2132 BinopElts(BinaryOperator::BinaryOps Opc = (BinaryOperator::BinaryOps)0, in BinopElts()
2244 BinaryOperator::BinaryOps BOpcode = BO->getOpcode(); in foldSelectShuffleWith1Binop()
2370 BinaryOperator::BinaryOps Opc0 = B0->getOpcode(); in foldSelectShuffle()
2371 BinaryOperator::BinaryOps Opc1 = B1->getOpcode(); in foldSelectShuffle()
2394 BinaryOperator::BinaryOps BOpc = Opc0; in foldSelectShuffle()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorizationPlanner.h200 return createInstruction(Instruction::BinaryOps::And, {LHS, RHS}, DL, Name);
208 Instruction::BinaryOps::Or, {LHS, RHS},
307 createScalarIVSteps(Instruction::BinaryOps InductionOpcode, in createScalarIVSteps()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DInductiveRangeCheckElimination.cpp348 if (SE.willNotOverflow(Instruction::BinaryOps::Add, Signed, RHSS, One)) { in parseIvAgaisntLimit()
424 auto getExprScaledIfOverflow = [&](Instruction::BinaryOps BinOp, in reassociateSubLHS()
458 Limit = getExprScaledIfOverflow(Instruction::BinaryOps::Add, Offset, Limit); in reassociateSubLHS()
461 Limit = getExprScaledIfOverflow(Instruction::BinaryOps::Sub, Offset, Limit); in reassociateSubLHS()
468 Limit = getExprScaledIfOverflow(Instruction::BinaryOps::Add, Limit, in reassociateSubLHS()
H A DFloat2Int.cpp78 static Instruction::BinaryOps mapBinOpcode(unsigned Opcode) { in mapBinOpcode()
267 auto BinOp = (Instruction::BinaryOps) I->getOpcode(); in calcRange()
H A DCorrelatedValuePropagation.cpp469 static void setDeducedOverflowingFlags(Value *V, Instruction::BinaryOps Opcode, in setDeducedOverflowingFlags()
631 Instruction::BinaryOps Opcode = WO->getBinaryOp(); in processOverflowIntrinsic()
656 Instruction::BinaryOps Opcode = SI->getBinaryOp(); in processSaturatingInst()
1178 Instruction::BinaryOps Opcode = BinOp->getOpcode(); in processBinOp()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandReductions.cpp85 Rdx = Builder.CreateBinOp((Instruction::BinaryOps)RdxOpcode, Acc, Rdx, in expandReductions()
H A DExpandVectorPredication.cpp236 auto OC = static_cast<Instruction::BinaryOps>(*VPI.getFunctionalOpcode()); in expandPredicationInBinaryOperator()
367 Builder.CreateBinOp((Instruction::BinaryOps)Opc, Reduction, Start); in expandPredicationInReduction()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXTargetTransformInfo.cpp152 std::optional<Instruction::BinaryOps> BinaryOp; in convertNvvmIntrinsicToLlvm()
170 SimplifyAction(Instruction::BinaryOps BinaryOp, FtzRequirementTy FtzReq) in convertNvvmIntrinsicToLlvm()
H A DNVPTXGenericToNVVM.cpp261 return Builder.CreateBinOp(Instruction::BinaryOps(C->getOpcode()), in remapConstantExpr()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp921 BinaryOperator::Create((Instruction::BinaryOps)Opcode, in pushOutMulShl()
926 BinaryOperator::Create((Instruction::BinaryOps)Opcode, IncrementPerRound, in pushOutMulShl()
1061 Instruction::BinaryOps(IncInstruction->getOpcode()), Phi, in optimiseOffsets()
1073 Instruction::BinaryOps(IncInstruction->getOpcode()), NewPhi, in optimiseOffsets()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.h389 Instruction::BinaryOps Opc, const Value *Lhs, const Value *Rhs,
395 Instruction::BinaryOps Opc, BranchProbability TProb,

1234