Home
last modified time | relevance | path

Searched refs:OBO (Results 1 – 25 of 38) sorted by relevance

12

/external/llvm-project/llvm/unittests/IR/
DConstantRangeTest.cpp857 typedef OverflowingBinaryOperator OBO; in TEST_F() typedef
858 EXPECT_EQ(Empty.addWithNoWrap(Some, OBO::NoSignedWrap), Empty); in TEST_F()
859 EXPECT_EQ(Some.addWithNoWrap(Empty, OBO::NoSignedWrap), Empty); in TEST_F()
860 EXPECT_EQ(Full.addWithNoWrap(Full, OBO::NoSignedWrap), Full); in TEST_F()
861 EXPECT_NE(Full.addWithNoWrap(Some, OBO::NoSignedWrap), Full); in TEST_F()
862 EXPECT_NE(Some.addWithNoWrap(Full, OBO::NoSignedWrap), Full); in TEST_F()
864 OBO::NoSignedWrap), in TEST_F()
867 .addWithNoWrap(Full, OBO::NoSignedWrap), in TEST_F()
870 OBO::NoSignedWrap), in TEST_F()
874 OBO::NoSignedWrap), in TEST_F()
[all …]
/external/llvm/unittests/IR/
DConstantRangeTest.cpp614 typedef OverflowingBinaryOperator OBO; in TEST() typedef
620 Instruction::Add, C, OBO::NoUnsignedWrap); in TEST()
625 Instruction::Add, C, OBO::NoSignedWrap); in TEST()
630 Instruction::Add, C, OBO::NoSignedWrap | OBO::NoUnsignedWrap); in TEST()
663 OBO::NoSignedWrap); in TEST()
669 OBO::NoUnsignedWrap); in TEST()
675 OBO::NoUnsignedWrap | OBO::NoSignedWrap); in TEST()
681 Instruction::Add, OneToFive, OBO::NoSignedWrap), in TEST()
685 Instruction::Add, OneToFive, OBO::NoUnsignedWrap), in TEST()
689 Instruction::Add, OneToFive, OBO::NoUnsignedWrap | OBO::NoSignedWrap), in TEST()
[all …]
/external/llvm/lib/IR/
DConstantRange.cpp172 typedef OverflowingBinaryOperator OBO; in makeGuaranteedNoWrapRegion() typedef
186 assert((NoWrapKind == OBO::NoSignedWrap || in makeGuaranteedNoWrapRegion()
187 NoWrapKind == OBO::NoUnsignedWrap || in makeGuaranteedNoWrapRegion()
188 NoWrapKind == (OBO::NoUnsignedWrap | OBO::NoSignedWrap)) && in makeGuaranteedNoWrapRegion()
203 if (NoWrapKind & OBO::NoUnsignedWrap) in makeGuaranteedNoWrapRegion()
208 if (NoWrapKind & OBO::NoSignedWrap) { in makeGuaranteedNoWrapRegion()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DFunctionCognitiveComplexityCheck.cpp222 using OBO = Optional<BinaryOperator::Opcode>; typedef in clang::tidy::readability::__anonb52cb2880111::FunctionASTVisitor
223 std::stack<OBO, SmallVector<OBO, 4>> BinaryOperatorsStack;
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DConstantRange.cpp228 using OBO = OverflowingBinaryOperator; in makeGuaranteedNoWrapRegion() typedef
232 assert((NoWrapKind == OBO::NoSignedWrap || in makeGuaranteedNoWrapRegion()
233 NoWrapKind == OBO::NoUnsignedWrap) && in makeGuaranteedNoWrapRegion()
236 bool Unsigned = NoWrapKind == OBO::NoUnsignedWrap; in makeGuaranteedNoWrapRegion()
866 using OBO = OverflowingBinaryOperator; in addWithNoWrap() typedef
874 if (NoWrapKind & OBO::NoSignedWrap) in addWithNoWrap()
877 if (NoWrapKind & OBO::NoUnsignedWrap) in addWithNoWrap()
913 using OBO = OverflowingBinaryOperator; in subWithNoWrap() typedef
921 if (NoWrapKind & OBO::NoSignedWrap) in subWithNoWrap()
924 if (NoWrapKind & OBO::NoUnsignedWrap) { in subWithNoWrap()
/external/llvm-project/llvm/lib/IR/
DConstantRange.cpp229 using OBO = OverflowingBinaryOperator; in makeGuaranteedNoWrapRegion() typedef
233 assert((NoWrapKind == OBO::NoSignedWrap || in makeGuaranteedNoWrapRegion()
234 NoWrapKind == OBO::NoUnsignedWrap) && in makeGuaranteedNoWrapRegion()
237 bool Unsigned = NoWrapKind == OBO::NoUnsignedWrap; in makeGuaranteedNoWrapRegion()
932 using OBO = OverflowingBinaryOperator; in addWithNoWrap() typedef
940 if (NoWrapKind & OBO::NoSignedWrap) in addWithNoWrap()
943 if (NoWrapKind & OBO::NoUnsignedWrap) in addWithNoWrap()
979 using OBO = OverflowingBinaryOperator; in subWithNoWrap() typedef
987 if (NoWrapKind & OBO::NoSignedWrap) in subWithNoWrap()
990 if (NoWrapKind & OBO::NoUnsignedWrap) { in subWithNoWrap()
/external/llvm-project/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp97 bool strengthenOverflowingOperation(BinaryOperator *OBO, Value *IVOperand);
1350 const OverflowingBinaryOperator *OBO = in getExtendedOperandRecurrence() local
1353 if (ExtKind == SignExtended && OBO->hasNoSignedWrap()) in getExtendedOperandRecurrence()
1356 else if(ExtKind == ZeroExtended && OBO->hasNoUnsignedWrap()) in getExtendedOperandRecurrence()
1521 const OverflowingBinaryOperator *OBO = in widenWithVariantUse() local
1524 bool CanSignExtend = ExtKind == SignExtended && OBO->hasNoSignedWrap(); in widenWithVariantUse()
1525 bool CanZeroExtend = ExtKind == ZeroExtended && OBO->hasNoUnsignedWrap(); in widenWithVariantUse()
1597 const SCEV *LHS = SE->getSCEV(OBO->getOperand(0)); in widenWithVariantUse()
1598 const SCEV *RHS = SE->getSCEV(OBO->getOperand(1)); in widenWithVariantUse()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp726 auto *OBO = cast<OverflowingBinaryOperator>(Op0); in commonIDivTransforms() local
727 Mul->setHasNoUnsignedWrap(!IsSigned && OBO->hasNoUnsignedWrap()); in commonIDivTransforms()
728 Mul->setHasNoSignedWrap(OBO->hasNoSignedWrap()); in commonIDivTransforms()
752 auto *OBO = cast<OverflowingBinaryOperator>(Op0); in commonIDivTransforms() local
753 Mul->setHasNoUnsignedWrap(!IsSigned && OBO->hasNoUnsignedWrap()); in commonIDivTransforms()
754 Mul->setHasNoSignedWrap(OBO->hasNoSignedWrap()); in commonIDivTransforms()
DInstructionCombining.cpp219 auto *OBO = dyn_cast<OverflowingBinaryOperator>(&I); in maintainNoSignedWrap() local
220 if (!OBO || !OBO->hasNoSignedWrap()) in maintainNoSignedWrap()
242 auto *OBO = dyn_cast<OverflowingBinaryOperator>(&I); in hasNoUnsignedWrap() local
243 return OBO && OBO->hasNoUnsignedWrap(); in hasNoUnsignedWrap()
247 auto *OBO = dyn_cast<OverflowingBinaryOperator>(&I); in hasNoSignedWrap() local
248 return OBO && OBO->hasNoSignedWrap(); in hasNoSignedWrap()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp742 using OBO = OverflowingBinaryOperator; in processBinOp() typedef
768 Opcode, RRange, OBO::NoUnsignedWrap); in processBinOp()
774 Opcode, RRange, OBO::NoSignedWrap); in processBinOp()
DIndVarSimplify.cpp1270 const OverflowingBinaryOperator *OBO = in getExtendedOperandRecurrence() local
1273 if (ExtKind == SignExtended && OBO->hasNoSignedWrap()) in getExtendedOperandRecurrence()
1276 else if(ExtKind == ZeroExtended && OBO->hasNoUnsignedWrap()) in getExtendedOperandRecurrence()
1434 const OverflowingBinaryOperator *OBO = in widenWithVariantLoadUse() local
1437 if (ExtKind == SignExtended && OBO->hasNoSignedWrap()) in widenWithVariantLoadUse()
1440 else if (ExtKind == ZeroExtended && OBO->hasNoUnsignedWrap()) in widenWithVariantLoadUse()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp753 auto *OBO = cast<OverflowingBinaryOperator>(Op0); in commonIDivTransforms() local
754 Mul->setHasNoUnsignedWrap(!IsSigned && OBO->hasNoUnsignedWrap()); in commonIDivTransforms()
755 Mul->setHasNoSignedWrap(OBO->hasNoSignedWrap()); in commonIDivTransforms()
779 auto *OBO = cast<OverflowingBinaryOperator>(Op0); in commonIDivTransforms() local
780 Mul->setHasNoUnsignedWrap(!IsSigned && OBO->hasNoUnsignedWrap()); in commonIDivTransforms()
781 Mul->setHasNoSignedWrap(OBO->hasNoSignedWrap()); in commonIDivTransforms()
DInstructionCombining.cpp259 auto *OBO = dyn_cast<OverflowingBinaryOperator>(&I); in maintainNoSignedWrap() local
260 if (!OBO || !OBO->hasNoSignedWrap()) in maintainNoSignedWrap()
282 auto *OBO = dyn_cast<OverflowingBinaryOperator>(&I); in hasNoUnsignedWrap() local
283 return OBO && OBO->hasNoUnsignedWrap(); in hasNoUnsignedWrap()
287 auto *OBO = dyn_cast<OverflowingBinaryOperator>(&I); in hasNoSignedWrap() local
288 return OBO && OBO->hasNoSignedWrap(); in hasNoSignedWrap()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp879 using OBO = OverflowingBinaryOperator; in processBinOp() typedef
903 Opcode, RRange, OBO::NoUnsignedWrap); in processBinOp()
909 Opcode, RRange, OBO::NoSignedWrap); in processBinOp()
/external/llvm-project/llvm/lib/Analysis/
DLoopAccessAnalysis.cpp1002 if (auto *OBO = dyn_cast<OverflowingBinaryOperator>(NonConstIndex)) in isNoWrapAddRec() local
1003 if (OBO->hasNoSignedWrap() && in isNoWrapAddRec()
1006 isa<ConstantInt>(OBO->getOperand(1))) { in isNoWrapAddRec()
1007 auto *OpScev = PSE.getSCEV(OBO->getOperand(0)); in isNoWrapAddRec()
DLazyValueInfo.cpp1012 if (auto *OBO = dyn_cast<OverflowingBinaryOperator>(BO)) { in solveBlockValueBinaryOp() local
1014 if (OBO->hasNoUnsignedWrap()) in solveBlockValueBinaryOp()
1016 if (OBO->hasNoSignedWrap()) in solveBlockValueBinaryOp()
DScalarEvolution.cpp2213 using OBO = OverflowingBinaryOperator; in StrengthenNoWrapFlags() typedef
2255 Opcode, C, OBO::NoSignedWrap); in StrengthenNoWrapFlags()
2263 Opcode, C, OBO::NoUnsignedWrap); in StrengthenNoWrapFlags()
4405 using OBO = OverflowingBinaryOperator; in proveNoWrapViaConstantRanges() typedef
4414 Instruction::Add, IncRange, OBO::NoSignedWrap); in proveNoWrapViaConstantRanges()
4424 Instruction::Add, IncRange, OBO::NoUnsignedWrap); in proveNoWrapViaConstantRanges()
4553 if (auto *OBO = dyn_cast<OverflowingBinaryOperator>(Op)) { in BinaryOp() local
4554 IsNSW = OBO->hasNoSignedWrap(); in BinaryOp()
4555 IsNUW = OBO->hasNoUnsignedWrap(); in BinaryOp()
5653 using OBO = OverflowingBinaryOperator; in getRangeRef() typedef
[all …]
/external/llvm/lib/Analysis/
DLoopAccessAnalysis.cpp854 if (auto *OBO = dyn_cast<OverflowingBinaryOperator>(NonConstIndex)) in isNoWrapAddRec() local
855 if (OBO->hasNoSignedWrap() && in isNoWrapAddRec()
858 isa<ConstantInt>(OBO->getOperand(1))) { in isNoWrapAddRec()
859 auto *OpScev = PSE.getSCEV(OBO->getOperand(0)); in isNoWrapAddRec()
DValueTracking.cpp3564 auto *OBO = cast<OverflowingBinaryOperator>(I); in propagatesFullPoison() local
3565 return OBO->hasNoUnsignedWrap() || OBO->hasNoSignedWrap(); in propagatesFullPoison()
3580 auto *OBO = cast<OverflowingBinaryOperator>(I); in propagatesFullPoison() local
3581 if (OBO->hasNoUnsignedWrap() || OBO->hasNoSignedWrap()) { in propagatesFullPoison()
3582 for (Value *V : OBO->operands()) { in propagatesFullPoison()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DLoopAccessAnalysis.cpp976 if (auto *OBO = dyn_cast<OverflowingBinaryOperator>(NonConstIndex)) in isNoWrapAddRec() local
977 if (OBO->hasNoSignedWrap() && in isNoWrapAddRec()
980 isa<ConstantInt>(OBO->getOperand(1))) { in isNoWrapAddRec()
981 auto *OpScev = PSE.getSCEV(OBO->getOperand(0)); in isNoWrapAddRec()
DLazyValueInfo.cpp1099 if (auto *OBO = dyn_cast<OverflowingBinaryOperator>(BO)) { in solveBlockValueBinaryOp() local
1101 if (OBO->hasNoUnsignedWrap()) in solveBlockValueBinaryOp()
1103 if (OBO->hasNoSignedWrap()) in solveBlockValueBinaryOp()
DScalarEvolution.cpp2349 using OBO = OverflowingBinaryOperator; in StrengthenNoWrapFlags() typedef
2391 Opcode, C, OBO::NoSignedWrap); in StrengthenNoWrapFlags()
2399 Opcode, C, OBO::NoUnsignedWrap); in StrengthenNoWrapFlags()
4445 using OBO = OverflowingBinaryOperator; in proveNoWrapViaConstantRanges() typedef
4454 Instruction::Add, IncRange, OBO::NoSignedWrap); in proveNoWrapViaConstantRanges()
4464 Instruction::Add, IncRange, OBO::NoUnsignedWrap); in proveNoWrapViaConstantRanges()
4491 if (auto *OBO = dyn_cast<OverflowingBinaryOperator>(Op)) { in BinaryOp() local
4492 IsNSW = OBO->hasNoSignedWrap(); in BinaryOp()
4493 IsNUW = OBO->hasNoUnsignedWrap(); in BinaryOp()
5569 using OBO = OverflowingBinaryOperator; in getRangeRef() typedef
[all …]
/external/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp78 bool strengthenOverflowingOperation(BinaryOperator *OBO, Value *IVOperand);
/external/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp1139 const OverflowingBinaryOperator *OBO = in getExtendedOperandRecurrence() local
1141 if (IsSigned && OBO->hasNoSignedWrap()) in getExtendedOperandRecurrence()
1144 else if(!IsSigned && OBO->hasNoUnsignedWrap()) in getExtendedOperandRecurrence()
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp128 OverflowingBinaryOperator *OBO = dyn_cast<OverflowingBinaryOperator>(&I); in MaintainNoSignedWrap() local
129 if (!OBO || !OBO->hasNoSignedWrap()) in MaintainNoSignedWrap()

12