Home
last modified time | relevance | path

Searched refs:Overflow (Results 1 – 25 of 77) sorted by relevance

1234

/freebsd-src/contrib/llvm-project/llvm/lib/Support/
H A DAPFixedPoint.cpp33 bool *Overflow) const { in convert()
36 if (Overflow) in convert()
37 *Overflow = false; in convert()
54 else if (Overflow) in convert()
55 *Overflow = true; in convert()
64 else if (Overflow) in convert()
65 *Overflow = true; in convert()
188 bool *Overflow) const { in add()
205 if (Overflow) in sub()
206 *Overflow in sub()
525 getFromIntValue(const APSInt & Value,const FixedPointSemantics & DstFXSema,bool * Overflow) getFromIntValue() argument
534 getFromFloatValue(const APFloat & Value,const FixedPointSemantics & DstFXSema,bool * Overflow) getFromFloatValue() argument
[all...]
H A DBlockFrequency.cpp44 bool Overflow; in mul()
45 uint64_t ResultFrequency = SaturatingMultiply(Frequency, Factor, &Overflow); in mul()
46 if (Overflow) in mul()
42 bool Overflow; mul() local
H A DAPInt.cpp1898 APInt APInt::sadd_ov(const APInt &RHS, bool &Overflow) const { in sdivrem()
1900 Overflow = isNonNegative() == RHS.isNonNegative() && in sdivrem()
1905 APInt APInt::uadd_ov(const APInt &RHS, bool &Overflow) const { in sdivrem()
1907 Overflow = Res.ult(RHS); in sdivrem()
1911 APInt APInt::ssub_ov(const APInt &RHS, bool &Overflow) const { in sdivrem()
1913 Overflow = isNonNegative() != RHS.isNonNegative() &&
1918 APInt APInt::usub_ov(const APInt &RHS, bool &Overflow) const { in sdivrem()
1920 Overflow = Res.ugt(*this); in sdivrem()
1924 APInt APInt::sdiv_ov(const APInt &RHS, bool &Overflow) const { in sdivrem()
1926 Overflow in sdivrem()
2026 bool Overflow; sadd_sat() local
2036 bool Overflow; uadd_sat() local
2045 bool Overflow; ssub_sat() local
2055 bool Overflow; usub_sat() local
2064 bool Overflow; smul_sat() local
2077 bool Overflow; umul_sat() local
2090 bool Overflow; sshl_sat() local
2104 bool Overflow; ushl_sat() local
[all...]
H A DKnownBits.cpp619 std::optional<bool> Overflow; in computeForSatAddSub()
622 // If we can actually detect overflow do so. Otherwise leave Overflow as in computeForSatAddSub()
627 Overflow = (LHS.isNonNegative() == RHS.isNonNegative() && in computeForSatAddSub()
631 Overflow = (LHS.isNonNegative() != RHS.isNonNegative() && in computeForSatAddSub()
640 Overflow = false; in uadd_sat()
644 Overflow = true; in usub_sat()
651 Overflow = false; in mul()
655 Overflow = true; in mul()
706 if (Overflow) { in mul()
708 if (!(*Overflow)) { in mul()
497 std::optional<bool> Overflow; computeForSatAddSub() local
[all...]
/freebsd-src/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPFixedPoint.h184 bool *Overflow = nullptr) const;
189 // explanation of the Overflow parameter.
190 APFixedPoint add(const APFixedPoint &Other, bool *Overflow = nullptr) const;
191 APFixedPoint sub(const APFixedPoint &Other, bool *Overflow = nullptr) const;
192 APFixedPoint mul(const APFixedPoint &Other, bool *Overflow = nullptr) const;
193 APFixedPoint div(const APFixedPoint &Other, bool *Overflow = nullptr) const;
198 APFixedPoint shl(unsigned Amt, bool *Overflow = nullptr) const;
199 APFixedPoint shr(unsigned Amt, bool *Overflow = nullptr) const {
201 if (Overflow)
202 *Overflow
[all...]
H A DAPInt.h990 APInt sadd_ov(const APInt &RHS, bool &Overflow) const;
991 APInt uadd_ov(const APInt &RHS, bool &Overflow) const;
992 APInt ssub_ov(const APInt &RHS, bool &Overflow) const;
993 APInt usub_ov(const APInt &RHS, bool &Overflow) const;
994 APInt sdiv_ov(const APInt &RHS, bool &Overflow) const;
995 APInt smul_ov(const APInt &RHS, bool &Overflow) const;
996 APInt umul_ov(const APInt &RHS, bool &Overflow) const;
997 APInt sshl_ov(const APInt &Amt, bool &Overflow) const;
998 APInt sshl_ov(unsigned Amt, bool &Overflow) const;
999 APInt ushl_ov(const APInt &Amt, bool &Overflow) cons
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/IR/
H A DOperator.cpp144 bool Overflow = false; in accumulateConstantOffset()
145 APInt OffsetPlus = Index.smul_ov(IndexedSize, Overflow); in accumulateConstantOffset()
146 if (Overflow) in accumulateConstantOffset()
148 Offset = Offset.sadd_ov(OffsetPlus, Overflow); in accumulateConstantOffset()
149 if (Overflow) in accumulateConstantOffset()
121 bool Overflow = false; accumulateConstantOffset() local
H A DValue.cpp758 bool Overflow = false; in stripAndAccumulateConstantOffsets()
760 Offset = Offset.sadd_ov(GEPOffsetST, Overflow); in stripAndAccumulateConstantOffsets()
761 if (Overflow) { in stripAndAccumulateConstantOffsets()
757 bool Overflow = false; stripAndAccumulateConstantOffsets() local
H A DConstantRange.cpp2055 bool Overflow;
2057 (void) Min.umul_ov(OtherMin, Overflow);
2058 if (Overflow)
2061 (void) Max.umul_ov(OtherMax, Overflow);
2062 if (Overflow)
1962 bool Overflow; unsignedMulMayOverflow() local
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Support/
H A DCheckedArithmetic.h32 bool Overflow; variable
33 llvm::APInt Out = (ALHS.*Op)(ARHS, Overflow);
34 if (Overflow)
/freebsd-src/contrib/llvm-project/clang/lib/Lex/
H A DPPExpressions.cpp346 // Overflow parsing integer literal. in EvaluateValue()
490 bool Overflow = !Result.isUnsigned() && Result.Val.isMinSignedValue(); in EvaluateValue() local
493 if (Overflow && ValueLive) in EvaluateValue()
703 bool Overflow = false; in EvaluateDirectiveSubExpr() local
718 Res = llvm::APSInt(LHS.Val.sdiv_ov(RHS.Val, Overflow), false); in EvaluateDirectiveSubExpr()
730 Res = llvm::APSInt(LHS.Val.smul_ov(RHS.Val, Overflow), false); in EvaluateDirectiveSubExpr()
737 Res = LHS.Val.ushl_ov(RHS.Val, Overflow); in EvaluateDirectiveSubExpr()
739 Res = llvm::APSInt(LHS.Val.sshl_ov(RHS.Val, Overflow), false); in EvaluateDirectiveSubExpr()
746 Overflow = true; in EvaluateDirectiveSubExpr()
756 Res = llvm::APSInt(LHS.Val.sadd_ov(RHS.Val, Overflow), fals in EvaluateDirectiveSubExpr()
[all...]
H A DLiteralSupport.cpp205 bool Overflow = false; in ProcessCharEscape() local
226 Overflow = true; in ProcessCharEscape()
232 Overflow = true; in ProcessCharEscape()
237 if (!HadError && Overflow) { // Too many digits to fit in in ProcessCharEscape()
272 bool Overflow = false; in ProcessCharEscape() local
308 Overflow = true; in ProcessCharEscape()
315 (Overflow || (CharWidth != 32 && (ResultChar >> CharWidth) != 0))) { in ProcessCharEscape()
482 bool Overflow = false; in ProcessNumericUCNEscape() local
505 Overflow = true; in ProcessNumericUCNEscape()
513 if (Overflow) { in ProcessNumericUCNEscape()
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/FileCheck/
H A DFileCheckImpl.h118 Expected<APInt> exprAdd(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
119 Expected<APInt> exprSub(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
120 Expected<APInt> exprMul(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
121 Expected<APInt> exprDiv(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
122 Expected<APInt> exprMax(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
123 Expected<APInt> exprMin(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
H A DFileCheck.cpp157 const APInt &RightOperand, bool &Overflow) { in exprAdd() argument
158 return LeftOperand.sadd_ov(RightOperand, Overflow); in exprAdd()
162 const APInt &RightOperand, bool &Overflow) { in exprSub() argument
163 return LeftOperand.ssub_ov(RightOperand, Overflow); in exprSub()
167 const APInt &RightOperand, bool &Overflow) { in exprMul() argument
168 return LeftOperand.smul_ov(RightOperand, Overflow); in exprMul()
172 const APInt &RightOperand, bool &Overflow) { in exprDiv() argument
177 return LeftOperand.sdiv_ov(RightOperand, Overflow); in exprDiv()
181 const APInt &RightOperand, bool &Overflow) { in exprMax() argument
182 Overflow in exprMax()
187 exprMin(const APInt & LeftOperand,const APInt & RightOperand,bool & Overflow) exprMin() argument
220 bool Overflow; eval() local
[all...]
/freebsd-src/contrib/tcsh/nls/italian/
H A Dset147 45 Overflow di linea
97 95 Overflow di buffer nella sostituzione
127 125 Overflow di selettore
/freebsd-src/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp433 bool Overflow; in getAllocSize() local
434 Size = Size.umul_ov(NumElems, Overflow); in getAllocSize()
435 if (Overflow) in getAllocSize()
794 bool Overflow; in visitAllocaInst() local
795 Size = Size.umul_ov(NumElems, Overflow); in visitAllocaInst()
796 return Overflow ? ObjectSizeOffsetVisitor::unknown() in visitAllocaInst()
H A DLoads.cpp329 bool Overflow = false; in isDereferenceableAndAlignedInLoop()
330 AccessSize = AccessSize.uadd_ov(Offset->getAPInt(), Overflow); in isDereferenceableAndAlignedInLoop()
331 if (Overflow) in isDereferenceableAndAlignedInLoop()
320 bool Overflow = false; isDereferenceableAndAlignedInLoop() local
H A DStackSafetyAnalysis.cpp169 bool Overflow = false; in getStaticAllocaSizeRange() local
174 APSize = APSize.smul_ov(Mul, Overflow); in getStaticAllocaSizeRange()
175 if (Overflow) in getStaticAllocaSizeRange()
H A DConstantFolding.cpp900 bool Overflow = false; in SymbolicallyEvaluateGEP()
928 Overflow); in SymbolicallyEvaluateGEP()
933 if (NW.hasNoUnsignedSignedWrap() && !NW.isInBounds() && Overflow) in SymbolicallyEvaluateGEP()
2852 bool Overflow; in ConstantFoldScalarCall2()
2856 Res = C0->sadd_ov(*C1, Overflow); in ConstantFoldScalarCall2()
2859 Res = C0->uadd_ov(*C1, Overflow); in ConstantFoldScalarCall2()
2862 Res = C0->ssub_ov(*C1, Overflow); in ConstantFoldScalarCall2()
2865 Res = C0->usub_ov(*C1, Overflow); in ConstantFoldScalarCall2()
2868 Res = C0->smul_ov(*C1, Overflow); in ConstantFoldScalarCall2()
2871 Res = C0->umul_ov(*C1, Overflow); in ConstantFoldScalarCall2()
2777 bool Overflow; ConstantFoldScalarCall2() local
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeVectorOps.cpp1776 SDValue Result, Overflow; in ExpandSETCC()
1777 TLI.expandUADDSUBO(Node, Result, Overflow, DAG); in ExpandSETCC()
1779 Results.push_back(Overflow);
1784 SDValue Result, Overflow; in ExpandUADDSUBO()
1785 TLI.expandSADDSUBO(Node, Result, Overflow, DAG); in ExpandUADDSUBO()
1787 Results.push_back(Overflow);
1792 SDValue Result, Overflow; in ExpandSADDSUBO()
1793 if (!TLI.expandMULO(Node, Result, Overflow, DAG)) in ExpandSADDSUBO()
1794 std::tie(Result, Overflow) = DAG.UnrollVectorOverflowOp(Node); in ExpandSADDSUBO()
1797 Results.push_back(Overflow); in ExpandMULO()
1782 SDValue Result, Overflow; ExpandUADDSUBO() local
1790 SDValue Result, Overflow; ExpandSADDSUBO() local
1798 SDValue Result, Overflow; ExpandMULO() local
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPrepareFunctions.cpp359 Value *Overflow = IRB.CreateICmpNE(UMulFunc->getArg(0), Div); in removeAggregateTypesFromSignature()
365 Value *Res = IRB.CreateInsertValue(Agg, Overflow, {1}); in removeAggregateTypesFromSignature()
230 Value *Overflow = IRB.CreateICmpNE(UMulFunc->getArg(0), Div); buildUMulWithOverflowFunc() local
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp815 /// \p Result and a constant \p Overflow value. in canonicalizeConstantArg0ToArg1()
817 Constant *Overflow) { in canonicalizeConstantArg0ToArg1()
818 Constant *V[] = {PoisonValue::get(Result->getType()), Overflow};
1110 bool Overflow; in moveAddAfterMinMax()
1112 IsSigned ? C1->ssub_ov(*C0, Overflow) : C1->usub_ov(*C0, Overflow); in moveAddAfterMinMax()
1113 assert(!Overflow && "Expected simplify of min/max"); in moveAddAfterMinMax()
2177 bool Overflow; in visitCallInst()
2179 IsSigned ? C1->sadd_ov(*C0, Overflow) : C1->uadd_ov(*C0, Overflow); in visitCallInst()
822 createOverflowTuple(IntrinsicInst * II,Value * Result,Constant * Overflow) createOverflowTuple() argument
1120 bool Overflow; moveAddAfterMinMax() local
2084 bool Overflow; visitCallInst() local
2183 bool Overflow; visitCallInst() local
[all...]
H A DInstCombineMulDivRem.cpp1054 bool Overflow; in commonIDivTransforms()
1055 Product = IsSigned ? C1.smul_ov(C2, Overflow) : C1.umul_ov(C2, Overflow); in commonIDivTransforms()
1056 return Overflow; in commonIDivTransforms()
1531 bool Overflow; in visitSDiv()
1532 APInt C2ShlC1 = C2->ushl_ov(*C1, Overflow); in visitSDiv()
1533 if (!Overflow) { in visitSDiv()
917 bool Overflow; multiplyOverflows() local
1395 bool Overflow; visitUDiv() local
H A DInstCombineCompares.cpp46 bool Overflow; in addWithOverflow()
48 Result = In1.sadd_ov(In2, Overflow); in addWithOverflow()
50 Result = In1.uadd_ov(In2, Overflow); in addWithOverflow()
52 return Overflow; in addWithOverflow()
59 bool Overflow; in subWithOverflow()
61 Result = In1.ssub_ov(In2, Overflow); in subWithOverflow()
63 Result = In1.usub_ov(In2, Overflow); in subWithOverflow()
65 return Overflow; in subWithOverflow()
3068 bool Overflow; in matchThreeWayIntCompare()
3070 Cmp.isSigned() ? C.ssub_ov(*C2, Overflow) in matchThreeWayIntCompare()
45 bool Overflow; addWithOverflow() local
58 bool Overflow; subWithOverflow() local
2977 bool Overflow; foldICmpAddConstant() local
5757 OptimizeOverflowCheck(Instruction::BinaryOps BinaryOp,bool IsSigned,Value * LHS,Value * RHS,Instruction & OrigI,Value * & Result,Constant * & Overflow) OptimizeOverflowCheck() argument
7144 Constant *Overflow; visitICmpInst() local
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kInstrControl.td61 /// MI—Minus VC—Overflow clear
63 /// NE—Not equal VS—Overflow set

1234