Searched refs:OverflowResult (Results 1 – 11 of 11) sorted by relevance
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | ConstantRange.h | 490 enum class OverflowResult { enum 502 OverflowResult unsignedAddMayOverflow(const ConstantRange &Other) const; 505 OverflowResult signedAddMayOverflow(const ConstantRange &Other) const; 508 OverflowResult unsignedSubMayOverflow(const ConstantRange &Other) const; 511 OverflowResult signedSubMayOverflow(const ConstantRange &Other) const; 514 OverflowResult unsignedMulMayOverflow(const ConstantRange &Other) const;
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 1575 return OverflowResult::MayOverflow; in unsignedAddMayOverflow() 1584 return OverflowResult::MayOverflow; in unsignedAddMayOverflow() 1591 return OverflowResult::MayOverflow; in signedAddMayOverflow() 1610 return OverflowResult::MayOverflow; in signedAddMayOverflow() 1613 return OverflowResult::MayOverflow; in signedAddMayOverflow() 1621 return OverflowResult::MayOverflow; in unsignedSubMayOverflow() 1630 return OverflowResult::MayOverflow; in unsignedSubMayOverflow() 1637 return OverflowResult::MayOverflow; in signedSubMayOverflow() 1656 return OverflowResult::MayOverflow; in signedSubMayOverflow() 1659 return OverflowResult::MayOverflow; in signedSubMayOverflow() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineInternal.h | 225 Constant *&OverflowResult); 258 OverflowResult::NeverOverflows; in willNotOverflowSignedAdd() 264 OverflowResult::NeverOverflows; in willNotOverflowUnsignedAdd() 276 OverflowResult::NeverOverflows; in willNotOverflowSignedSub() 282 OverflowResult::NeverOverflows; in willNotOverflowUnsignedSub() 294 OverflowResult::NeverOverflows; in willNotOverflowSignedMul() 300 OverflowResult::NeverOverflows; in willNotOverflowUnsignedMul() 488 OverflowResult computeOverflowForUnsignedMul(const Value *LHS, in computeOverflowForUnsignedMul() 494 OverflowResult computeOverflowForSignedMul(const Value *LHS, in computeOverflowForSignedMul() 506 OverflowResult computeOverflowForSignedAdd(const Value *LHS, in computeOverflowForSignedAdd() [all …]
|
| H A D | InstCombineCalls.cpp | 737 Constant *OverflowResult = nullptr; in foldIntrinsicWithOverflowCommon() local 739 WO->getRHS(), *WO, OperationResult, OverflowResult)) in foldIntrinsicWithOverflowCommon() 740 return createOverflowTuple(WO, OperationResult, OverflowResult); in foldIntrinsicWithOverflowCommon() 1247 OverflowResult OR = computeOverflow(SI->getBinaryOp(), SI->isSigned(), in visitCallInst() 1250 case OverflowResult::MayOverflow: in visitCallInst() 1252 case OverflowResult::NeverOverflows: in visitCallInst() 1257 case OverflowResult::AlwaysOverflowsLow: { in visitCallInst() 1262 case OverflowResult::AlwaysOverflowsHigh: { in visitCallInst()
|
| H A D | InstCombineCompares.cpp | 4638 OverflowResult 4688 case OverflowResult::MayOverflow: in OptimizeOverflowCheck() 4690 case OverflowResult::AlwaysOverflowsLow: in OptimizeOverflowCheck() 4691 case OverflowResult::AlwaysOverflowsHigh: in OptimizeOverflowCheck() 4696 case OverflowResult::NeverOverflows: in OptimizeOverflowCheck()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopFlatten.cpp | 434 static OverflowResult checkOverflow(FlattenInfo &FI, DominatorTree *DT, in checkOverflow() 441 return OverflowResult::NeverOverflows; in checkOverflow() 445 OverflowResult OR = computeOverflowForUnsignedMul( in checkOverflow() 448 if (OR != OverflowResult::MayOverflow) in checkOverflow() 464 return OverflowResult::NeverOverflows; in checkOverflow() 470 return OverflowResult::MayOverflow; in checkOverflow() 651 OverflowResult OR = checkOverflow(FI, DT, AC); in FlattenLoopPair() 652 if (OR == OverflowResult::AlwaysOverflowsHigh || in FlattenLoopPair() 653 OR == OverflowResult::AlwaysOverflowsLow) { in FlattenLoopPair() 656 } else if (OR == OverflowResult::MayOverflow) { in FlattenLoopPair()
|
| H A D | NaryReassociate.cpp | 373 OverflowResult::NeverOverflows) in tryReassociateGEPAtIndex()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | ValueTracking.h | 487 enum class OverflowResult { enum 498 OverflowResult computeOverflowForUnsignedMul(const Value *LHS, 505 OverflowResult computeOverflowForSignedMul(const Value *LHS, const Value *RHS, 511 OverflowResult computeOverflowForUnsignedAdd(const Value *LHS, 518 OverflowResult computeOverflowForSignedAdd(const Value *LHS, const Value *RHS, 524 OverflowResult computeOverflowForSignedAdd(const AddOperator *Add, 529 OverflowResult computeOverflowForUnsignedSub(const Value *LHS, const Value *RHS, 534 OverflowResult computeOverflowForSignedSub(const Value *LHS, const Value *RHS,
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/ |
| H A D | InstCombiner.h | 482 OverflowResult computeOverflowForUnsignedMul(const Value *LHS, in computeOverflowForUnsignedMul() 488 OverflowResult computeOverflowForSignedMul(const Value *LHS, const Value *RHS, in computeOverflowForSignedMul() 493 OverflowResult computeOverflowForUnsignedAdd(const Value *LHS, in computeOverflowForUnsignedAdd() 499 OverflowResult computeOverflowForSignedAdd(const Value *LHS, const Value *RHS, in computeOverflowForSignedAdd() 504 OverflowResult computeOverflowForUnsignedSub(const Value *LHS, in computeOverflowForUnsignedSub() 510 OverflowResult computeOverflowForSignedSub(const Value *LHS, const Value *RHS, in computeOverflowForSignedSub()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ValueTracking.cpp | 4673 static OverflowResult mapOverflowResult(ConstantRange::OverflowResult OR) { in mapOverflowResult() 4676 return OverflowResult::MayOverflow; in mapOverflowResult() 4714 OverflowResult 4735 return OverflowResult::NeverOverflows; in computeOverflowForSignedMul() 4754 return OverflowResult::MayOverflow; in computeOverflowForSignedMul() 4778 return OverflowResult::NeverOverflows; in computeOverflowForSignedAdd() 4797 return OverflowResult::NeverOverflows; in computeOverflowForSignedAdd() 4803 OverflowResult OR = in computeOverflowForSignedAdd() 4805 if (OR != OverflowResult::MayOverflow) in computeOverflowForSignedAdd() 4810 return OverflowResult::MayOverflow; in computeOverflowForSignedAdd() [all …]
|
| H A D | StackSafetyAnalysis.cpp | 80 ConstantRange::OverflowResult::NeverOverflows) in addOverflowNever()
|