Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/tools/llvm-exegesis/lib/
H A DSnippetRepetitor.cpp82 Entry.MBB->addSuccessor(Loop.MBB, BranchProbability::getOne()); in Repeat()
83 Loop.MBB->addSuccessor(Loop.MBB, BranchProbability::getOne()); in Repeat()
/llvm-project-15.0.7/llvm/unittests/Transforms/Utils/
H A DScalarEvolutionExpanderTest.cpp676 SE.getOne(ARType), L, SCEV::FlagAnyWrap); in TEST_F()
881 SE.getOne(ARType), SE.getOne(ARType)}; in TEST_F()
891 SE.getOne(ARType), SE.getOne(ARType), in TEST_F()
892 SE.getOne(ARType)}; in TEST_F()
902 SE.getOne(ARType), SE.getOne(ARType), in TEST_F()
903 SE.getOne(ARType), SE.getOne(ARType)}; in TEST_F()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DInductiveRangeCheckElimination.cpp691 const SCEV *StepPlusOne = SE.getAddExpr(Step, SE.getOne(Step->getType())); in isSafeDecreasingBound()
698 SE.getMinusSCEV(BoundSCEV, SE.getOne(BoundSCEV->getType())); in isSafeDecreasingBound()
739 SE.getMinusSCEV(Step, SE.getOne(Step->getType())); in isSafeIncreasingBound()
906 SE.getOne(RightSCEV->getType())); in parseLoopStructure()
911 SE.getOne(RightSCEV->getType())); in parseLoopStructure()
943 SE.getAddExpr(RightSCEV, SE.getOne(RightSCEV->getType())); in parseLoopStructure()
969 RightSCEV = SE.getAddExpr(RightSCEV, SE.getOne(RightSCEV->getType())); in parseLoopStructure()
973 RightSCEV = SE.getAddExpr(RightSCEV, SE.getOne(RightSCEV->getType())); in parseLoopStructure()
1009 SE.getMinusSCEV(RightSCEV, SE.getOne(RightSCEV->getType())); in parseLoopStructure()
1090 const SCEV *One = SE.getOne(RTy); in calculateSubRanges()
[all …]
H A DLoopBoundSplit.cpp113 SE.getAddExpr(Cond.BoundSCEV, SE.getOne(BoundSCEVIntType)); in calculateUpperBound()
H A DLoopPredication.cpp604 SE->getMinusSCEV(LatchStart, SE->getOne(Ty))); in widenICmpRangeCheckIncrementingLoop()
663 SE->getOne(Ty)); in widenICmpRangeCheckDecrementingLoop()
H A DIndVarSimplify.cpp1000 IVOffset = SE->getAddExpr(IVOffset, SE->getOne(OfsTy)); in genLoopLimit()
1040 IVLimit = SE->getAddExpr(IVLimit, SE->getOne(IVLimit->getType())); in genLoopLimit()
1409 const SCEV *One = SE->getOne(MaxIter->getType()); in optimizeLoopExitWithUnknownExitCount()
H A DLoopIdiomRecognize.cpp1069 SE->getNegativeSCEV(SE->getOne(BECount->getType())))) { in getTripCount()
1071 SE->getAddExpr(BECount, SE->getOne(BECount->getType()), SCEV::FlagNUW), in getTripCount()
1075 SE->getOne(IntPtr), SCEV::FlagNUW); in getTripCount()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DBranchProbabilityTest.cpp28 EXPECT_EQ(1u << 31, BP::getOne().getNumerator()); in TEST()
29 EXPECT_EQ(1u << 31, BP::getOne().getDenominator()); in TEST()
169 EXPECT_EQ(BP::getOne(), BP(0, 7).getCompl()); in TEST()
/llvm-project-15.0.7/mlir/lib/Conversion/MathToSPIRV/
H A DMathToSPIRV.cpp183 auto one = spirv::ConstantOp::getOne(type, loc, rewriter); in matchAndRewrite()
203 auto one = spirv::ConstantOp::getOne(type, operation.getLoc(), rewriter); in matchAndRewrite()
250 auto one = spirv::ConstantOp::getOne(ty, loc, rewriter); in matchAndRewrite()
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsExpandPseudo.cpp132 BB.addSuccessor(loop1MBB, BranchProbability::getOne()); in expandAtomicCmpSwapSubword()
139 sinkMBB->addSuccessor(exitMBB, BranchProbability::getOne()); in expandAtomicCmpSwapSubword()
267 BB.addSuccessor(loop1MBB, BranchProbability::getOne()); in expandAtomicCmpSwap()
432 BB.addSuccessor(loopMBB, BranchProbability::getOne()); in expandAtomicBinOpSubword()
547 sinkMBB->addSuccessor(exitMBB, BranchProbability::getOne()); in expandAtomicBinOpSubword()
724 BB.addSuccessor(loopMBB, BranchProbability::getOne()); in expandAtomicBinOp()
/llvm-project-15.0.7/mlir/lib/Conversion/MemRefToSPIRV/
H A DMemRefToSPIRV.cpp140 auto one = spirv::ConstantOp::getOne(srcInt.getType(), loc, builder); in castIntNToBool()
151 Value one = spirv::ConstantOp::getOne(dstType, loc, builder); in castBoolToIntN()
399 mask = spirv::ConstantOp::getOne(result.getType(), loc, rewriter); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/ArithmeticToSPIRV/
H A DArithmeticToSPIRV.cpp584 Value one = spirv::ConstantOp::getOne(dstType, loc, rewriter); in matchAndRewrite()
605 Value one = spirv::ConstantOp::getOne(dstType, loc, rewriter); in matchAndRewrite()
626 Value mask = spirv::ConstantOp::getOne(srcType, loc, rewriter); in matchAndRewrite()
632 Value one = spirv::ConstantOp::getOne(dstType, loc, rewriter); in matchAndRewrite()
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DDDGTest.cpp128 SE.getOne(DL.back()->getDistance(1)->getType())); in TEST()
H A DScalarEvolutionTest.cpp786 SE.getAddRecExpr(Five, SE.getOne(T_int64), Loop, SCEV::FlagAnyWrap); in TEST_F()
1232 auto *One = SE.getOne(X->getType()); in TEST_F()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DBranchProbability.h50 static BranchProbability getOne() { return BranchProbability(D); } in getOne() function
H A DScaledNumber.h521 static ScaledNumber getOne() { return ScaledNumber(1, 0); } in getOne() function
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DScalarEvolutionDivision.cpp243 One = SE.getOne(Denominator->getType()); in SCEVDivision()
H A DScalarEvolution.cpp7892 return getAddExpr(ExitCount, getOne(ExitCountType)); in getTripCountFromExitCount()
7897 getOne(WiderType)); in getTripCountFromExitCount()
10212 const SCEV *One = getOne(Distance->getType()); in howFarToZero()
10805 auto *One = getOne(Step->getType()); in getLoopInvariantExitCondDuringFirstIterations()
11062 getAddRecExpr(getZero(Ty), getOne(Ty), L, NoWrapFlags); in isLoopBackedgeGuardedByCond()
12283 const SCEV *One = getOne(Stride->getType()); in canIVOverflowOnLT()
12306 const SCEV *One = getOne(Stride->getType()); in canIVOverflowOnGT()
12329 const SCEV *MinNOne = getUMinExpr(N, getOne(N->getType())); in getUDivCeilSCEV()
12569 Stride = getUMaxExpr(Stride, getOne(Stride->getType())); in howManyLessThans()
12720 const SCEV *One = getOne(Stride->getType()); in howManyLessThans()
[all …]
H A DDependenceAnalysis.cpp397 A = SE->getOne(D->getType()); in setDistance()
1061 SE->getMinusSCEV(S, SE->getSMaxExpr(Size, SE->getOne(Size->getType()))); in isKnownLessThan()
2853 Bound[K].Iterations, SE->getOne(Bound[K].Iterations->getType())); in findBoundsLT()
2897 Bound[K].Iterations, SE->getOne(Bound[K].Iterations->getType())); in findBoundsGT()
H A DBranchProbabilityInfo.cpp489 BranchProbability::getOne() - NewUnreachableSum; in calcMetadataWeights()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DBlockFrequencyInfoImpl.h1474 Scaled64 OneMinusSelfProb = Scaled64::getOne();
1482 if (OneMinusSelfProb != Scaled64::getOne())
1619 ProbMatrix[EntryIdx].push_back(std::make_pair(Src, Scaled64::getOne()));
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DHardwareLoops.cpp391 ExitCount = SE.getAddExpr(ExitCount, SE.getOne(CountType)); in InitLoopCount()
H A DMachineBlockPlacement.cpp711 auto AdjustedSumProb = BranchProbability::getOne(); in collectViableSuccessors()
744 SuccProb = BranchProbability::getOne(); in getAdjustedProbability()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/
H A DUnifyAliasedResourcePass.cpp450 Value oneValue = spirv::ConstantOp::getOne(i32Type, loc, rewriter); in matchAndRewrite()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/IR/
H A DSPIRVStructureOps.td132 static spirv::ConstantOp getOne(Type type, Location loc,

12