Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Scalar/
DGuardWidening.cpp137 class RangeCheck { class in __anon212bcca40111::GuardWideningImpl
144 explicit RangeCheck(Value *Base, ConstantInt *Offset, Value *Length, in RangeCheck() function in __anon212bcca40111::GuardWideningImpl::RangeCheck
175 bool parseRangeChecks(Value *CheckCond, SmallVectorImpl<RangeCheck> &Checks) { in parseRangeChecks()
180 bool parseRangeChecks(Value *CheckCond, SmallVectorImpl<RangeCheck> &Checks,
187 bool combineRangeChecks(SmallVectorImpl<RangeCheck> &Checks,
188 SmallVectorImpl<RangeCheck> &CombinedChecks);
447 SmallVector<GuardWideningImpl::RangeCheck, 4> Checks, CombinedChecks; in widenCondCommon()
481 Value *CheckCond, SmallVectorImpl<GuardWideningImpl::RangeCheck> &Checks, in parseRangeChecks()
507 GuardWideningImpl::RangeCheck Check( in parseRangeChecks()
555 SmallVectorImpl<GuardWideningImpl::RangeCheck> &Checks, in combineRangeChecks()
[all …]
/external/libchrome/base/numerics/
Dsafe_conversions_impl.h191 class RangeCheck {
193 constexpr RangeCheck(bool is_in_lower_bound, bool is_in_upper_bound)
195 constexpr RangeCheck() : is_underflow_(0), is_overflow_(0) {}
202 constexpr bool operator==(const RangeCheck rhs) const {
206 constexpr bool operator!=(const RangeCheck rhs) const {
305 static constexpr RangeCheck Check(Src value) {
308 return RangeCheck(
325 static constexpr RangeCheck Check(Src value) {
327 return RangeCheck(value >= DstLimits::lowest(), value <= DstLimits::max());
340 static constexpr RangeCheck Check(Src value) {
[all …]
Dsafe_conversions.h138 constexpr Dst saturated_cast_impl(Src value, RangeCheck constraint) {
/external/pdfium/third_party/base/numerics/
Dsafe_conversions_impl.h192 class RangeCheck {
194 constexpr RangeCheck(bool is_in_lower_bound, bool is_in_upper_bound)
196 constexpr RangeCheck() : is_underflow_(0), is_overflow_(0) {}
203 constexpr bool operator==(const RangeCheck rhs) const {
207 constexpr bool operator!=(const RangeCheck rhs) const {
306 static constexpr RangeCheck Check(Src value) {
309 return RangeCheck(
326 static constexpr RangeCheck Check(Src value) {
328 return RangeCheck(value >= DstLimits::lowest(), value <= DstLimits::max());
341 static constexpr RangeCheck Check(Src value) {
[all …]
Dsafe_conversions.h139 constexpr Dst saturated_cast_impl(Src value, RangeCheck constraint) {
/external/llvm-project/llvm/lib/Transforms/Scalar/
DLoopPredication.cpp291 LoopICmp RangeCheck,
295 LoopICmp RangeCheck,
564 LoopICmp LatchCheck, LoopICmp RangeCheck, in widenICmpRangeCheckIncrementingLoop() argument
566 auto *Ty = RangeCheck.IV->getType(); in widenICmpRangeCheckIncrementingLoop()
573 const SCEV *GuardStart = RangeCheck.IV->getStart(); in widenICmpRangeCheckIncrementingLoop()
574 const SCEV *GuardLimit = RangeCheck.Limit; in widenICmpRangeCheckIncrementingLoop()
606 auto *FirstIterationCheck = expandCheck(Expander, Guard, RangeCheck.Pred, in widenICmpRangeCheckIncrementingLoop()
613 LoopICmp LatchCheck, LoopICmp RangeCheck, in widenICmpRangeCheckDecrementingLoop() argument
615 auto *Ty = RangeCheck.IV->getType(); in widenICmpRangeCheckDecrementingLoop()
616 const SCEV *GuardStart = RangeCheck.IV->getStart(); in widenICmpRangeCheckDecrementingLoop()
[all …]
DGuardWidening.cpp194 class RangeCheck { class in __anona979f6520111::GuardWideningImpl
201 explicit RangeCheck(const Value *Base, const ConstantInt *Offset, in RangeCheck() function in __anona979f6520111::GuardWideningImpl::RangeCheck
232 bool parseRangeChecks(Value *CheckCond, SmallVectorImpl<RangeCheck> &Checks) { in parseRangeChecks()
237 bool parseRangeChecks(Value *CheckCond, SmallVectorImpl<RangeCheck> &Checks,
244 bool combineRangeChecks(SmallVectorImpl<RangeCheck> &Checks,
245 SmallVectorImpl<RangeCheck> &CombinedChecks) const;
544 SmallVector<GuardWideningImpl::RangeCheck, 4> Checks, CombinedChecks; in widenCondCommon()
581 Value *CheckCond, SmallVectorImpl<GuardWideningImpl::RangeCheck> &Checks, in parseRangeChecks()
607 GuardWideningImpl::RangeCheck Check( in parseRangeChecks()
653 SmallVectorImpl<GuardWideningImpl::RangeCheck> &Checks, in combineRangeChecks()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DGuardWidening.cpp194 class RangeCheck { class in __anonbde45b460111::GuardWideningImpl
201 explicit RangeCheck(const Value *Base, const ConstantInt *Offset, in RangeCheck() function in __anonbde45b460111::GuardWideningImpl::RangeCheck
232 bool parseRangeChecks(Value *CheckCond, SmallVectorImpl<RangeCheck> &Checks) { in parseRangeChecks()
237 bool parseRangeChecks(Value *CheckCond, SmallVectorImpl<RangeCheck> &Checks,
244 bool combineRangeChecks(SmallVectorImpl<RangeCheck> &Checks,
245 SmallVectorImpl<RangeCheck> &CombinedChecks) const;
544 SmallVector<GuardWideningImpl::RangeCheck, 4> Checks, CombinedChecks; in widenCondCommon()
581 Value *CheckCond, SmallVectorImpl<GuardWideningImpl::RangeCheck> &Checks, in parseRangeChecks()
607 GuardWideningImpl::RangeCheck Check( in parseRangeChecks()
653 SmallVectorImpl<GuardWideningImpl::RangeCheck> &Checks, in combineRangeChecks()
[all …]
DLoopPredication.cpp291 LoopICmp RangeCheck,
295 LoopICmp RangeCheck,
562 LoopICmp LatchCheck, LoopICmp RangeCheck, in widenICmpRangeCheckIncrementingLoop() argument
564 auto *Ty = RangeCheck.IV->getType(); in widenICmpRangeCheckIncrementingLoop()
571 const SCEV *GuardStart = RangeCheck.IV->getStart(); in widenICmpRangeCheckIncrementingLoop()
572 const SCEV *GuardLimit = RangeCheck.Limit; in widenICmpRangeCheckIncrementingLoop()
604 auto *FirstIterationCheck = expandCheck(Expander, Guard, RangeCheck.Pred, in widenICmpRangeCheckIncrementingLoop()
611 LoopICmp LatchCheck, LoopICmp RangeCheck, in widenICmpRangeCheckDecrementingLoop() argument
613 auto *Ty = RangeCheck.IV->getType(); in widenICmpRangeCheckDecrementingLoop()
614 const SCEV *GuardStart = RangeCheck.IV->getStart(); in widenICmpRangeCheckDecrementingLoop()
[all …]
/external/llvm-project/llvm/lib/Target/WebAssembly/
DWebAssemblyFixBrTableDefaults.cpp123 auto *RangeCheck = MRI.getVRegDef(Cond[1].getReg()); in fixBrTableDefault() local
124 assert(RangeCheck != nullptr); in fixBrTableDefault()
125 if (RangeCheck->getOpcode() != WebAssembly::GT_U_I32) in fixBrTableDefault()
/external/webrtc/rtc_base/numerics/
Dsafe_conversions.h27 return internal::RangeCheck<Dst>(value) == internal::TYPE_VALID; in IsValueInRangeForNumericType()
54 switch (internal::RangeCheck<Dst>(value)) { in saturated_cast()
Dsafe_conversions_impl.h166 inline constexpr RangeCheckResult RangeCheck(Src value) {
/external/libchrome/base/
Dsafe_numerics_unittest.cc832 constexpr RangeConstraint RangeCheckToEnum(const RangeCheck constraint) { in RangeCheckToEnum()