Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAPFixedPoint.cpp36 if (Overflow) in convert()
199 if (Overflow) in add()
223 if (Overflow) in sub()
279 if (Overflow) in mul()
340 if (Overflow) in div()
375 if (Overflow) in shl()
430 if (Overflow) in negate()
431 *Overflow = in negate()
437 if (Overflow) in negate()
461 if (Overflow) { in convertToInt()
[all …]
H A DBlockFrequency.cpp42 bool Overflow; in mul() local
43 uint64_t ResultFrequency = SaturatingMultiply(Frequency, Factor, &Overflow); in mul()
44 if (Overflow) in mul()
H A DAPInt.cpp2000 if (Overflow) in sshl_ov()
2017 if (Overflow) in ushl_ov()
2026 bool Overflow; in sadd_sat() local
2028 if (!Overflow) in sadd_sat()
2036 bool Overflow; in uadd_sat() local
2038 if (!Overflow) in uadd_sat()
2045 bool Overflow; in ssub_sat() local
2047 if (!Overflow) in ssub_sat()
2055 bool Overflow; in usub_sat() local
2057 if (!Overflow) in usub_sat()
[all …]
H A DKnownBits.cpp497 std::optional<bool> Overflow; in computeForSatAddSub() local
505 Overflow = (LHS.isNonNegative() == RHS.isNonNegative() && in computeForSatAddSub()
509 Overflow = (LHS.isNonNegative() != RHS.isNonNegative() && in computeForSatAddSub()
518 Overflow = false; in computeForSatAddSub()
522 Overflow = true; in computeForSatAddSub()
529 Overflow = false; in computeForSatAddSub()
533 Overflow = true; in computeForSatAddSub()
584 if (Overflow) { in computeForSatAddSub()
586 if (!(*Overflow)) { in computeForSatAddSub()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPFixedPoint.h184 bool *Overflow = nullptr) const;
190 APFixedPoint add(const APFixedPoint &Other, bool *Overflow = nullptr) const;
191 APFixedPoint sub(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 = false;
208 APFixedPoint negate(bool *Overflow = nullptr) const;
228 bool *Overflow = nullptr) const;
274 bool *Overflow = nullptr);
[all …]
H A DAPInt.h988 APInt sadd_ov(const APInt &RHS, bool &Overflow) const;
989 APInt uadd_ov(const APInt &RHS, bool &Overflow) const;
990 APInt ssub_ov(const APInt &RHS, bool &Overflow) const;
991 APInt usub_ov(const APInt &RHS, bool &Overflow) const;
992 APInt sdiv_ov(const APInt &RHS, bool &Overflow) const;
993 APInt smul_ov(const APInt &RHS, bool &Overflow) const;
994 APInt umul_ov(const APInt &RHS, bool &Overflow) const;
995 APInt sshl_ov(const APInt &Amt, bool &Overflow) const;
996 APInt sshl_ov(unsigned Amt, bool &Overflow) const;
997 APInt ushl_ov(const APInt &Amt, bool &Overflow) const;
[all …]
/freebsd/sys/contrib/device-tree/Bindings/perf/
H A Darm,cmn.yaml29 - description: Overflow interrupt for DTC0
30 - description: Overflow interrupt for DTC1
31 - description: Overflow interrupt for DTC2
32 - description: Overflow interrupt for DTC3
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DOperator.cpp121 bool Overflow = false; in accumulateConstantOffset() local
122 APInt OffsetPlus = Index.smul_ov(IndexedSize, Overflow); in accumulateConstantOffset()
123 if (Overflow) in accumulateConstantOffset()
125 Offset = Offset.sadd_ov(OffsetPlus, Overflow); in accumulateConstantOffset()
126 if (Overflow) in accumulateConstantOffset()
H A DValue.cpp757 bool Overflow = false; in stripAndAccumulateConstantOffsets() local
759 Offset = Offset.sadd_ov(GEPOffsetST, Overflow); in stripAndAccumulateConstantOffsets()
760 if (Overflow) { in stripAndAccumulateConstantOffsets()
H A DConstantRange.cpp1962 bool Overflow; in unsignedMulMayOverflow() local
1964 (void) Min.umul_ov(OtherMin, Overflow); in unsignedMulMayOverflow()
1965 if (Overflow) in unsignedMulMayOverflow()
1968 (void) Max.umul_ov(OtherMax, Overflow); in unsignedMulMayOverflow()
1969 if (Overflow) in unsignedMulMayOverflow()
/freebsd/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/contrib/llvm-project/clang/lib/Lex/
H A DPPExpressions.cpp490 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), false); in EvaluateDirectiveSubExpr()
762 Res = llvm::APSInt(LHS.Val.ssub_ov(RHS.Val, Overflow), false); 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()
/freebsd/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()
168 return LeftOperand.smul_ov(RightOperand, Overflow); in exprMul()
177 return LeftOperand.sdiv_ov(RightOperand, Overflow); in exprDiv()
182 Overflow = false; in exprMax()
188 Overflow = false; in exprMin()
220 bool Overflow; in eval() local
228 Expected<APInt> MaybeResult = EvalBinop(LeftOp, RightOp, Overflow); in eval()
[all …]
/freebsd/contrib/tcsh/nls/italian/
H A Dset147 45 Overflow di linea
97 95 Overflow di buffer nella sostituzione
127 125 Overflow di selettore
/freebsd/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.cpp320 bool Overflow = false; in isDereferenceableAndAlignedInLoop() local
321 AccessSize = AccessSize.uadd_ov(Offset->getAPInt(), Overflow); in isDereferenceableAndAlignedInLoop()
322 if (Overflow) in isDereferenceableAndAlignedInLoop()
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.cpp2777 bool Overflow; in ConstantFoldScalarCall2() local
2781 Res = C0->sadd_ov(*C1, Overflow); in ConstantFoldScalarCall2()
2784 Res = C0->uadd_ov(*C1, Overflow); in ConstantFoldScalarCall2()
2787 Res = C0->ssub_ov(*C1, Overflow); in ConstantFoldScalarCall2()
2790 Res = C0->usub_ov(*C1, Overflow); in ConstantFoldScalarCall2()
2793 Res = C0->smul_ov(*C1, Overflow); in ConstantFoldScalarCall2()
2796 Res = C0->umul_ov(*C1, Overflow); in ConstantFoldScalarCall2()
2801 ConstantInt::get(Type::getInt1Ty(Ty->getContext()), Overflow) in ConstantFoldScalarCall2()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeVectorOps.cpp1782 SDValue Result, Overflow; in ExpandUADDSUBO() local
1783 TLI.expandUADDSUBO(Node, Result, Overflow, DAG); in ExpandUADDSUBO()
1785 Results.push_back(Overflow); in ExpandUADDSUBO()
1790 SDValue Result, Overflow; in ExpandSADDSUBO() local
1791 TLI.expandSADDSUBO(Node, Result, Overflow, DAG); in ExpandSADDSUBO()
1793 Results.push_back(Overflow); in ExpandSADDSUBO()
1798 SDValue Result, Overflow; in ExpandMULO() local
1799 if (!TLI.expandMULO(Node, Result, Overflow, DAG)) in ExpandMULO()
1800 std::tie(Result, Overflow) = DAG.UnrollVectorOverflowOp(Node); in ExpandMULO()
1803 Results.push_back(Overflow); in ExpandMULO()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPrepareFunctions.cpp230 Value *Overflow = IRB.CreateICmpNE(UMulFunc->getArg(0), Div); in buildUMulWithOverflowFunc() local
236 Value *Res = IRB.CreateInsertValue(Agg, Overflow, {1}); in buildUMulWithOverflowFunc()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp822 Constant *Overflow) { in createOverflowTuple() argument
823 Constant *V[] = {PoisonValue::get(Result->getType()), Overflow}; in createOverflowTuple()
1120 bool Overflow; in moveAddAfterMinMax() local
1122 IsSigned ? C1->ssub_ov(*C0, Overflow) : C1->usub_ov(*C0, Overflow); in moveAddAfterMinMax()
1123 assert(!Overflow && "Expected simplify of min/max"); in moveAddAfterMinMax()
2084 bool Overflow; in visitCallInst() local
2086 IsSigned ? C1->sadd_ov(*C0, Overflow) : C1->uadd_ov(*C0, Overflow); in visitCallInst()
2087 if (!Overflow) in visitCallInst()
2183 bool Overflow; in visitCallInst() local
2184 NewVal = Val->sadd_ov(*Val2, Overflow); in visitCallInst()
[all …]
H A DInstCombineMulDivRem.cpp917 bool Overflow; in multiplyOverflows() local
918 Product = IsSigned ? C1.smul_ov(C2, Overflow) : C1.umul_ov(C2, Overflow); in multiplyOverflows()
919 return Overflow; in multiplyOverflows()
1395 bool Overflow; in visitUDiv() local
1396 APInt C2ShlC1 = C2->ushl_ov(*C1, Overflow); in visitUDiv()
1397 if (!Overflow) { in visitUDiv()
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kInstrControl.td61 /// MI—Minus VC—Overflow clear
63 /// NE—Not equal VS—Overflow set

1234