Home
last modified time | relevance | path

Searched refs:BPI (Results 1 – 25 of 70) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DCFGPrinter.cpp61 BranchProbabilityInfo *BPI, uint64_t MaxFreq,
70 DOTFuncInfo CFGInfo(&F, BFI, BPI, MaxFreq); in writeCFGToDotFile()
83 const BranchProbabilityInfo *BPI, uint64_t MaxFreq,
85 DOTFuncInfo CFGInfo(&F, BFI, BPI, MaxFreq); in viewCFG() argument
97 auto *BPI = &AM.getResult<BranchProbabilityAnalysis>(F);
98 viewCFG(F, BFI, BPI, getMaxFreq(F, BFI)); in CFGViewerLegacyPass()
107 auto *BPI = &AM.getResult<BranchProbabilityAnalysis>(F); in runOnFunction()
108 viewCFG(F, BFI, BPI, getMaxFreq(F, BFI), /*CFGOnly=*/true); in runOnFunction()
117 auto *BPI = &AM.getResult<BranchProbabilityAnalysis>(F); in getAnalysisUsage()
118 writeCFGToDotFile(F, BFI, BPI, getMaxFre in getAnalysisUsage()
63 writeCFGToDotFile(Function & F,BlockFrequencyInfo * BFI,BranchProbabilityInfo * BPI,uint64_t MaxFreq,bool CFGOnly=false) writeCFGToDotFile() argument
105 auto *BPI = &getAnalysis<BranchProbabilityInfoWrapperPass>().getBPI(); runOnFunction() local
130 auto *BPI = &AM.getResult<BranchProbabilityAnalysis>(F); run() local
145 auto *BPI = &getAnalysis<BranchProbabilityInfoWrapperPass>().getBPI(); runOnFunction() local
171 auto *BPI = &AM.getResult<BranchProbabilityAnalysis>(F); run() local
186 auto *BPI = &getAnalysis<BranchProbabilityInfoWrapperPass>().getBPI(); runOnFunction() local
212 auto *BPI = &AM.getResult<BranchProbabilityAnalysis>(F); run() local
227 auto *BPI = &getAnalysis<BranchProbabilityInfoWrapperPass>().getBPI(); runOnFunction() local
253 auto *BPI = &AM.getResult<BranchProbabilityAnalysis>(F); run() local
[all...]
H A DBlockFrequencyInfo.cpp155 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()
325 BranchProbabilityInfo &BPI = in runOnFunction() local
328 BFI.calculate(F, BPI, LI); in runOnFunction()
H A DOptimizationRemarkEmitter.cpp41 BranchProbabilityInfo BPI(*F, LI, nullptr, &DT, nullptr); in OptimizationRemarkEmitter() local
44 OwnedBFI = std::make_unique<BlockFrequencyInfo>(*F, BPI, LI); in OptimizationRemarkEmitter()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DTargetInfo.cpp211 const TargetInfo::BranchProtectionInfo &BPI, llvm::Function &F) { in setBranchProtectionFnAttributes() argument
215 if (BPI.SignReturnAddr != LangOptions::SignReturnAddressScopeKind::None) { in setBranchProtectionFnAttributes()
216 F.addFnAttr("sign-return-address", BPI.getSignReturnAddrStr()); in setBranchProtectionFnAttributes()
217 F.addFnAttr("sign-return-address-key", BPI.getSignKeyStr()); in setBranchProtectionFnAttributes()
232 AddRemoveAttributeAsSet(BPI.BranchTargetEnforcement, in setBranchProtectionFnAttributes()
234 AddRemoveAttributeAsSet(BPI.BranchProtectionPAuthLR, in setBranchProtectionFnAttributes()
236 AddRemoveAttributeAsSet(BPI.GuardedControlStack, "guarded-control-stack"); in setBranchProtectionFnAttributes()
240 const TargetInfo::BranchProtectionInfo &BPI, llvm::AttrBuilder &FuncAttrs) { in initBranchProtectionFnAttributes() argument
243 if (BPI.SignReturnAddr != LangOptions::SignReturnAddressScopeKind::None) { in initBranchProtectionFnAttributes()
244 FuncAttrs.addAttribute("sign-return-address", BPI.getSignReturnAddrStr()); in initBranchProtectionFnAttributes()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DBranchProbabilityInfo.h281 BranchProbabilityInfo *BPI; variable
284 assert(BPI != nullptr); in deleted()
285 BPI->eraseBlock(cast<BasicBlock>(getValPtr())); in deleted()
289 void setBPI(BranchProbabilityInfo *BPI) { this->BPI = BPI; } in setBPI() argument
291 BasicBlockCallbackVH(const Value *V, BranchProbabilityInfo *BPI = nullptr)
292 : CallbackVH(const_cast<Value *>(V)), BPI(BPI) {} in CallbackVH()
454 BranchProbabilityInfo BPI; variable
461 BranchProbabilityInfo &getBPI() { return BPI; } in getBPI()
462 const BranchProbabilityInfo &getBPI() const { return BPI; } in getBPI()
H A DLazyBranchProbabilityInfo.h66 BPI.calculate(*F, *LI, TLI, nullptr, nullptr); in getCalculated()
69 return BPI; in getCalculated()
77 BranchProbabilityInfo BPI;
H A DCFGPrinter.h63 const BranchProbabilityInfo *BPI; variable
73 const BranchProbabilityInfo *BPI, uint64_t MaxFreq) in DOTFuncInfo() argument
74 : F(F), BFI(BFI), BPI(BPI), MaxFreq(MaxFreq) { in DOTFuncInfo()
76 EdgeWeights = !!BPI; // Print EdgeWeights when BPI is available. in DOTFuncInfo()
82 const BranchProbabilityInfo *getBPI() const { return BPI; } in getBPI()
H A DBlockFrequencyInfo.h45 BlockFrequencyInfo(const Function &F, const BranchProbabilityInfo &BPI,
93 void calculate(const Function &F, const BranchProbabilityInfo &BPI,
H A DBlockFrequencyInfoImpl.h861 const BranchProbabilityInfoT *BPI = nullptr;
1011 void calculate(const FunctionT &F, const BranchProbabilityInfoT &BPI,
1051 const BranchProbabilityInfoT &getBPI() const { return *BPI; }
1103 const BranchProbabilityInfoT &BPI,
1106 this->BPI = &BPI;
1519 auto EP = BPI->getEdgeProbability(SrcBB, DstBB);
1542 auto EP = BPI->getEdgeProbability(DstBB, SrcBB);
1580 auto EP = BPI->getEdgeProbability(BB, SI);
1704 getWeightFromBranchProb(BPI->getEdgeProbability(BB, SI))))
1878 const BranchProbabilityInfoT *BPI,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DSpeculateAnalyses.cpp150 const BranchProbabilityInfo *BPI, in traverseToEntryBlock()
185 if (BPI->isEdgeHot(*PIt, AtBB) && !PredSkipNodes.count(*PIt)) in traverseToEntryBlock()
186 traverseToEntryBlock(*PIt, CallerBlocks, BackEdgesInfo, BPI, in traverseToEntryBlock()
193 const BranchProbabilityInfo *BPI, in traverseToExitBlock()
224 if (BPI->isEdgeHot(AtBB, *PIt) && !SuccSkipNodes.count(*PIt)) in traverseToExitBlock()
225 traverseToExitBlock(*PIt, CallerBlocks, BackEdgesInfo, BPI, in traverseToExitBlock()
259 BranchProbabilityInfo *BPI = in queryCFG()
267 traverseToEntryBlock(I.first, CallerBlocks, BackEdgesInfo, BPI, in queryCFG()
269 traverseToExitBlock(I.first, CallerBlocks, BackEdgesInfo, BPI, in queryCFG()
151 traverseToEntryBlock(const BasicBlock * AtBB,const BlockListTy & CallerBlocks,const BackEdgesInfoTy & BackEdgesInfo,const BranchProbabilityInfo * BPI,VisitedBlocksInfoTy & VisitedBlocks) traverseToEntryBlock() argument
194 traverseToExitBlock(const BasicBlock * AtBB,const BlockListTy & CallerBlocks,const BackEdgesInfoTy & BackEdgesInfo,const BranchProbabilityInfo * BPI,VisitedBlocksInfoTy & VisitedBlocks) traverseToExitBlock() argument
260 BranchProbabilityInfo *BPI = queryCFG() local
/freebsd/contrib/llvm-project/llvm/tools/llvm-mca/Views/
H A DBottleneckAnalysis.cpp299 if (!SeenStallCycles || !BPI.PressureIncreaseCycles) in printCriticalSequence()
451 SeenStallCycles(false), BPI() {} in BottleneckAnalysis()
573 ++BPI.PressureIncreaseCycles; in onCycleEnd()
575 ++BPI.RegisterDependencyCycles; in onCycleEnd()
577 ++BPI.MemoryDependencyCycles; in onCycleEnd()
579 ++BPI.DataDependencyCycles; in onCycleEnd()
581 ++BPI.ResourcePressureCycles; in onCycleEnd()
588 if (!SeenStallCycles || !BPI.PressureIncreaseCycles) { in printBottleneckHints()
594 (double)BPI.PressureIncreaseCycles * 100 / TotalCycles; in printBottleneckHints()
596 (double)BPI.ResourcePressureCycles * 100 / TotalCycles; in printBottleneckHints()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DCodeExtractor.h92 BranchProbabilityInfo *BPI; variable
140 BranchProbabilityInfo *BPI = nullptr,
152 BranchProbabilityInfo *BPI = nullptr,
266 BranchProbabilityInfo *BPI);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBreakCriticalEdges.cpp340 BranchProbabilityInfo *BPI, in SplitIndirectBrCriticalEdges() argument
355 bool ShouldUpdateAnalysis = BPI && BFI; in SplitIndirectBrCriticalEdges()
379 EdgeProbabilities.emplace_back(BPI->getEdgeProbability(Target, I)); in SplitIndirectBrCriticalEdges()
380 BPI->eraseBlock(Target); in SplitIndirectBrCriticalEdges()
386 BPI->setEdgeProbability(BodyBlock, EdgeProbabilities); in SplitIndirectBrCriticalEdges()
408 BPI->getEdgeProbability(Src, DirectSucc); in SplitIndirectBrCriticalEdges()
H A DCodeExtractor.cpp246 BranchProbabilityInfo *BPI, AssumptionCache *AC, in CodeExtractor() argument
251 BPI(BPI), AC(AC), AllocationBlock(AllocationBlock), in CodeExtractor()
258 BranchProbabilityInfo *BPI, AssumptionCache *AC, in CodeExtractor() argument
261 BPI(BPI), AC(AC), AllocationBlock(nullptr), AllowVarArgs(false), in CodeExtractor()
1477 BranchProbabilityInfo *BPI) { in calculateNewCallTerminatorWeights() argument
1503 BPI->setEdgeProbability(CodeReplacer, EdgeProbabilities); in calculateNewCallTerminatorWeights()
1519 BPI->setEdgeProbability(CodeReplacer, EdgeProbabilities); in calculateNewCallTerminatorWeights()
1731 assert(BPI && "Both BPI and BFI are required to preserve profile info"); in extractCodeRegion()
1736 BFI->getBlockFreq(Pred) * BPI->getEdgeProbability(Pred, header); in extractCodeRegion()
1766 BF += BFI->getBlockFreq(Block) * BPI->getEdgeProbability(Block, Succ); in extractCodeRegion()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp298 BPI = BPI_; in runImpl()
1048 if (auto *BPI = getBPI()) in processBlock() local
1049 BPI->eraseBlock(BB); in processBlock()
1200 if (auto *BPI = getBPI()) in processImpliedCondition() local
1201 BPI->eraseBlock(BB); in processImpliedCondition()
1651 if (auto *BPI = getBPI()) in processThreadableEdges() local
1652 BPI->eraseBlock(BB); in processThreadableEdges()
2270 auto *BPI = getOrCreateBPI(BFI != nullptr); in threadThroughTwoBasicBlocks() local
2282 assert(BPI && "It's expected BPI to exist along with BFI"); in threadThroughTwoBasicBlocks()
2284 BPI->getEdgeProbability(PredPredBB, PredBB); in threadThroughTwoBasicBlocks()
[all …]
H A DInductiveRangeCheckElimination.cpp237 BranchInst *BI, Loop *L, ScalarEvolution &SE, BranchProbabilityInfo *BPI,
243 BranchProbabilityInfo *BPI;
257 BranchProbabilityInfo *BPI, DominatorTree &DT,
259 : SE(SE), BPI(BPI), DT(DT), LI(LI), GetBFI(GetBFI) {}
526 BranchInst *BI, Loop *L, ScalarEvolution &SE, BranchProbabilityInfo *BPI,
536 if (!SkipProfitabilityChecks && BPI && in extractRangeChecksFromBranch()
537 BPI->getEdgeProbability(BI->getParent(), IndexLoopSucc) < LikelyTaken) in extractRangeChecksFromBranch()
545 if (BPI) in extractRangeChecksFromBranch()
546 BPI in extractRangeChecksFromBranch()
248 BranchProbabilityInfo *BPI; global() member in __anona4c10e620111::InductiveRangeCheckElimination
262 InductiveRangeCheckElimination(ScalarEvolution & SE,BranchProbabilityInfo * BPI,DominatorTree & DT,LoopInfo & LI,GetBFIFunc GetBFI=std::nullopt) InductiveRangeCheckElimination() argument
528 extractRangeChecksFromBranch(BranchInst * BI,Loop * L,ScalarEvolution & SE,BranchProbabilityInfo * BPI,SmallVectorImpl<InductiveRangeCheck> & Checks,bool & Changed) extractRangeChecksFromBranch() argument
1990 auto &BPI = AM.getResult<BranchProbabilityAnalysis>(F); run() local
[all...]
/freebsd/sys/contrib/device-tree/src/arm64/amlogic/
H A Dmeson-g12b-bananapi-cm4-cm4io.dts15 model = "BananaPi BPI-CM4IO Baseboard with BPI-CM4 Module";
66 model = "BPI-CM4IO";
H A Dmeson-sm1-bananapi-m2-pro.dts14 model = "Banana Pi BPI-M2-PRO";
18 model = "BPI-M2-PRO";
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/
H A DCFGMST.h53 BranchProbabilityInfo *const BPI;
155 if (BPI != nullptr) in buildEdges()
156 Weight = BPI->getEdgeProbability(&BB, TargetBB).scale(scaleFactor); in buildEdges()
295 BranchProbabilityInfo *BPI = nullptr, in F()
297 : F(Func), BPI(BPI), BFI(BFI), InstrumentFuncEntry(InstrumentFuncEntry) {
278 BranchProbabilityInfo *BPI; global() variable
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DJumpThreading.h88 std::optional<BranchProbabilityInfo *> BPI; variable
109 std::optional<BranchProbabilityInfo *> BPI);
174 BranchProbabilityInfo *BPI,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DPartialInlining.cpp353 BranchProbabilityInfo BPI(F, LI); in computeOutliningColdRegionsInfo() local
357 ScopedBFI.reset(new BlockFrequencyInfo(F, BPI, LI)); in computeOutliningColdRegionsInfo()
441 BranchProbability SuccProb = BPI.getEdgeProbability(ThisBB, *SI); in computeOutliningColdRegionsInfo()
914 BranchProbabilityInfo BPI(*Caller, LI); in computeCallsiteToProfCountMap() local
915 TempBFI.reset(new BlockFrequencyInfo(*Caller, BPI, LI)); in computeCallsiteToProfCountMap()
1102 BranchProbabilityInfo BPI(*ClonedFunc, LI); in doMultiRegionFunctionOutlining() local
1103 ClonedFuncBFI.reset(new BlockFrequencyInfo(*ClonedFunc, BPI, LI)); in doMultiRegionFunctionOutlining()
1115 ClonedFuncBFI.get(), &BPI, in doMultiRegionFunctionOutlining()
1174 BranchProbabilityInfo BPI(*ClonedFunc, LI); in doSingleRegionFunctionOutlining() local
1175 ClonedFuncBFI.reset(new BlockFrequencyInfo(*ClonedFunc, BPI, LI)); in doSingleRegionFunctionOutlining()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h79 BranchProbabilityInfo *BPI; variable
100 BlockFrequencyInfo *BFI, BranchProbabilityInfo *BPI, in InstCombiner() argument
106 ORE(ORE), BFI(BFI), BPI(BPI), PSI(PSI), LI(LI) {} in InstCombiner()
/freebsd/sys/contrib/device-tree/src/arm64/allwinner/
H A Dsun50i-h5-bananapi-m2-plus.dts9 model = "Banana Pi BPI-M2-Plus H5";
H A Dsun50i-h5-bananapi-m2-plus-v1.2.dts10 model = "Banana Pi BPI-M2-Plus v1.2 H5";
/freebsd/sys/contrib/device-tree/src/arm/allwinner/
H A Dsun8i-h3-bananapi-m2-plus-v1.2.dts11 model = "Banana Pi BPI-M2-Plus v1.2 H3";

123