Home
last modified time | relevance | path

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

12

/external/clang/lib/Lex/
DPPExpressions.cpp377 bool Overflow = !Result.isUnsigned() && Result.Val.isMinSignedValue(); in EvaluateValue() local
380 if (Overflow && ValueLive) in EvaluateValue()
572 bool Overflow = false; in EvaluateDirectiveSubExpr() local
587 Res = llvm::APSInt(LHS.Val.sdiv_ov(RHS.Val, Overflow), false); in EvaluateDirectiveSubExpr()
599 Res = llvm::APSInt(LHS.Val.smul_ov(RHS.Val, Overflow), false); in EvaluateDirectiveSubExpr()
606 Res = LHS.Val.ushl_ov(RHS.Val, Overflow); in EvaluateDirectiveSubExpr()
608 Res = llvm::APSInt(LHS.Val.sshl_ov(RHS.Val, Overflow), false); in EvaluateDirectiveSubExpr()
615 Overflow = true, ShAmt = LHS.getBitWidth()-1; in EvaluateDirectiveSubExpr()
623 Res = llvm::APSInt(LHS.Val.sadd_ov(RHS.Val, Overflow), false); in EvaluateDirectiveSubExpr()
629 Res = llvm::APSInt(LHS.Val.ssub_ov(RHS.Val, Overflow), false); in EvaluateDirectiveSubExpr()
[all …]
DLiteralSupport.cpp142 bool Overflow = false; in ProcessCharEscape() local
148 Overflow = true; in ProcessCharEscape()
155 Overflow = true; in ProcessCharEscape()
160 if (Overflow && Diags) // Too many digits to fit in in ProcessCharEscape()
/external/clang/test/SemaTemplate/
Dtemp_arg_nontype.cpp96 template<unsigned char C> struct Overflow; // expected-note{{template parameter is declared here}}
98 Overflow<5> *overflow1; // okay
99 Overflow<255> *overflow2; // okay
100 Overflow<256> *overflow3; // expected-warning{{non-type template argument value '256' truncated to …
/external/pdfium/third_party/freetype/src/psaux/
Dpsconv.c295 goto Overflow; in PS_Conv_ToFixed()
302 goto Overflow; in PS_Conv_ToFixed()
308 goto Overflow; in PS_Conv_ToFixed()
349 Overflow: in PS_Conv_ToFixed()
/external/freetype/src/psaux/
Dpsconv.c295 goto Overflow; in PS_Conv_ToFixed()
302 goto Overflow; in PS_Conv_ToFixed()
308 goto Overflow; in PS_Conv_ToFixed()
349 Overflow: in PS_Conv_ToFixed()
/external/llvm/lib/Support/
DAPInt.cpp2015 APInt APInt::sadd_ov(const APInt &RHS, bool &Overflow) const { in sadd_ov()
2017 Overflow = isNonNegative() == RHS.isNonNegative() && in sadd_ov()
2022 APInt APInt::uadd_ov(const APInt &RHS, bool &Overflow) const { in uadd_ov()
2024 Overflow = Res.ult(RHS); in uadd_ov()
2028 APInt APInt::ssub_ov(const APInt &RHS, bool &Overflow) const { in ssub_ov()
2030 Overflow = isNonNegative() != RHS.isNonNegative() && in ssub_ov()
2035 APInt APInt::usub_ov(const APInt &RHS, bool &Overflow) const { in usub_ov()
2037 Overflow = Res.ugt(*this); in usub_ov()
2041 APInt APInt::sdiv_ov(const APInt &RHS, bool &Overflow) const { in sdiv_ov()
2043 Overflow = isMinSignedValue() && RHS.isAllOnesValue(); in sdiv_ov()
[all …]
/external/llvm/include/llvm/ADT/
DAPInt.h949 APInt sadd_ov(const APInt &RHS, bool &Overflow) const;
950 APInt uadd_ov(const APInt &RHS, bool &Overflow) const;
951 APInt ssub_ov(const APInt &RHS, bool &Overflow) const;
952 APInt usub_ov(const APInt &RHS, bool &Overflow) const;
953 APInt sdiv_ov(const APInt &RHS, bool &Overflow) const;
954 APInt smul_ov(const APInt &RHS, bool &Overflow) const;
955 APInt umul_ov(const APInt &RHS, bool &Overflow) const;
956 APInt sshl_ov(const APInt &Amt, bool &Overflow) const;
957 APInt ushl_ov(const APInt &Amt, bool &Overflow) const;
/external/pdfium/third_party/freetype/src/cff/
Dcffparse.c269 goto Overflow; in cff_parse_real()
339 goto Overflow; in cff_parse_real()
370 goto Overflow; in cff_parse_real()
382 Overflow: in cff_parse_real()
426 goto Overflow; in do_fixed()
431 goto Overflow; in do_fixed()
436 Overflow: in do_fixed()
/external/freetype/src/cff/
Dcffparse.c269 goto Overflow; in cff_parse_real()
339 goto Overflow; in cff_parse_real()
370 goto Overflow; in cff_parse_real()
382 Overflow: in cff_parse_real()
426 goto Overflow; in do_fixed()
431 goto Overflow; in do_fixed()
436 Overflow: in do_fixed()
/external/llvm/lib/Analysis/
DConstantFolding.cpp1665 bool Overflow; in ConstantFoldScalarCall() local
1669 Res = Op1->getValue().sadd_ov(Op2->getValue(), Overflow); in ConstantFoldScalarCall()
1672 Res = Op1->getValue().uadd_ov(Op2->getValue(), Overflow); in ConstantFoldScalarCall()
1675 Res = Op1->getValue().ssub_ov(Op2->getValue(), Overflow); in ConstantFoldScalarCall()
1678 Res = Op1->getValue().usub_ov(Op2->getValue(), Overflow); in ConstantFoldScalarCall()
1681 Res = Op1->getValue().smul_ov(Op2->getValue(), Overflow); in ConstantFoldScalarCall()
1684 Res = Op1->getValue().umul_ov(Op2->getValue(), Overflow); in ConstantFoldScalarCall()
1689 ConstantInt::get(Type::getInt1Ty(Ty->getContext()), Overflow) in ConstantFoldScalarCall()
DScalarEvolution.cpp2311 static uint64_t umul_ov(uint64_t i, uint64_t j, bool &Overflow) { in umul_ov() argument
2313 if (j > 1 && k / j != i) Overflow = true; in umul_ov()
2320 static uint64_t Choose(uint64_t n, uint64_t k, bool &Overflow) { in Choose() argument
2337 r = umul_ov(r, n-(i-1), Overflow); in Choose()
2542 bool Overflow = false; in getMulExpr() local
2547 OtherAddRec->getNumOperands() - 1; x != xe && !Overflow; ++x) { in getMulExpr()
2549 for (int y = x, ye = 2*x+1; y != ye && !Overflow; ++y) { in getMulExpr()
2550 uint64_t Coeff1 = Choose(x, 2*x - y, Overflow); in getMulExpr()
2553 z < ze && !Overflow; ++z) { in getMulExpr()
2554 uint64_t Coeff2 = Choose(2*x - y, x-z, Overflow); in getMulExpr()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp83 bool Overflow; in MultiplyOverflows() local
85 Product = C1.smul_ov(C2, Overflow); in MultiplyOverflows()
87 Product = C1.umul_ov(C2, Overflow); in MultiplyOverflows()
89 return Overflow; in MultiplyOverflows()
1051 bool Overflow; in visitUDiv() local
1052 APInt C2ShlC1 = C2->ushl_ov(*C1, Overflow); in visitUDiv()
1053 if (!Overflow) { in visitUDiv()
DInstCombineInternal.h442 Constant *Overflow) { in CreateOverflowTuple() argument
443 Constant *V[] = {UndefValue::get(Result->getType()), Overflow}; in CreateOverflowTuple()
DInstructionCombining.cpp133 bool Overflow = false; in MaintainNoSignedWrap() local
136 BVal.sadd_ov(CVal, Overflow); in MaintainNoSignedWrap()
138 BVal.ssub_ov(CVal, Overflow); in MaintainNoSignedWrap()
141 return !Overflow; in MaintainNoSignedWrap()
DInstCombineCompares.cpp2114 Value *&Result, Constant *&Overflow) { in OptimizeOverflowCheck() argument
2121 Overflow = OverflowVal; in OptimizeOverflowCheck()
3519 Constant *Overflow; in visitICmpInst() local
3521 Overflow)) { in visitICmpInst()
3523 return ReplaceInstUsesWith(I, Overflow); in visitICmpInst()
/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_mutexset_test.cc108 TEST(MutexSet, Overflow) { in TEST() argument
/external/llvm/test/Transforms/InstCombine/
Dmemchr.ll84 ; Overflow, but we still find the right thing.
97 ; Overflow
/external/llvm/lib/Transforms/Scalar/
DEarlyCSE.cpp101 unsigned Overflow = in getHashValue() local
105 return hash_combine(BinOp->getOpcode(), Overflow, LHS, RHS); in getHashValue()
/external/llvm/lib/Target/R600/
DR600ISelLowering.cpp1025 SDValue Overflow = DAG.getNode(ISD::SRL, DL, VT, Lo, CompShift); in LowerSHLParts() local
1026 Overflow = DAG.getNode(ISD::SRL, DL, VT, Overflow, One); in LowerSHLParts()
1029 HiSmall = DAG.getNode(ISD::OR, DL, VT, HiSmall, Overflow); in LowerSHLParts()
1063 SDValue Overflow = DAG.getNode(ISD::SHL, DL, VT, Hi, CompShift); in LowerSRXParts() local
1064 Overflow = DAG.getNode(ISD::SHL, DL, VT, Overflow, One); in LowerSRXParts()
1068 LoSmall = DAG.getNode(ISD::OR, DL, VT, LoSmall, Overflow); in LowerSRXParts()
/external/freetype/src/raster/
Dftraster.c654 ras.error = FT_THROW( Overflow ); in New_Profile()
761 ras.error = FT_THROW( Overflow ); in End_Profile()
817 ras.error = FT_THROW( Overflow ); in Insert_Y_Turn()
1070 ras.error = FT_THROW( Overflow ); in Line_Up()
1245 ras.error = FT_THROW( Overflow ); in Bezier_Up()
/external/pdfium/third_party/freetype/src/raster/
Dftraster.c748 ras.error = FT_THROW( Overflow ); in New_Profile()
855 ras.error = FT_THROW( Overflow ); in End_Profile()
911 ras.error = FT_THROW( Overflow ); in Insert_Y_Turn()
1164 ras.error = FT_THROW( Overflow ); in Line_Up()
1339 ras.error = FT_THROW( Overflow ); in Bezier_Up()
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeIntegerTypes.cpp732 SDValue Overflow; in PromoteIntRes_XMULO() local
737 Overflow = DAG.getSetCC(DL, N->getValueType(1), Hi, in PromoteIntRes_XMULO()
743 Overflow = DAG.getSetCC(DL, N->getValueType(1), SExt, Mul, ISD::SETNE); in PromoteIntRes_XMULO()
748 Overflow = DAG.getNode(ISD::OR, DL, N->getValueType(1), Overflow, in PromoteIntRes_XMULO()
752 ReplaceValueWith(SDValue(N, 1), Overflow); in PromoteIntRes_XMULO()
2340 SDValue Overflow = DAG.getSetCC(dl, N->getValueType(1), DIV, LHS, in ExpandIntRes_XMULO() local
2342 Overflow = DAG.getSelect(dl, N->getValueType(1), isZero, in ExpandIntRes_XMULO()
2344 Overflow); in ExpandIntRes_XMULO()
2345 ReplaceValueWith(SDValue(N, 1), Overflow); in ExpandIntRes_XMULO()
/external/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp1268 SDValue Value, Overflow; in getAArch64XALUOOp() local
1327 Overflow = DAG.getNode(AArch64ISD::SUBS, DL, VTs, UpperBits, LowerBits) in getAArch64XALUOOp()
1338 Overflow = in getAArch64XALUOOp()
1354 Overflow = DAG.getNode(AArch64ISD::SUBS, DL, VTs, UpperBits, LowerBits) in getAArch64XALUOOp()
1359 Overflow = in getAArch64XALUOOp()
1372 Overflow = Value.getValue(1); in getAArch64XALUOOp()
1374 return std::make_pair(Value, Overflow); in getAArch64XALUOOp()
1486 SDValue Value, Overflow; in LowerXALUO() local
1487 std::tie(Value, Overflow) = getAArch64XALUOOp(CC, Op, DAG); in LowerXALUO()
1497 Overflow = DAG.getNode(AArch64ISD::CSEL, SDLoc(Op), MVT::i32, FVal, TVal, in LowerXALUO()
[all …]
/external/clang/test/CXX/expr/expr.const/
Dp2-0x.cpp228 namespace Overflow { namespace
/external/llvm/lib/Transforms/Instrumentation/
DMemorySanitizer.cpp1052 bool Overflow = ArgOffset + Size > kParamTLSSize; in getShadow() local
1063 if (Overflow) { in getShadow()
1078 if (Overflow) { in getShadow()
1088 if (MS.TrackOrigins && !Overflow) { in getShadow()

12