Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantRange.h577 enum class OverflowResult { enum
589 LLVM_ABI OverflowResult
593 LLVM_ABI OverflowResult
597 LLVM_ABI OverflowResult
601 LLVM_ABI OverflowResult
605 LLVM_ABI OverflowResult
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp2141 ConstantRange::OverflowResult ConstantRange::unsignedAddMayOverflow( in unsignedAddMayOverflow()
2144 return OverflowResult::MayOverflow; in unsignedAddMayOverflow()
2151 return OverflowResult::AlwaysOverflowsHigh; in unsignedAddMayOverflow()
2153 return OverflowResult::MayOverflow; in unsignedAddMayOverflow()
2154 return OverflowResult::NeverOverflows; in unsignedAddMayOverflow()
2157 ConstantRange::OverflowResult ConstantRange::signedAddMayOverflow( in signedAddMayOverflow()
2160 return OverflowResult::MayOverflow; in signedAddMayOverflow()
2172 return OverflowResult::AlwaysOverflowsHigh; in signedAddMayOverflow()
2175 return OverflowResult::AlwaysOverflowsLow; in signedAddMayOverflow()
2179 return OverflowResult::MayOverflow; in signedAddMayOverflow()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopFlatten.cpp644 static OverflowResult checkOverflow(FlattenInfo &FI, DominatorTree *DT, in checkOverflow()
651 return OverflowResult::NeverOverflows; in checkOverflow()
655 OverflowResult OR = computeOverflowForUnsignedMul( in checkOverflow()
659 if (OR != OverflowResult::MayOverflow) in checkOverflow()
691 return OverflowResult::NeverOverflows; in checkOverflow()
695 return OverflowResult::NeverOverflows; in checkOverflow()
698 return OverflowResult::MayOverflow; in checkOverflow()
943 OverflowResult OR = checkOverflow(FI, DT, AC); in FlattenLoopPair()
944 if (OR == OverflowResult::AlwaysOverflowsHigh || in FlattenLoopPair()
945 OR == OverflowResult::AlwaysOverflowsLow) { in FlattenLoopPair()
[all …]
H A DLICM.cpp2589 llvm::OverflowResult::NeverOverflows) in hoistAdd()
2593 llvm::OverflowResult::NeverOverflows) in hoistAdd()
2655 llvm::OverflowResult::NeverOverflows) in hoistSub()
2660 llvm::OverflowResult::NeverOverflows) in hoistSub()
2665 llvm::OverflowResult::NeverOverflows) in hoistSub()
2670 llvm::OverflowResult::NeverOverflows) in hoistSub()
H A DNaryReassociate.cpp377 computeOverflowForSignedAdd(AO, SQ) != OverflowResult::NeverOverflows) in tryReassociateGEPAtIndex()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DValueTracking.h621 enum class OverflowResult { enum
632 LLVM_ABI OverflowResult computeOverflowForUnsignedMul(const Value *LHS,
636 LLVM_ABI OverflowResult computeOverflowForSignedMul(const Value *LHS,
639 LLVM_ABI OverflowResult computeOverflowForUnsignedAdd(
642 LLVM_ABI OverflowResult computeOverflowForSignedAdd(
646 LLVM_ABI OverflowResult computeOverflowForSignedAdd(const AddOperator *Add,
648 LLVM_ABI OverflowResult computeOverflowForUnsignedSub(const Value *LHS,
651 LLVM_ABI OverflowResult computeOverflowForSignedSub(const Value *LHS,
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h468 OverflowResult computeOverflowForUnsignedMul(const Value *LHS,
476 OverflowResult computeOverflowForSignedMul(const Value *LHS, const Value *RHS, in computeOverflowForSignedMul()
482 OverflowResult
490 OverflowResult
498 OverflowResult computeOverflowForUnsignedSub(const Value *LHS, in computeOverflowForUnsignedSub()
505 OverflowResult computeOverflowForSignedSub(const Value *LHS, const Value *RHS, in computeOverflowForSignedSub()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineInternal.h278 Constant *&OverflowResult);
317 OverflowResult::NeverOverflows; in willNotOverflowSignedAdd()
324 OverflowResult::NeverOverflows; in willNotOverflowUnsignedAdd()
336 OverflowResult::NeverOverflows; in willNotOverflowSignedSub()
342 OverflowResult::NeverOverflows; in willNotOverflowUnsignedSub()
354 OverflowResult::NeverOverflows; in willNotOverflowSignedMul()
361 OverflowResult::NeverOverflows;
509 OverflowResult computeOverflow(
H A DInstCombineCalls.cpp854 Constant *OverflowResult = nullptr; in foldIntrinsicWithOverflowCommon() local
856 WO->getRHS(), *WO, OperationResult, OverflowResult)) in foldIntrinsicWithOverflowCommon()
857 return createOverflowTuple(WO, OperationResult, OverflowResult); in foldIntrinsicWithOverflowCommon()
2517 OverflowResult OR = computeOverflow(SI->getBinaryOp(), SI->isSigned(), in visitCallInst()
2520 case OverflowResult::MayOverflow: in visitCallInst()
2522 case OverflowResult::NeverOverflows: in visitCallInst()
2527 case OverflowResult::AlwaysOverflowsLow: { in visitCallInst()
2532 case OverflowResult::AlwaysOverflowsHigh: { in visitCallInst()
H A DInstCombineCompares.cpp3741 OverflowResult OR = computeOverflow( in foldICmpBinOpEqualityWithConstant()
3744 if (OR == OverflowResult::NeverOverflows) { in foldICmpBinOpEqualityWithConstant()
6462 OverflowResult
6512 case OverflowResult::MayOverflow: in OptimizeOverflowCheck()
6514 case OverflowResult::AlwaysOverflowsLow: in OptimizeOverflowCheck()
6515 case OverflowResult::AlwaysOverflowsHigh: in OptimizeOverflowCheck()
6520 case OverflowResult::NeverOverflows: in OptimizeOverflowCheck()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp7057 static OverflowResult mapOverflowResult(ConstantRange::OverflowResult OR) { in mapOverflowResult()
7059 case ConstantRange::OverflowResult::MayOverflow: in mapOverflowResult()
7060 return OverflowResult::MayOverflow; in mapOverflowResult()
7061 case ConstantRange::OverflowResult::AlwaysOverflowsLow: in mapOverflowResult()
7062 return OverflowResult::AlwaysOverflowsLow; in mapOverflowResult()
7063 case ConstantRange::OverflowResult::AlwaysOverflowsHigh: in mapOverflowResult()
7064 return OverflowResult::AlwaysOverflowsHigh; in mapOverflowResult()
7065 case ConstantRange::OverflowResult::NeverOverflows: in mapOverflowResult()
7066 return OverflowResult::NeverOverflows; in mapOverflowResult()
7084 OverflowResult llvm::computeOverflowForUnsignedMul(const Value *LHS, in computeOverflowForUnsignedMul()
[all …]
H A DStackSafetyAnalysis.cpp82 ConstantRange::OverflowResult::NeverOverflows) in addOverflowNever()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp7683 case ConstantRange::OverflowResult::MayOverflow: in matchAddOverflow()
7685 case ConstantRange::OverflowResult::NeverOverflows: { in matchAddOverflow()
7692 case ConstantRange::OverflowResult::AlwaysOverflowsLow: in matchAddOverflow()
7693 case ConstantRange::OverflowResult::AlwaysOverflowsHigh: { in matchAddOverflow()
7722 case ConstantRange::OverflowResult::MayOverflow: in matchAddOverflow()
7724 case ConstantRange::OverflowResult::NeverOverflows: { in matchAddOverflow()
7731 case ConstantRange::OverflowResult::AlwaysOverflowsLow: in matchAddOverflow()
7732 case ConstantRange::OverflowResult::AlwaysOverflowsHigh: { in matchAddOverflow()
8120 case ConstantRange::OverflowResult::MayOverflow: in matchSuboCarryOut()
8122 case ConstantRange::OverflowResult::NeverOverflows: { in matchSuboCarryOut()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp4492 static SelectionDAG::OverflowKind mapOverflowResult(ConstantRange::OverflowResult OR) { in mapOverflowResult()
4494 case ConstantRange::OverflowResult::MayOverflow: in mapOverflowResult()
4496 case ConstantRange::OverflowResult::AlwaysOverflowsLow: in mapOverflowResult()
4497 case ConstantRange::OverflowResult::AlwaysOverflowsHigh: in mapOverflowResult()
4499 case ConstantRange::OverflowResult::NeverOverflows: in mapOverflowResult()