/external/llvm/include/llvm/Analysis/ |
D | LazyBlockFrequencyInfo.h | 60 : Calculated(false), F(nullptr), BPI(nullptr), LI(nullptr) {} in LazyBlockFrequencyInfo() 63 void setAnalysis(const Function *F, const BranchProbabilityInfo *BPI, in setAnalysis() argument 66 this->BPI = BPI; in setAnalysis() 73 assert(F && BPI && LI && "call setAnalysis"); in getCalculated() 74 BFI.calculate(*F, *BPI, *LI); in getCalculated() 94 const BranchProbabilityInfo *BPI; variable
|
D | BranchProbabilityInfo.h | 182 BranchProbabilityInfo BPI; variable 192 BranchProbabilityInfo &getBPI() { return BPI; } in getBPI() 193 const BranchProbabilityInfo &getBPI() const { return BPI; } in getBPI()
|
D | BlockFrequencyInfoImpl.h | 808 const BranchProbabilityInfoT *BPI; 916 void calculate(const FunctionT &F, const BranchProbabilityInfoT &BPI, 918 BlockFrequencyInfoImpl() : BPI(nullptr), LI(nullptr), F(nullptr) {} 933 const BranchProbabilityInfoT &getBPI() const { return *BPI; } 957 const BranchProbabilityInfoT &BPI, 960 this->BPI = &BPI; 1210 getWeightFromBranchProb(BPI->getEdgeProbability(BB, SI)))) 1318 const BranchProbabilityInfoT *BPI, 1321 if (!BPI) 1324 BranchProbability BP = BPI->getEdgeProbability(Node, EI);
|
D | BlockFrequencyInfo.h | 40 BlockFrequencyInfo(const Function &F, const BranchProbabilityInfo &BPI, 68 void calculate(const Function &F, const BranchProbabilityInfo &BPI,
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/ |
D | BranchProbabilityInfo.h | 153 BranchProbabilityInfo *BPI; variable 156 assert(BPI != nullptr); in deleted() 157 BPI->eraseBlock(cast<BasicBlock>(getValPtr())); in deleted() 158 BPI->Handles.erase(*this); in deleted() 162 BasicBlockCallbackVH(const Value *V, BranchProbabilityInfo *BPI = nullptr) 163 : CallbackVH(const_cast<Value *>(V)), BPI(BPI) {} in CallbackVH() 232 BranchProbabilityInfo BPI; variable 242 BranchProbabilityInfo &getBPI() { return BPI; } in getBPI() 243 const BranchProbabilityInfo &getBPI() const { return BPI; } in getBPI()
|
D | LazyBranchProbabilityInfo.h | 67 BPI.calculate(*F, *LI, TLI); in getCalculated() 70 return BPI; in getCalculated() 78 BranchProbabilityInfo BPI;
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/ |
D | BranchProbabilityInfoTest.cpp | 29 std::unique_ptr<BranchProbabilityInfo> BPI; member 37 BPI.reset(new BranchProbabilityInfo(F, *LI)); in buildBPI() 38 return *BPI; in buildBPI() 78 BranchProbabilityInfo &BPI = buildBPI(*F); in TEST_F() local 83 EXPECT_FALSE(BPI.isEdgeHot(EntryBB, PreExitBB)); in TEST_F() 84 EXPECT_TRUE(BPI.isEdgeHot(EntryBB, ExitBB)); in TEST_F()
|
D | BlockFrequencyInfoTest.cpp | 29 std::unique_ptr<BranchProbabilityInfo> BPI; member in llvm::__anon60bb38c20111::BlockFrequencyInfoTest 37 BPI.reset(new BranchProbabilityInfo(F, *LI)); in buildBFI() 38 return BlockFrequencyInfo(F, *BPI, *LI); in buildBFI()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/ |
D | CodeExtractor.h | 57 BranchProbabilityInfo *BPI; variable 80 BranchProbabilityInfo *BPI = nullptr, 89 BranchProbabilityInfo *BPI = nullptr); 156 BranchProbabilityInfo *BPI);
|
/external/llvm/lib/Analysis/ |
D | BlockFrequencyInfo.cpp | 118 const BranchProbabilityInfo &BPI, in BlockFrequencyInfo() argument 120 calculate(F, BPI, LI); in BlockFrequencyInfo() 139 const BranchProbabilityInfo &BPI, in calculate() argument 143 BFI->calculate(F, BPI, LI); in calculate() 244 BranchProbabilityInfo &BPI = in runOnFunction() local 247 BFI.calculate(F, BPI, LI); in runOnFunction()
|
D | LazyBlockFrequencyInfo.cpp | 51 BranchProbabilityInfo &BPI = in runOnFunction() local 54 LBFI.setAnalysis(&F, &BPI, &LI); in runOnFunction()
|
D | BranchProbabilityInfo.cpp | 684 BPI.calculate(F, LI); in runOnFunction() 688 void BranchProbabilityInfoWrapperPass::releaseMemory() { BPI.releaseMemory(); } in releaseMemory() 692 BPI.print(OS); in print() 698 BranchProbabilityInfo BPI; in run() local 699 BPI.calculate(F, AM.getResult<LoopAnalysis>(F)); in run() 700 return BPI; in run()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | LoopPredication.cpp | 239 BranchProbabilityInfo *BPI; member in __anon55fdd7d90111::LoopPredication 297 LoopPredication(ScalarEvolution *SE, BranchProbabilityInfo *BPI) in LoopPredication() argument 298 : SE(SE), BPI(BPI){}; in LoopPredication() 318 BranchProbabilityInfo &BPI = in runOnLoop() local 320 LoopPredication LP(SE, &BPI); in runOnLoop() 345 auto *BPI = FAM.getCachedResult<BranchProbabilityAnalysis>(*F); in run() local 346 LoopPredication LP(&AR.SE, BPI); in run() 725 if (SkipProfitabilityChecks || !BPI) in isLoopProfitableToPredicate() 748 BPI->getEdgeProbability(LatchBlock, LatchBrExitIdx); in isLoopProfitableToPredicate() 766 BPI->getEdgeProbability(ExitEdge.first, ExitEdge.second); in isLoopProfitableToPredicate()
|
D | InductiveRangeCheckElimination.cpp | 240 BranchProbabilityInfo *BPI, 246 BranchProbabilityInfo *BPI; member in __anon3167cb7c0111::InductiveRangeCheckElimination 252 BranchProbabilityInfo *BPI, DominatorTree &DT, in InductiveRangeCheckElimination() argument 254 : SE(SE), BPI(BPI), DT(DT), LI(LI) {} in InductiveRangeCheckElimination() 431 BranchInst *BI, Loop *L, ScalarEvolution &SE, BranchProbabilityInfo *BPI, in extractRangeChecksFromBranch() argument 438 if (!SkipProfitabilityChecks && BPI && in extractRangeChecksFromBranch() 439 BPI->getEdgeProbability(BI->getParent(), (unsigned)0) < LikelyTaken) in extractRangeChecksFromBranch() 530 BranchProbabilityInfo *BPI, 825 BranchProbabilityInfo *BPI, Loop &L, in parseLoopStructure() argument 861 BPI ? BPI->getEdgeProbability(LatchBr->getParent(), LatchBrExitIdx) in parseLoopStructure() [all …]
|
/external/llvm/include/llvm/Transforms/Scalar/ |
D | JumpThreading.h | 63 std::unique_ptr<BranchProbabilityInfo> BPI; variable 91 BPI(std::move(Other.BPI)), HasProfileData(Other.HasProfileData), in JumpThreadingPass() 105 BPI.reset(); in releaseMemory()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | BlockFrequencyInfo.cpp | 155 const BranchProbabilityInfo &BPI, in BlockFrequencyInfo() argument 157 calculate(F, BPI, LI); in BlockFrequencyInfo() 185 const BranchProbabilityInfo &BPI, in calculate() argument 189 BFI->calculate(F, BPI, LI); in calculate() 319 BranchProbabilityInfo &BPI = in runOnFunction() local 322 BFI.calculate(F, BPI, LI); in runOnFunction()
|
D | OptimizationRemarkEmitter.cpp | 39 BranchProbabilityInfo BPI; in OptimizationRemarkEmitter() local 40 BPI.calculate(*F, LI); in OptimizationRemarkEmitter() 43 OwnedBFI = llvm::make_unique<BlockFrequencyInfo>(*F, BPI, LI); in OptimizationRemarkEmitter()
|
/external/llvm/unittests/Analysis/ |
D | BlockFrequencyInfoTest.cpp | 30 std::unique_ptr<BranchProbabilityInfo> BPI; member in llvm::__anon1935df8a0111::BlockFrequencyInfoTest 38 BPI.reset(new BranchProbabilityInfo(F, *LI)); in buildBFI() 39 return BlockFrequencyInfo(F, *BPI, *LI); in buildBFI()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | BreakCriticalEdges.cpp | 335 BranchProbabilityInfo *BPI, in SplitIndirectBrCriticalEdges() argument 353 bool ShouldUpdateAnalysis = BPI && BFI; in SplitIndirectBrCriticalEdges() 373 BPI->setEdgeProbability(BodyBlock, I, in SplitIndirectBrCriticalEdges() 374 BPI->getEdgeProbability(Target, I)); in SplitIndirectBrCriticalEdges() 396 BPI->getEdgeProbability(Src, DirectSucc); in SplitIndirectBrCriticalEdges() 403 BPI->eraseBlock(Target); in SplitIndirectBrCriticalEdges()
|
D | CodeExtractor.cpp | 230 BranchProbabilityInfo *BPI, bool AllowVarArgs, in CodeExtractor() argument 233 BPI(BPI), AllowVarArgs(AllowVarArgs), in CodeExtractor() 238 BranchProbabilityInfo *BPI) in CodeExtractor() argument 240 BPI(BPI), AllowVarArgs(false), in CodeExtractor() 1068 BranchProbabilityInfo *BPI) { in calculateNewCallTerminatorWeights() argument 1086 BPI->setEdgeProbability(CodeReplacer, i, BranchProbability::getZero()); in calculateNewCallTerminatorWeights() 1103 BPI->setEdgeProbability(CodeReplacer, Weight.TargetNode.Index, BP); in calculateNewCallTerminatorWeights() 1144 assert(BPI && "Both BPI and BFI are required to preserve profile info"); in extractCodeRegion() 1149 BFI->getBlockFreq(Pred) * BPI->getEdgeProbability(Pred, header); in extractCodeRegion() 1215 BF += BFI->getBlockFreq(Block) * BPI->getEdgeProbability(Block, *SI); in extractCodeRegion() [all …]
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | CFGMST.h | 116 if (BPI != nullptr) in buildEdges() 117 Weight = BPI->getEdgeProbability(&*BB, TargetBB).scale(scaleFactor); in buildEdges() 202 BranchProbabilityInfo *BPI; variable 208 : F(Func), BPI(BPI_), BFI(BFI_) { in F()
|
D | PGOInstrumentation.cpp | 265 BranchProbabilityInfo *BPI = nullptr, in FuncPGOInstrumentation() argument 267 : F(Func), FunctionHash(0), MST(F, BPI, BFI) { in FuncPGOInstrumentation() 344 BranchProbabilityInfo *BPI, in instrumentOneFunc() argument 347 FuncPGOInstrumentation<PGOEdge, BBInfo> FuncInfo(F, true, BPI, BFI); in instrumentOneFunc() 459 PGOUseFunc(Function &Func, Module *Modu, BranchProbabilityInfo *BPI = nullptr, in PGOUseFunc() argument 461 : F(Func), M(Modu), FuncInfo(Func, false, BPI, BFI), in PGOUseFunc() 812 auto *BPI = LookupBPI(F); in InstrumentAllFunctions() local 814 instrumentOneFunc(F, &M, BPI, BFI); in InstrumentAllFunctions() 885 auto *BPI = LookupBPI(F); in annotateAllFunctions() local 887 PGOUseFunc Func(F, &M, BPI, BFI); in annotateAllFunctions()
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | BlockFrequencyInfo.cpp | 47 BranchProbabilityInfo &BPI = getAnalysis<BranchProbabilityInfo>(); in runOnFunction() local 48 BFI->doFunction(&F, &BPI); in runOnFunction()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/ |
D | CFGMST.h | 137 if (BPI != nullptr) in buildEdges() 138 Weight = BPI->getEdgeProbability(&*BB, TargetBB).scale(scaleFactor); in buildEdges() 273 BranchProbabilityInfo *BPI; variable 279 : F(Func), BPI(BPI_), BFI(BFI_) { in F()
|
/external/llvm/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 125 std::unique_ptr<BranchProbabilityInfo> BPI; in runOnFunction() local 129 BPI.reset(new BranchProbabilityInfo(F, LI)); in runOnFunction() 130 BFI.reset(new BlockFrequencyInfo(F, *BPI, LI)); in runOnFunction() 133 std::move(BPI)); in runOnFunction() 142 std::unique_ptr<BranchProbabilityInfo> BPI; in run() local 146 BPI.reset(new BranchProbabilityInfo(F, LI)); in run() 147 BFI.reset(new BlockFrequencyInfo(F, *BPI, LI)); in run() 150 runImpl(F, &TLI, &LVI, HasProfileData, std::move(BFI), std::move(BPI)); in run() 172 BPI.reset(); in runImpl() 177 BPI = std::move(BPI_); in runImpl() [all …]
|