/external/swiftshader/third_party/LLVM/lib/Analysis/ |
H A D | BlockFrequencyInfo.cpp | 34 BFI = new BlockFrequencyImpl<BasicBlock, Function, BranchProbabilityInfo>(); 38 delete BFI; 48 BFI->doFunction(&F, &BPI); 53 if (BFI) BFI->print(O); 62 return BFI->getBlockFreq(BB);
|
/external/llvm/lib/Analysis/ |
H A D | BlockFrequencyInfo.cpp | 106 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 D | BlockFrequencyInfoImpl.cpp | 260 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...] |
H A D | ModuleSummaryAnalysis.cpp | 66 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
|
/external/llvm/unittests/Analysis/ |
H A D | BlockFrequencyInfoTest.cpp | 64 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/include/llvm/Analysis/ |
H A D | LazyBlockFrequencyInfo.h | 12 // 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 D | BlockFrequencyInfo.h | 33 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 D | ModuleSummaryAnalysis.h | 52 BlockFrequencyInfo *BFI = nullptr);
|
H A D | BlockFrequencyInfoImpl.h | 557 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/swiftshader/third_party/LLVM/include/llvm/Analysis/ |
H A D | BlockFrequencyInfo.h | 31 BlockFrequencyImpl<BasicBlock, Function, BranchProbabilityInfo> *BFI; member in class:llvm::BlockFrequencyInfo
|
/external/llvm/include/llvm/Transforms/Scalar/ |
H A D | JumpThreading.h | 62 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/include/llvm/Transforms/Vectorize/ |
H A D | LoopVectorize.h | 81 BlockFrequencyInfo *BFI; member in struct:llvm::LoopVectorizePass
|
/external/llvm/lib/Transforms/Instrumentation/ |
H A D | CFGMST.h | 88 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 D | PGOInstrumentation.cpp | 266 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 D | JumpThreading.cpp | 124 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...] |
H A D | LoopUnswitch.cpp | 179 // BFI and ColdEntryFreq are only used when PGO and 181 BlockFrequencyInfo BFI; member in class:__anon13510::LoopUnswitch 464 BFI.calculate(*L->getHeader()->getParent(), BPI, *LI); 470 ColdEntryFreq = BlockFrequency(BFI.getEntryFreq()) * ColdProb; 560 BlockFrequency LoopEntryFreq = BFI.getBlockFreq(loopHeader);
|
/external/clang/lib/CodeGen/ |
H A D | CGAtomic.cpp | 41 CGBitFieldInfo BFI; member in class:__anon1227::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/Target/AMDGPU/ |
H A D | AMDGPUISelLowering.h | 266 BFI, // (src0 & src1) | (~src0 & src2)
|
/external/swiftshader/third_party/LLVM/lib/Target/ARM/ |
H A D | ARMISelLowering.h | 180 BFI, enumerator in enum:llvm::ARMISD::NodeType
|
H A D | ARMCodeEmitter.cpp | 1038 } else if ((MCID.Opcode == ARM::BFC) || (MCID.Opcode == ARM::BFI)) {
|
H A D | ARMISelLowering.cpp | 918 case ARMISD::BFI: return "ARMISD::BFI"; 6767 // Try to use the ARM/Thumb2 BFI (bitfield insert) instruction when 6770 // BFI is only available on V6T2+ 6792 // via a movt instruction, so don't use BFI in that case. 6811 Res = DAG.getNode(ARMISD::BFI, DL, VT, N00, 6826 // Mask and ~Mask2 (or reverse) must be equivalent for the BFI pattern 6839 Res = DAG.getNode(ARMISD::BFI, DL, VT, N00, Res, 6855 Res = DAG.getNode(ARMISD::BFI, DL, VT, N1.getOperand(0), Res, 6874 Res = DAG.getNode(ARMISD::BFI, D [all...] |
/external/llvm/lib/Target/ARM/ |
H A D | ARMISelLowering.h | 178 BFI,
|
H A D | ARMISelLowering.cpp | 1222 case ARMISD::BFI: return "ARMISD::BFI"; 9343 // Try to use the ARM/Thumb2 BFI (bitfield insert) instruction when 9346 // BFI is only available on V6T2+ 9368 // via a movt instruction, so don't use BFI in that case. 9387 Res = DAG.getNode(ARMISD::BFI, DL, VT, N00, 9402 // Mask and ~Mask2 (or reverse) must be equivalent for the BFI pattern 9415 Res = DAG.getNode(ARMISD::BFI, DL, VT, N00, Res, 9431 Res = DAG.getNode(ARMISD::BFI, DL, VT, N1.getOperand(0), Res, 9450 Res = DAG.getNode(ARMISD::BFI, D [all...] |
/external/llvm/lib/Transforms/Vectorize/ |
H A D | LoopVectorize.cpp | 1815 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);
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAG.cpp | 6980 int BFI = cast<FrameIndexSDNode>(BaseLoc)->getIndex(); local 6982 int BFS = MFI->getObjectSize(BFI); 6984 return MFI->getObjectOffset(FI) == (MFI->getObjectOffset(BFI) + Dist*Bytes);
|