Searched defs:BFI (Results 1 - 20 of 20) sorted by relevance

/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
H A DBlockFrequencyInfo.h31 BlockFrequencyImpl<BasicBlock, Function, BranchProbabilityInfo> *BFI; member in class:llvm::BlockFrequencyInfo
/external/llvm/include/llvm/Analysis/
H A DBlockFrequencyInfo.h33 std::unique_ptr<ImplType> BFI; member in class:llvm::BlockFrequencyInfo
94 /// \brief Run the analysis pass over a function and produce BFI.
110 BlockFrequencyInfo BFI; member in class:llvm::BlockFrequencyInfoWrapperPass
118 BlockFrequencyInfo &getBFI() { return BFI; }
119 const BlockFrequencyInfo &getBFI() const { return BFI; }
H A DLazyBlockFrequencyInfo.h12 // the analysis pass is executed but rather when the BFI results is explicitly
32 /// rather when the BFI results is explicitly requested by the analysis client.
45 /// 3. The computed BFI should be requested with
53 /// Wraps a BFI to allow lazy computation of the block frequencies.
55 /// A pass that only conditionally uses BFI can uncondtionally require the
56 /// analysis without paying for the overhead if BFI doesn't end up being used.
70 /// Retrieve the BFI with the block frequencies computed.
74 BFI.calculate(*F, *BPI, *LI);
77 return BFI;
85 BFI
91 BlockFrequencyInfo BFI; member in class:llvm::LazyBlockFrequencyInfoPass::LazyBlockFrequencyInfo
[all...]
H A DBlockFrequencyInfoImpl.h557 BFIBase &BFI; member in struct:llvm::bfi_detail::IrreducibleGraph
587 IrreducibleGraph(BFIBase &BFI, const BFIBase::LoopData *OuterLoop, argument
589 : BFI(BFI), StartIrr(nullptr) {
600 BFI.Working[Node.Index].getMass() = BlockMass::getEmpty();
618 for (uint32_t Index = 0; Index < BFI.Working.size(); ++Index)
631 const auto &Working = BFI.Working[Node.Index];
988 // If BB is a newly added block after BFI is done, we need to create a new
1155 const BlockFrequencyInfoImpl<BT> &BFI; member in struct:llvm::bfi_detail::BlockEdgesAdder
1156 explicit BlockEdgesAdder(const BlockFrequencyInfoImpl<BT> &BFI) argument
1316 getEdgeAttributes(const NodeType *Node, EdgeIter EI, const BlockFrequencyInfoT *BFI, const BranchProbabilityInfoT *BPI, unsigned HotPercentThreshold = 0) argument
[all...]
/external/llvm/include/llvm/Transforms/Vectorize/
H A DLoopVectorize.h81 BlockFrequencyInfo *BFI; member in struct:llvm::LoopVectorizePass
/external/llvm/include/llvm/Transforms/Scalar/
H A DJumpThreading.h62 std::unique_ptr<BlockFrequencyInfo> BFI; member in class:llvm::JumpThreadingPass
90 : TLI(Other.TLI), LVI(Other.LVI), BFI(std::move(Other.BFI)),
104 BFI.reset();
/external/llvm/unittests/Analysis/
H A DBlockFrequencyInfoTest.cpp64 BlockFrequencyInfo BFI = buildBFI(*F); local
70 uint64_t BB0Freq = BFI.getBlockFreq(&BB0).getFrequency();
71 uint64_t BB1Freq = BFI.getBlockFreq(BB1).getFrequency();
72 uint64_t BB2Freq = BFI.getBlockFreq(BB2).getFrequency();
73 uint64_t BB3Freq = BFI.getBlockFreq(BB3).getFrequency();
79 EXPECT_EQ(BFI.getBlockProfileCount(&BB0).getValue(), UINT64_C(100));
80 EXPECT_EQ(BFI.getBlockProfileCount(BB3).getValue(), UINT64_C(100));
81 EXPECT_EQ(BFI.getBlockProfileCount(BB1).getValue(), 100 * BB1Freq / BB0Freq);
82 EXPECT_EQ(BFI.getBlockProfileCount(BB2).getValue(), 100 * BB2Freq / BB0Freq);
/external/llvm/lib/Analysis/
H A DModuleSummaryAnalysis.cpp66 const Function &F, BlockFrequencyInfo *BFI) {
88 auto ScaledCount = BFI ? BFI->getBlockProfileCount(&BB) : None;
134 BlockFrequencyInfo *BFI = nullptr; local
137 BFI = Ftor(F);
142 BFI = BFIPtr.get();
145 computeFunctionSummary(F, BFI);
65 computeFunctionSummary( const Function &F, BlockFrequencyInfo *BFI) argument
H A DBlockFrequencyInfo.cpp106 const BlockFrequencyInfo *BFI) {
107 return BFIDOTGTraitsBase::getEdgeAttributes(Node, EI, BFI, BFI->getBPI(),
124 : BFI(std::move(Arg.BFI)) {}
128 BFI = std::move(RHS.BFI);
133 // defined at the first ODR-use which is the BFI member in the
141 if (!BFI)
142 BFI
105 getEdgeAttributes(const BasicBlock *Node, EdgeIter EI, const BlockFrequencyInfo *BFI) argument
254 BlockFrequencyInfo BFI; local
[all...]
H A DBlockFrequencyInfoImpl.cpp260 static void cleanup(BlockFrequencyInfoImplBase &BFI) { argument
261 std::vector<FrequencyData> SavedFreqs(std::move(BFI.Freqs));
262 BFI.clear();
263 BFI.Freqs = std::move(SavedFreqs);
388 static void debugAssign(const BlockFrequencyInfoImplBase &BFI, argument
395 dbgs() << " to " << BFI.getBlockName(T);
435 static void convertFloatingToInteger(BlockFrequencyInfoImplBase &BFI, argument
461 for (size_t Index = 0; Index < BFI.Freqs.size(); ++Index) {
462 Scaled64 Scaled = BFI.Freqs[Index].Scaled * ScalingFactor;
463 BFI
474 unwrapLoop(BlockFrequencyInfoImplBase &BFI, LoopData &Loop) argument
640 findIrreducibleHeaders( const BlockFrequencyInfoImplBase &BFI, const IrreducibleGraph &G, const std::vector<const IrreducibleGraph::IrrNode *> &SCC, LoopData::NodeList &Headers, LoopData::NodeList &Others) argument
707 createIrreducibleLoop( BlockFrequencyInfoImplBase &BFI, const IrreducibleGraph &G, LoopData *OuterLoop, std::list<LoopData>::iterator Insert, const std::vector<const IrreducibleGraph::IrrNode *> &SCC) argument
[all...]
/external/llvm/lib/Transforms/Instrumentation/
H A DCFGMST.h88 uint64_t EntryWeight = (BFI != nullptr ? BFI->getEntryFreq() : 2);
103 (BFI != nullptr ? BFI->getBlockFreq(&*BB).getFrequency() : 2);
203 BlockFrequencyInfo *BFI; member in class:llvm::CFGMST
208 : F(Func), BPI(BPI_), BFI(BFI_) {
H A DPGOInstrumentation.cpp266 BlockFrequencyInfo *BFI = nullptr)
267 : F(Func), FunctionHash(0), MST(F, BPI, BFI) {
345 BlockFrequencyInfo *BFI) {
347 FuncPGOInstrumentation<PGOEdge, BBInfo> FuncInfo(F, true, BPI, BFI);
460 BlockFrequencyInfo *BFI = nullptr)
461 : F(Func), M(Modu), FuncInfo(Func, false, BPI, BFI),
813 auto *BFI = LookupBFI(F); local
814 instrumentOneFunc(F, &M, BPI, BFI);
886 auto *BFI = LookupBFI(F); local
887 PGOUseFunc Func(F, &M, BPI, BFI);
343 instrumentOneFunc(Function &F, Module *M, BranchProbabilityInfo *BPI, BlockFrequencyInfo *BFI) argument
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DLoopUnswitch.cpp179 // BFI and ColdEntryFreq are only used when PGO and
181 BlockFrequencyInfo BFI; member in class:__anon13388::LoopUnswitch
464 BFI.calculate(*L->getHeader()->getParent(), BPI, *LI);
470 ColdEntryFreq = BlockFrequency(BFI.getEntryFreq()) * ColdProb;
560 BlockFrequency LoopEntryFreq = BFI.getBlockFreq(loopHeader);
H A DJumpThreading.cpp124 std::unique_ptr<BlockFrequencyInfo> BFI; local
130 BFI.reset(new BlockFrequencyInfo(F, *BPI, LI));
132 return Impl.runImpl(F, TLI, LVI, HasProfileData, std::move(BFI),
141 std::unique_ptr<BlockFrequencyInfo> BFI; local
147 BFI.reset(new BlockFrequencyInfo(F, *BPI, LI));
150 runImpl(F, &TLI, &LVI, HasProfileData, std::move(BFI), std::move(BPI));
171 BFI.reset();
174 // successful jump threading, which requires both BPI and BFI being available.
178 BFI = std::move(BFI_);
1495 BFI
[all...]
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
H A DARMISelLowering.h180 BFI, enumerator in enum:llvm::ARMISD::NodeType
/external/clang/lib/CodeGen/
H A DCGAtomic.cpp41 CGBitFieldInfo BFI; member in class:__anon1179::AtomicInfo
93 BFI = OrigBFI;
94 BFI.Offset = Offset;
95 BFI.StorageSize = AtomicSizeInBits;
96 BFI.StorageOffset += OffsetInChars;
98 BFI, lvalue.getType(),
1557 if ((LVal.isBitField() && BFI.Size != ValueSizeInBits) ||
1591 if ((LVal.isBitField() && BFI.Size != ValueSizeInBits) ||
1644 if ((LVal.isBitField() && BFI.Size != ValueSizeInBits) ||
1674 if ((LVal.isBitField() && BFI
[all...]
/external/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp6980 int BFI = cast<FrameIndexSDNode>(BaseLoc)->getIndex(); local
6982 int BFS = MFI->getObjectSize(BFI);
6984 return MFI->getObjectOffset(FI) == (MFI->getObjectOffset(BFI) + Dist*Bytes);
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp6499 int BFI = cast<FrameIndexSDNode>(BaseLoc)->getIndex(); local
6501 int BFS = MFI->getObjectSize(BFI);
6503 return MFI->getObjectOffset(FI) == (MFI->getObjectOffset(BFI) + Dist*Bytes);
/external/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.cpp9544 int BFI = cast<FrameIndexSDNode>(BaseLoc)->getIndex(); local
9546 int BFS = MFI->getObjectSize(BFI);
9548 return MFI->getObjectOffset(FI) == (MFI->getObjectOffset(BFI) + Dist*Bytes);
/external/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp1815 auto *BFI = &getAnalysis<BlockFrequencyInfoWrapperPass>().getBFI(); variable
1826 return Impl.runImpl(F, *SE, *LI, *TTI, *DT, *BFI, TLI, *DB, *AA, *AC,
6450 BlockFrequency LoopEntryFreq = BFI->getBlockFreq(L->getLoopPreheader());
6604 BFI = &BFI_;
6614 ColdEntryFreq = BlockFrequency(BFI->getEntryFreq()) * ColdProb;
6653 auto &BFI = AM.getResult<BlockFrequencyAnalysis>(F); local
6664 bool Changed = runImpl(F, SE, LI, TTI, DT, BFI, TLI, DB, AA, AC, GetLAA);

Completed in 608 milliseconds