Home
last modified time | relevance | path

Searched refs:BFI (Results 1 – 25 of 61) sorted by relevance

123

/external/llvm/lib/Analysis/
DBlockFrequencyInfo.cpp106 const BlockFrequencyInfo *BFI) { in getEdgeAttributes()
107 return BFIDOTGTraitsBase::getEdgeAttributes(Node, EI, BFI, BFI->getBPI(), in getEdgeAttributes()
124 : BFI(std::move(Arg.BFI)) {} in BlockFrequencyInfo()
128 BFI = std::move(RHS.BFI); in operator =()
141 if (!BFI) in calculate()
142 BFI.reset(new ImplType); in calculate()
143 BFI->calculate(F, BPI, LI); in calculate()
154 return BFI ? BFI->getBlockFreq(BB) : 0; in getBlockFreq()
159 if (!BFI) in getBlockProfileCount()
162 return BFI->getBlockProfileCount(*getFunction(), BB); in getBlockProfileCount()
[all …]
DBlockFrequencyInfoImpl.cpp260 static void cleanup(BlockFrequencyInfoImplBase &BFI) { in cleanup() argument
261 std::vector<FrequencyData> SavedFreqs(std::move(BFI.Freqs)); in cleanup()
262 BFI.clear(); in cleanup()
263 BFI.Freqs = std::move(SavedFreqs); in cleanup()
388 static void debugAssign(const BlockFrequencyInfoImplBase &BFI, in debugAssign() argument
395 dbgs() << " to " << BFI.getBlockName(T); in debugAssign()
435 static void convertFloatingToInteger(BlockFrequencyInfoImplBase &BFI, in convertFloatingToInteger() argument
461 for (size_t Index = 0; Index < BFI.Freqs.size(); ++Index) { in convertFloatingToInteger()
462 Scaled64 Scaled = BFI.Freqs[Index].Scaled * ScalingFactor; in convertFloatingToInteger()
463 BFI.Freqs[Index].Integer = std::max(UINT64_C(1), Scaled.toInt<uint64_t>()); in convertFloatingToInteger()
[all …]
DModuleSummaryAnalysis.cpp66 const Function &F, BlockFrequencyInfo *BFI) { in computeFunctionSummary() argument
88 auto ScaledCount = BFI ? BFI->getBlockProfileCount(&BB) : None; in computeFunctionSummary()
134 BlockFrequencyInfo *BFI = nullptr; in ModuleSummaryIndexBuilder() local
137 BFI = Ftor(F); in ModuleSummaryIndexBuilder()
142 BFI = BFIPtr.get(); in ModuleSummaryIndexBuilder()
145 computeFunctionSummary(F, BFI); in ModuleSummaryIndexBuilder()
/external/llvm/unittests/Analysis/
DBlockFrequencyInfoTest.cpp64 BlockFrequencyInfo BFI = buildBFI(*F); in TEST_F() local
70 uint64_t BB0Freq = BFI.getBlockFreq(&BB0).getFrequency(); in TEST_F()
71 uint64_t BB1Freq = BFI.getBlockFreq(BB1).getFrequency(); in TEST_F()
72 uint64_t BB2Freq = BFI.getBlockFreq(BB2).getFrequency(); in TEST_F()
73 uint64_t BB3Freq = BFI.getBlockFreq(BB3).getFrequency(); in TEST_F()
79 EXPECT_EQ(BFI.getBlockProfileCount(&BB0).getValue(), UINT64_C(100)); in TEST_F()
80 EXPECT_EQ(BFI.getBlockProfileCount(BB3).getValue(), UINT64_C(100)); in TEST_F()
81 EXPECT_EQ(BFI.getBlockProfileCount(BB1).getValue(), 100 * BB1Freq / BB0Freq); in TEST_F()
82 EXPECT_EQ(BFI.getBlockProfileCount(BB2).getValue(), 100 * BB2Freq / BB0Freq); in TEST_F()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DBlockFrequencyInfo.cpp34 BFI = new BlockFrequencyImpl<BasicBlock, Function, BranchProbabilityInfo>(); in BlockFrequencyInfo()
38 delete BFI; in ~BlockFrequencyInfo()
48 BFI->doFunction(&F, &BPI); in runOnFunction()
53 if (BFI) BFI->print(O); in print()
62 return BFI->getBlockFreq(BB); in getBlockFreq()
/external/llvm/include/llvm/Analysis/
DLazyBlockFrequencyInfo.h74 BFI.calculate(*F, *BPI, *LI); in getCalculated()
77 return BFI; in getCalculated()
85 BFI.releaseMemory(); in releaseMemory()
91 BlockFrequencyInfo BFI;
DBlockFrequencyInfo.h33 std::unique_ptr<ImplType> BFI; variable
110 BlockFrequencyInfo BFI; variable
118 BlockFrequencyInfo &getBFI() { return BFI; } in getBFI()
119 const BlockFrequencyInfo &getBFI() const { return BFI; } in getBFI()
DBlockFrequencyInfoImpl.h557 BFIBase &BFI;
587 IrreducibleGraph(BFIBase &BFI, const BFIBase::LoopData *OuterLoop,
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];
1155 const BlockFrequencyInfoImpl<BT> &BFI;
1156 explicit BlockEdgesAdder(const BlockFrequencyInfoImpl<BT> &BFI)
1157 : BFI(BFI) {}
1160 const BlockT *BB = BFI.RPOT[Irr.Node.Index];
[all …]
DModuleSummaryAnalysis.h52 BlockFrequencyInfo *BFI = nullptr);
/external/llvm/lib/Transforms/Instrumentation/
DCFGMST.h88 uint64_t EntryWeight = (BFI != nullptr ? BFI->getEntryFreq() : 2); in buildEdges()
103 (BFI != nullptr ? BFI->getBlockFreq(&*BB).getFrequency() : 2); in buildEdges()
203 BlockFrequencyInfo *BFI; variable
208 : F(Func), BPI(BPI_), BFI(BFI_) { in F()
DPGOInstrumentation.cpp266 BlockFrequencyInfo *BFI = nullptr) in FuncPGOInstrumentation() argument
267 : F(Func), FunctionHash(0), MST(F, BPI, BFI) { in FuncPGOInstrumentation()
345 BlockFrequencyInfo *BFI) { in instrumentOneFunc() argument
347 FuncPGOInstrumentation<PGOEdge, BBInfo> FuncInfo(F, true, BPI, BFI); in instrumentOneFunc()
460 BlockFrequencyInfo *BFI = nullptr) in PGOUseFunc() argument
461 : F(Func), M(Modu), FuncInfo(Func, false, BPI, BFI), in PGOUseFunc()
813 auto *BFI = LookupBFI(F); in InstrumentAllFunctions() local
814 instrumentOneFunc(F, &M, BPI, BFI); in InstrumentAllFunctions()
886 auto *BFI = LookupBFI(F); in annotateAllFunctions() local
887 PGOUseFunc Func(F, &M, BPI, BFI); in annotateAllFunctions()
/external/llvm/include/llvm/Transforms/Scalar/
DJumpThreading.h62 std::unique_ptr<BlockFrequencyInfo> BFI; variable
90 : TLI(Other.TLI), LVI(Other.LVI), BFI(std::move(Other.BFI)), in JumpThreadingPass()
104 BFI.reset(); in releaseMemory()
/external/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp124 std::unique_ptr<BlockFrequencyInfo> BFI; in runOnFunction() local
130 BFI.reset(new BlockFrequencyInfo(F, *BPI, LI)); in runOnFunction()
132 return Impl.runImpl(F, TLI, LVI, HasProfileData, std::move(BFI), in runOnFunction()
141 std::unique_ptr<BlockFrequencyInfo> BFI; in run() local
147 BFI.reset(new BlockFrequencyInfo(F, *BPI, LI)); in run()
150 runImpl(F, &TLI, &LVI, HasProfileData, std::move(BFI), std::move(BPI)); in run()
171 BFI.reset(); in runImpl()
178 BFI = std::move(BFI_); in runImpl()
1495 BFI->getBlockFreq(PredBB) * BPI->getEdgeProbability(PredBB, BB); in ThreadEdge()
1496 BFI->setBlockFreq(NewBB, NewBBFreq.getFrequency()); in ThreadEdge()
[all …]
DLoopUnswitch.cpp181 BlockFrequencyInfo BFI; member in __anon1bf9f3440111::LoopUnswitch
464 BFI.calculate(*L->getHeader()->getParent(), BPI, *LI); in runOnLoop()
470 ColdEntryFreq = BlockFrequency(BFI.getEntryFreq()) * ColdProb; in runOnLoop()
560 BlockFrequency LoopEntryFreq = BFI.getBlockFreq(loopHeader); in processCurrentLoop()
/external/llvm/test/CodeGen/X86/
Dsink-blockfreq.ll5 ; machine-sink looks for sucessor blocks. By not using BFI, both G and B
8 ; BFI, "mul" is sinked into the less frequent block G.
/external/swiftshader/third_party/LLVM/test/MC/Disassembler/ARM/
Dinvalid-BFI-arm.txt3 # Opcode=60 Name=BFI Format=ARM_FORMAT_DPFRM(4)
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DBlockFrequencyInfo.h31 BlockFrequencyImpl<BasicBlock, Function, BranchProbabilityInfo> *BFI; variable
/external/llvm/include/llvm/Transforms/Vectorize/
DLoopVectorize.h81 BlockFrequencyInfo *BFI; member
/external/clang/lib/CodeGen/
DCGAtomic.cpp41 CGBitFieldInfo BFI; member in __anond5645c670111::AtomicInfo
93 BFI = OrigBFI; in AtomicInfo()
94 BFI.Offset = Offset; in AtomicInfo()
95 BFI.StorageSize = AtomicSizeInBits; in AtomicInfo()
96 BFI.StorageOffset += OffsetInChars; in AtomicInfo()
98 BFI, lvalue.getType(), in AtomicInfo()
1557 if ((LVal.isBitField() && BFI.Size != ValueSizeInBits) || in EmitAtomicUpdateLibcall()
1591 if ((LVal.isBitField() && BFI.Size != ValueSizeInBits) || in EmitAtomicUpdateOp()
1644 if ((LVal.isBitField() && BFI.Size != ValueSizeInBits) || in EmitAtomicUpdateLibcall()
1674 if ((LVal.isBitField() && BFI.Size != ValueSizeInBits) || in EmitAtomicUpdateOp()
/external/llvm/test/CodeGen/AArch64/
Dbitfield-insert.ll140 ; Neither mask is is a contiguous set of 1s. BFI can't be used
418 ; Don't generate BFI/BFXIL if the immediate can be encoded in the ORR.
469 ; results in a failing check due to a mismatch between the BFI opcode and
/external/llvm/lib/Target/AMDGPU/
DAMDGPUISelLowering.h266 BFI, // (src0 & src1) | (~src0 & src2) enumerator
DAMDGPUInstrInfo.td201 def AMDGPUbfi : SDNode<"AMDGPUISD::BFI", AMDGPUDTIntTernaryOp>;
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
DARMISelLowering.h180 BFI, enumerator
/external/llvm/test/Analysis/BlockFrequencyInfo/
Dloops_with_profile_info.ll11 ; because BFI was reducing the loop scale for for.cond16 and
/external/llvm/lib/Target/ARM/
DARMScheduleSwift.td181 // BFI,BFC, SBFX,UBFX
183 (instregex "BFC", "BFI", "UBFX", "SBFX", "(t|t2)BFC", "(t|t2)BFI",

123