Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DConstantRange.cpp1554 ConstantRange::OverflowResult ConstantRange::unsignedAddMayOverflow( in unsignedAddMayOverflow()
1557 return OverflowResult::MayOverflow; in unsignedAddMayOverflow()
1564 return OverflowResult::AlwaysOverflowsHigh; in unsignedAddMayOverflow()
1566 return OverflowResult::MayOverflow; in unsignedAddMayOverflow()
1567 return OverflowResult::NeverOverflows; in unsignedAddMayOverflow()
1570 ConstantRange::OverflowResult ConstantRange::signedAddMayOverflow( in signedAddMayOverflow()
1573 return OverflowResult::MayOverflow; in signedAddMayOverflow()
1585 return OverflowResult::AlwaysOverflowsHigh; in signedAddMayOverflow()
1588 return OverflowResult::AlwaysOverflowsLow; in signedAddMayOverflow()
1592 return OverflowResult::MayOverflow; in signedAddMayOverflow()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DConstantRange.h490 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;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineInternal.h223 Constant *&OverflowResult);
256 OverflowResult::NeverOverflows; in willNotOverflowSignedAdd()
262 OverflowResult::NeverOverflows; in willNotOverflowUnsignedAdd()
274 OverflowResult::NeverOverflows; in willNotOverflowSignedSub()
280 OverflowResult::NeverOverflows; in willNotOverflowUnsignedSub()
292 OverflowResult::NeverOverflows; in willNotOverflowSignedMul()
298 OverflowResult::NeverOverflows; in willNotOverflowUnsignedMul()
495 OverflowResult computeOverflowForUnsignedMul(const Value *LHS, in computeOverflowForUnsignedMul()
501 OverflowResult computeOverflowForSignedMul(const Value *LHS, in computeOverflowForSignedMul()
507 OverflowResult computeOverflowForUnsignedAdd(const Value *LHS, in computeOverflowForUnsignedAdd()
[all …]
H A DInstCombineCalls.cpp716 Constant *OverflowResult = nullptr; in foldIntrinsicWithOverflowCommon() local
718 WO->getRHS(), *WO, OperationResult, OverflowResult)) in foldIntrinsicWithOverflowCommon()
719 return createOverflowTuple(WO, OperationResult, OverflowResult); in foldIntrinsicWithOverflowCommon()
1212 OverflowResult OR = computeOverflow(SI->getBinaryOp(), SI->isSigned(), in visitCallInst()
1215 case OverflowResult::MayOverflow: in visitCallInst()
1217 case OverflowResult::NeverOverflows: in visitCallInst()
1222 case OverflowResult::AlwaysOverflowsLow: { in visitCallInst()
1227 case OverflowResult::AlwaysOverflowsHigh: { in visitCallInst()
H A DInstCombineCompares.cpp4560 OverflowResult
4610 case OverflowResult::MayOverflow: in OptimizeOverflowCheck()
4612 case OverflowResult::AlwaysOverflowsLow: in OptimizeOverflowCheck()
4613 case OverflowResult::AlwaysOverflowsHigh: in OptimizeOverflowCheck()
4618 case OverflowResult::NeverOverflows: in OptimizeOverflowCheck()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLoopFlatten.cpp432 static OverflowResult checkOverflow(FlattenInfo &FI, DominatorTree *DT, in checkOverflow()
439 return OverflowResult::NeverOverflows; in checkOverflow()
443 OverflowResult OR = computeOverflowForUnsignedMul( in checkOverflow()
446 if (OR != OverflowResult::MayOverflow) in checkOverflow()
462 return OverflowResult::NeverOverflows; in checkOverflow()
468 return OverflowResult::MayOverflow; in checkOverflow()
647 OverflowResult OR = checkOverflow(FI, DT, AC); in FlattenLoopPair()
648 if (OR == OverflowResult::AlwaysOverflowsHigh || in FlattenLoopPair()
649 OR == OverflowResult::AlwaysOverflowsLow) { in FlattenLoopPair()
652 } else if (OR == OverflowResult::MayOverflow) { in FlattenLoopPair()
H A DNaryReassociate.cpp373 OverflowResult::NeverOverflows) in tryReassociateGEPAtIndex()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DValueTracking.h487 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,
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h482 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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DValueTracking.cpp4631 static OverflowResult mapOverflowResult(ConstantRange::OverflowResult OR) { in mapOverflowResult()
4633 case ConstantRange::OverflowResult::MayOverflow: in mapOverflowResult()
4634 return OverflowResult::MayOverflow; in mapOverflowResult()
4635 case ConstantRange::OverflowResult::AlwaysOverflowsLow: in mapOverflowResult()
4636 return OverflowResult::AlwaysOverflowsLow; in mapOverflowResult()
4637 case ConstantRange::OverflowResult::AlwaysOverflowsHigh: in mapOverflowResult()
4638 return OverflowResult::AlwaysOverflowsHigh; in mapOverflowResult()
4639 case ConstantRange::OverflowResult::NeverOverflows: in mapOverflowResult()
4640 return OverflowResult::NeverOverflows; in mapOverflowResult()
4659 OverflowResult llvm::computeOverflowForUnsignedMul( in computeOverflowForUnsignedMul()
[all …]
H A DStackSafetyAnalysis.cpp80 ConstantRange::OverflowResult::NeverOverflows) in addOverflowNever()