Home
last modified time | relevance | path

Searched refs:OverflowResult (Results 1 – 13 of 13) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantRange.h542 enum class OverflowResult { enum
554 OverflowResult unsignedAddMayOverflow(const ConstantRange &Other) const;
557 OverflowResult signedAddMayOverflow(const ConstantRange &Other) const;
560 OverflowResult unsignedSubMayOverflow(const ConstantRange &Other) const;
563 OverflowResult signedSubMayOverflow(const ConstantRange &Other) const;
566 OverflowResult unsignedMulMayOverflow(const ConstantRange &Other) const;
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp1866 return OverflowResult::MayOverflow; in unsignedAddMayOverflow()
1875 return OverflowResult::MayOverflow; in unsignedAddMayOverflow()
1882 return OverflowResult::MayOverflow; in signedAddMayOverflow()
1901 return OverflowResult::MayOverflow; in signedAddMayOverflow()
1904 return OverflowResult::MayOverflow; in signedAddMayOverflow()
1912 return OverflowResult::MayOverflow; in unsignedSubMayOverflow()
1921 return OverflowResult::MayOverflow; in unsignedSubMayOverflow()
1928 return OverflowResult::MayOverflow; in signedSubMayOverflow()
1947 return OverflowResult::MayOverflow; in signedSubMayOverflow()
1950 return OverflowResult::MayOverflow; in signedSubMayOverflow()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopFlatten.cpp637 static OverflowResult checkOverflow(FlattenInfo &FI, DominatorTree *DT, in checkOverflow()
644 return OverflowResult::NeverOverflows; in checkOverflow()
648 OverflowResult OR = computeOverflowForUnsignedMul( in checkOverflow()
652 if (OR != OverflowResult::MayOverflow) in checkOverflow()
684 return OverflowResult::NeverOverflows; in checkOverflow()
688 return OverflowResult::NeverOverflows; in checkOverflow()
691 return OverflowResult::MayOverflow; in checkOverflow()
930 OverflowResult OR = checkOverflow(FI, DT, AC); in FlattenLoopPair()
931 if (OR == OverflowResult::AlwaysOverflowsHigh || in FlattenLoopPair()
932 OR == OverflowResult::AlwaysOverflowsLow) { in FlattenLoopPair()
[all …]
H A DNaryReassociate.cpp377 computeOverflowForSignedAdd(AO, SQ) != OverflowResult::NeverOverflows) in tryReassociateGEPAtIndex()
H A DLICM.cpp2551 llvm::OverflowResult::NeverOverflows; in hoistAdd()
2605 llvm::OverflowResult::NeverOverflows) in hoistSub()
2610 llvm::OverflowResult::NeverOverflows) in hoistSub()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h500 OverflowResult computeOverflowForUnsignedMul(const Value *LHS, in computeOverflowForUnsignedMul()
507 OverflowResult computeOverflowForSignedMul(const Value *LHS, const Value *RHS, in computeOverflowForSignedMul()
513 OverflowResult
521 OverflowResult
529 OverflowResult computeOverflowForUnsignedSub(const Value *LHS, in computeOverflowForUnsignedSub()
536 OverflowResult computeOverflowForSignedSub(const Value *LHS, const Value *RHS, in computeOverflowForSignedSub()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DValueTracking.h822 enum class OverflowResult { enum
833 OverflowResult computeOverflowForUnsignedMul(const Value *LHS, const Value *RHS,
835 OverflowResult computeOverflowForSignedMul(const Value *LHS, const Value *RHS,
837 OverflowResult
841 OverflowResult computeOverflowForSignedAdd(const WithCache<const Value *> &LHS,
845 OverflowResult computeOverflowForSignedAdd(const AddOperator *Add,
847 OverflowResult computeOverflowForUnsignedSub(const Value *LHS, const Value *RHS,
849 OverflowResult computeOverflowForSignedSub(const Value *LHS, const Value *RHS,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineInternal.h272 Constant *&OverflowResult);
311 OverflowResult::NeverOverflows; in willNotOverflowSignedAdd()
318 OverflowResult::NeverOverflows; in willNotOverflowUnsignedAdd()
330 OverflowResult::NeverOverflows; in willNotOverflowSignedSub()
336 OverflowResult::NeverOverflows; in willNotOverflowUnsignedSub()
348 OverflowResult::NeverOverflows; in willNotOverflowSignedMul()
354 OverflowResult::NeverOverflows; in willNotOverflowUnsignedMul()
479 OverflowResult computeOverflow(
H A DInstCombineCalls.cpp833 Constant *OverflowResult = nullptr; in foldIntrinsicWithOverflowCommon() local
835 WO->getRHS(), *WO, OperationResult, OverflowResult)) in foldIntrinsicWithOverflowCommon()
836 return createOverflowTuple(WO, OperationResult, OverflowResult); in foldIntrinsicWithOverflowCommon()
2135 OverflowResult OR = computeOverflow(SI->getBinaryOp(), SI->isSigned(), in visitCallInst()
2138 case OverflowResult::MayOverflow: in visitCallInst()
2140 case OverflowResult::NeverOverflows: in visitCallInst()
2145 case OverflowResult::AlwaysOverflowsLow: { in visitCallInst()
2150 case OverflowResult::AlwaysOverflowsHigh: { in visitCallInst()
H A DInstCombineCompares.cpp3435 OverflowResult OR = computeOverflow( in foldICmpBinOpEqualityWithConstant()
3438 if (OR == OverflowResult::NeverOverflows) { in foldICmpBinOpEqualityWithConstant()
5728 OverflowResult
5778 case OverflowResult::MayOverflow: in OptimizeOverflowCheck()
5780 case OverflowResult::AlwaysOverflowsLow: in OptimizeOverflowCheck()
5781 case OverflowResult::AlwaysOverflowsHigh: in OptimizeOverflowCheck()
5786 case OverflowResult::NeverOverflows: in OptimizeOverflowCheck()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp6271 static OverflowResult mapOverflowResult(ConstantRange::OverflowResult OR) { in mapOverflowResult()
6274 return OverflowResult::MayOverflow; in mapOverflowResult()
6327 return OverflowResult::NeverOverflows; in computeOverflowForSignedMul()
6344 return OverflowResult::MayOverflow; in computeOverflowForSignedMul()
6347 OverflowResult
6358 static OverflowResult
6388 OverflowResult OR = in computeOverflowForSignedAdd()
6390 if (OR != OverflowResult::MayOverflow) in computeOverflowForSignedAdd()
6395 return OverflowResult::MayOverflow; in computeOverflowForSignedAdd()
6414 return OverflowResult::MayOverflow; in computeOverflowForSignedAdd()
[all …]
H A DStackSafetyAnalysis.cpp82 ConstantRange::OverflowResult::NeverOverflows) in addOverflowNever()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp4045 static SelectionDAG::OverflowKind mapOverflowResult(ConstantRange::OverflowResult OR) { in mapOverflowResult()
4047 case ConstantRange::OverflowResult::MayOverflow: in mapOverflowResult()
4049 case ConstantRange::OverflowResult::AlwaysOverflowsLow: in mapOverflowResult()
4050 case ConstantRange::OverflowResult::AlwaysOverflowsHigh: in mapOverflowResult()
4052 case ConstantRange::OverflowResult::NeverOverflows: in mapOverflowResult()