| /llvm-project-15.0.7/clang/test/Analysis/inlining/ |
| H A D | path-notes.c | 56 int *getZero(void) { in getZero() function 65 *getZero() = 1; // expected-warning{{Dereference of null pointer}} in testReturnZero() 72 return *getZero(); // expected-warning{{Dereference of null pointer}} in testReturnZero2() 79 int *a = getZero(); in testInitZero() 88 a = getZero(); in testStoreZero() 103 usePointer(getZero()); in testUseOfNullPointer()
|
| H A D | ObjCDynTypePopagation.m | 13 - (int)getZero { method 42 clang_analyzer_eval([a getZero] == 0); // expected-warning{{TRUE}} 64 clang_analyzer_eval([p getZero] == 0); // expected-warning{{TRUE}} 71 clang_analyzer_eval([p getZero] == 0); // expected-warning{{TRUE}} 81 return [x getZero]; 87 - (int)getZero; method 95 - (int)getZero { method 100 clang_analyzer_eval([x getZero] == 0); //expected-warning{{TRUE}}
|
| H A D | ObjCImproperDynamictallyDetectableCast.m | 17 - (int)getZero; method 20 - (int)getZero { return 0; } method 24 - (int)getZero; method 28 - (int)getZero { return 1; } method 35 clang_analyzer_eval([o getZero] == 0); // expected-warning{{FALSE}}
|
| H A D | DynDispatchBifurcate.m | 6 - (int)getZero; method 9 - (int)getZero { method 68 - (int)getZero; method 78 int z = [p getZero]; 81 return 5/[p getZero];// expected-warning {{Division by zero}} 88 int z = [c getZero]; // MyClass overrides getZero to return '1'. 91 return 5/[c getZero];//no warning 94 - (int)getZero { method 138 // - If it's MyParent*, getZero returns 0. 139 // - If it's MyClass*, getZero returns 1 and 'return 5/m' is reachable.
|
| H A D | path-notes.cpp | 159 int getZero() { in getZero() function 173 int problem = 1 / getZero(); // expected-warning {{Division by zero}} in test()
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | inline.cpp | 19 int getZero() { return 0; } in getZero() function in A 24 clang_analyzer_eval(a.getZero() == 0); // expected-warning{{TRUE}} in test() 28 clang_analyzer_eval(copy.getZero() == 0); // expected-warning{{TRUE}} in test() 405 clang_analyzer_eval(object->getZero() == 0); // expected-warning{{TRUE}} in test() 406 clang_analyzer_eval(object->One::getZero() == 0); // expected-warning{{TRUE}} in test() 407 clang_analyzer_eval(object->A::getZero() == 0); // expected-warning{{TRUE}} in test()
|
| H A D | edges-new.mm | 359 int *getZero() { function 370 usePointer(getZero());
|
| /llvm-project-15.0.7/mlir/unittests/Interfaces/ |
| H A D | InferIntRangeInterfaceTest.cpp | 18 APInt zero = APInt::getZero(64); in TEST() 29 APInt zero = APInt::getZero(64); in TEST() 51 APInt zero = APInt::getZero(64); in TEST() 77 APInt zero = APInt::getZero(64); in TEST()
|
| /llvm-project-15.0.7/llvm/tools/llvm-exegesis/lib/ |
| H A D | RegisterValue.cpp | 20 return APFloat::getZero(FltSemantics); in getFloatValue() 22 return APFloat::getZero(FltSemantics, true); in getFloatValue()
|
| H A D | SnippetRepetitor.cpp | 99 Loop.MBB->addSuccessor(Exit.MBB, BranchProbability::getZero()); in Repeat()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | SelectOptimize.cpp | 571 CostInfo LoopCost[2] = {{Scaled64::getZero(), Scaled64::getZero()}, in findProfitableSIGroupsInnerLoops() 572 {Scaled64::getZero(), Scaled64::getZero()}}; in findProfitableSIGroupsInnerLoops() 581 Scaled64 SelectCost = Scaled64::getZero(), BranchCost = Scaled64::getZero(); in findProfitableSIGroupsInnerLoops() 849 Scaled64 IPredCost = Scaled64::getZero(), in computeLoopCosts() 850 INonPredCost = Scaled64::getZero(); in computeLoopCosts() 885 Scaled64 TrueOpCost = Scaled64::getZero(), in computeLoopCosts() 886 FalseOpCost = Scaled64::getZero(); in computeLoopCosts() 896 Scaled64 CondCost = Scaled64::getZero(); in computeLoopCosts()
|
| H A D | SwitchLoweringUtils.cpp | 197 auto Prob = BranchProbability::getZero(); in buildJumpTable() 204 JTProbs[Clusters[I].MBB] = BranchProbability::getZero(); in buildJumpTable() 408 LowBound = APInt::getZero(Low.getBitWidth()); in buildBitTests() 417 auto TotalProb = BranchProbability::getZero(); in buildBitTests() 426 CaseBits(0, Clusters[i].MBB, 0, BranchProbability::getZero())); in buildBitTests()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/ |
| H A D | DecomposeLinalgOps.cpp | 129 static Value getZero(OpBuilder &b, Location loc, Type elementType) { in getZero() function 139 loc, APFloat::getZero(floatType.getFloatSemantics()), floatType); in getZero() 325 getZero(rewriter, genericOp.getLoc(), origYield.getType())); in matchAndRewrite()
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | BranchProbability.h | 49 static BranchProbability getZero() { return BranchProbability(0); } in getZero() function 220 BranchProbability ProbForUnknown = BranchProbability::getZero(); in normalizeProbabilities()
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | APFloatTest.cpp | 198 test = APFloat::getZero(APFloat::IEEEquad(), false); in TEST() 204 test = APFloat::getZero(APFloat::IEEEquad(), false); in TEST() 210 test = APFloat::getZero(APFloat::IEEEquad(), true); in TEST() 216 test = APFloat::getZero(APFloat::IEEEquad(), true); in TEST() 1515 P = APFloat::getZero(APFloat::IEEEdouble()); in TEST() 1518 P = APFloat::getZero(APFloat::IEEEdouble(), true); in TEST() 1583 P = APFloat::getZero(APFloat::IEEEdouble(), true); in TEST() 1589 P = APFloat::getZero(APFloat::IEEEdouble(), true); in TEST() 1748 TEST(APFloatTest, getZero) { in TEST() argument 3121 APFloat::getZero(APFloat::IEEEsingle(), true), in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 131 return ConstantRange(std::move(UMin) + 1, APInt::getZero(W)); in makeAllowedICmpRegion() 140 return getNonEmpty(CR.getUnsignedMin(), APInt::getZero(W)); in makeAllowedICmpRegion() 308 return getNonEmpty(APInt::getZero(BitWidth), -Other.getUnsignedMax()); in makeGuaranteedNoWrapRegion() 350 return getNonEmpty(APInt::getZero(BitWidth), in makeGuaranteedNoWrapRegion() 1239 APInt Zero = APInt::getZero(getBitWidth()); in sdiv() 1342 return getNonEmpty(APInt::getZero(getBitWidth()), std::move(Upper)); in urem() 1407 getNonEmpty(APInt::getZero(getBitWidth()), in binaryAnd() 1421 APInt::getZero(getBitWidth())); in binaryOr() 1458 return getNonEmpty(APInt::getZero(BW), in shl() 1639 Lo = APInt::getZero(getBitWidth()); in abs() [all …]
|
| /llvm-project-15.0.7/llvm/lib/FuzzMutate/ |
| H A D | OpDescriptor.cpp | 26 Cs.push_back(ConstantFP::get(Ctx, APFloat::getZero(Sem))); in makeConstantsWithType()
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | BranchProbabilityTest.cpp | 26 EXPECT_EQ(0u, BP::getZero().getNumerator()); in TEST() 27 EXPECT_EQ(1u << 31, BP::getZero().getDenominator()); in TEST() 168 EXPECT_EQ(BP::getZero(), BP(7, 7).getCompl()); in TEST()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/IR/ |
| H A D | InferIntRangeInterfaceImpls.cpp | 47 isSigned ? APInt::getSignedMinValue(width) : APInt::getZero(width); in minMaxBy() 291 APInt umin = APInt::getZero(width); in inferResultRanges() 331 APInt zero = APInt::getZero(maxDivisor.getBitWidth()); in inferResultRanges() 582 APInt min = APInt::getZero(1); in inferResultRanges()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CoverageMappingGen.cpp | 741 popRegions(pushRegion(Counter::getZero(), getStart(C), getEnd(C), in createBranchRegion() 742 Counter::getZero())); in createBranchRegion() 876 pushRegion(Counter::getZero()); in terminateRegion() 975 GapRegionCounter = Counter::getZero(); in VisitStmt() 1291 size_t Index = pushRegion(Counter::getZero(), getStart(CS)); in VisitSwitchStmt() 1304 propagateCounts(Counter::getZero(), Body); in VisitSwitchStmt() 1338 CaseCountSum = addCounters(CaseCountSum, Counter::getZero()); in VisitSwitchStmt()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/MathToSPIRV/ |
| H A D | MathToSPIRV.cpp | 226 spirv::ConstantOp::getZero(adaptor.getLhs().getType(), loc, rewriter); in matchAndRewrite() 249 auto zero = spirv::ConstantOp::getZero(ty, loc, rewriter); in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Interfaces/ |
| H A D | InferIntRangeInterface.cpp | 39 return fromUnsigned(APInt::getZero(bitwidth), APInt::getMaxValue(bitwidth)); in maxRange()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/LinalgToSPIRV/ |
| H A D | LinalgToSPIRV.cpp | 168 Value zero = spirv::ConstantOp::getZero(indexType, loc, rewriter); in matchAndRewrite()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | ScalarEvolutionDivision.cpp | 242 Zero = SE.getZero(Denominator->getType()); in SCEVDivision()
|
| H A D | DependenceAnalysis.cpp | 1344 SE->getSMaxExpr(SE->getZero(Delta->getType()), Delta), in weakCrossingSIVtest() 1387 Result.DV[Level].Distance = SE->getZero(Delta->getType()); in weakCrossingSIVtest() 1714 NewConstraint.setLine(SE->getZero(Delta->getType()), DstCoeff, Delta, in weakZeroSrcSIVtest() 2344 APInt RunningGCD = APInt::getZero(BitWidth); in gcdMIVtest() 2384 APInt ExtraGCD = APInt::getZero(BitWidth); in gcdMIVtest() 2784 SE->getZero(A[K].Coeff->getType()); in findBoundsALL() 2787 SE->getZero(A[K].Coeff->getType()); in findBoundsALL() 2922 return SE->getSMaxExpr(X, SE->getZero(X->getType())); in getPositivePart() 2928 return SE->getSMinExpr(X, SE->getZero(X->getType())); in getNegativePart() 2938 const SCEV *Zero = SE->getZero(Subscript->getType()); in collectCoeffInfo() [all …]
|