Home
last modified time | relevance | path

Searched refs:Blocks (Results 1 – 25 of 159) sorted by relevance

1234567

/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DThreadSafetyTIL.cpp175 Blocks[BlockID] = this; in topologicalSort()
201 Blocks[BlockID] = this; in topologicalFinalSort()
262 for (auto *Block : Blocks) in renumberInstrs()
292 unsigned NumUnreachableBlocks = Entry->topologicalSort(Blocks, Blocks.size()); in computeNormalForm()
297 Blocks[NI] = Blocks[I]; in computeNormalForm()
298 Blocks[NI]->BlockID = NI; in computeNormalForm()
301 Blocks.drop(NumUnreachableBlocks); in computeNormalForm()
305 for (auto *Block : Blocks) in computeNormalForm()
318 for (auto *Block : Blocks.reverse()) { in computeNormalForm()
324 for (auto *Block : Blocks) { in computeNormalForm()
[all …]
H A DPostOrderCFGView.cpp22 Blocks.reserve(cfg->getNumBlockIDs()); in PostOrderCFGView()
27 BlockOrder[*I] = Blocks.size() + 1; in PostOrderCFGView()
28 Blocks.push_back(*I); in PostOrderCFGView()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/XRay/
H A DProfile.h89 : Blocks(std::move(O.Blocks)), NodeStorage(std::move(O.NodeStorage)), in Profile()
94 Blocks = std::move(O.Blocks);
107 swap(L.Blocks, R.Blocks); in swap()
125 BlockList Blocks; variable
141 const_iterator begin() const { return Blocks.begin(); } in begin()
142 const_iterator end() const { return Blocks.end(); } in end()
143 bool empty() const { return Blocks.empty(); } in empty()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixIrreducibleControlFlow.cpp87 : Entry(Entry), Blocks(Blocks) { in ReachabilityGraph()
90 for (auto *MBB : Blocks) { in ReachabilityGraph()
126 const BlockSet &Blocks; member in __anon45a127310111::ReachabilityGraph
143 for (auto *MBB : Blocks) { in calculate()
168 for (auto *MBB : Blocks) { in calculate()
199 BlockSet &getBlocks() { return Blocks; } in getBlocks()
205 BlockSet Blocks; member in __anon45a127310111::LoopBlocks
212 Blocks.insert(Entry); in calculate()
223 if (Blocks.insert(MBB).second) { in calculate()
361 Blocks.insert(Dispatch); in makeSingleEntryLoop()
[all …]
H A DWebAssemblyExceptionInfo.h47 std::vector<MachineBasicBlock *> Blocks; variable
73 void addToBlocksVector(MachineBasicBlock *MBB) { Blocks.push_back(MBB); } in addToBlocksVector()
75 Blocks.push_back(MBB); in addBlock()
78 ArrayRef<MachineBasicBlock *> getBlocks() const { return Blocks; } in getBlocks()
85 unsigned getNumBlocks() const { return Blocks.size(); } in getNumBlocks()
86 std::vector<MachineBasicBlock *> &getBlocksVector() { return Blocks; } in getBlocksVector()
103 void reserveBlocks(unsigned Size) { Blocks.reserve(Size); } in reserveBlocks()
105 std::reverse(Blocks.begin() + From, Blocks.end());
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFixIrreducible.cpp171 assert(Blocks.count(H)); in createNaturalLoopInternal()
220 for (auto *BB : Blocks) { in createNaturalLoopInternal()
254 SetVector<BasicBlock *> &Blocks, in createNaturalLoop() argument
256 createNaturalLoopInternal(LI, DT, nullptr, Blocks, Headers); in createNaturalLoop()
260 SetVector<BasicBlock *> &Blocks, in createNaturalLoop() argument
262 createNaturalLoopInternal(LI, DT, &L, Blocks, Headers); in createNaturalLoop()
272 SetVector<BasicBlock *> Blocks; in makeReducible() local
277 Blocks.insert(BB); in makeReducible()
288 for (auto *BB : reverse(Blocks)) { in makeReducible()
293 if (!Blocks.count(P)) { in makeReducible()
[all …]
H A DCodeExtractor.cpp292 if (Blocks.count(Succ)) in getCommonExitBlock()
378 if (Blocks.count(&BB)) in isLegalToShrinkwrapLifetimeMarkers()
392 if (!Blocks.count(Pred)) in findOrCreateBlockForHoisting()
430 if (Blocks.count(Pred)) in findOrCreateBlockForHoisting()
520 if (Blocks.count(BB)) in findAllocas()
620 if (Blocks.empty()) in isEligible()
637 if (Blocks.count(&BB)) in isEligible()
701 Blocks.remove(OldPred); in severSplitPHINodesOfEntry()
702 Blocks.insert(NewBB); in severSplitPHINodesOfEntry()
777 Blocks.insert(NewBB); in severSplitPHINodesOfExits()
[all …]
H A DSampleProfileInference.cpp626 auto &Block = Func.Blocks[I]; in joinIsolatedComponents()
633 Func.Blocks[Func.Entry].Flow += 1; in joinIsolatedComponents()
1076 auto &Block = Func.Blocks[B]; in initializeNetwork()
1214 auto &Block = Func.Blocks[B]; in extractWeights()
1227 if (Func.Blocks[I].isExit()) in verifyInput()
1233 for (auto &Block : Func.Blocks) { in verifyInput()
1241 for (auto &Block : Func.Blocks) { in verifyInput()
1246 for (auto &Block : Func.Blocks) { in verifyInput()
1270 auto &Block = Func.Blocks[I]; in verifyOutput()
1313 auto &Block = Func.Blocks[I]; in verifyOutput()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DLinePrinter.cpp149 ArrayRef<support::ulittle32_t> Blocks = Layout.Blocks; in computeBlockRuns() local
150 assert(!Blocks.empty()); in computeBlockRuns()
152 uint32_t CurrentBlock = Blocks[0]; in computeBlockRuns()
154 while (!Blocks.empty()) { in computeBlockRuns()
156 uint32_t NextBlock = Blocks.front(); in computeBlockRuns()
166 Blocks = Blocks.drop_front(); in computeBlockRuns()
254 auto Blocks = ArrayRef(StreamLayout.Blocks); in formatMsfStreamBlocks() local
259 assert(!Blocks.empty()); in formatMsfStreamBlocks()
260 OS << formatv("Block {0} (\n", uint32_t(Blocks.front())); in formatMsfStreamBlocks()
265 uint64_t BaseOffset = Blocks.front(); in formatMsfStreamBlocks()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIOptimizeVGPRLiveRange.cpp193 Blocks.insert(Pred); in collectElseRegionBlocks()
196 if (Cur < Blocks.size()) in collectElseRegionBlocks()
197 MBB = Blocks[Cur++]; in collectElseRegionBlocks()
204 for (auto *MBB : Blocks) in collectElseRegionBlocks()
339 Blocks.insert(MBB); in collectWaterfallCandidateRegisters()
379 if (!Blocks.contains(Succ) && in collectWaterfallCandidateRegisters()
402 SetVector<MachineBasicBlock *> Blocks; in updateLiveRangeInThenRegion() local
412 Blocks.insert(Succ); in updateLiveRangeInThenRegion()
568 if (Blocks.contains(UseBlock)) in optimizeWaterfallLiveRange()
576 if (Blocks.contains(Pred)) in optimizeWaterfallLiveRange()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DGenericLoopInfo.h175 return Blocks; in getBlocks()
189 return Blocks.size(); in getNumBlocks()
196 return Blocks; in getBlocksVector()
417 Blocks.push_back(BB); in addBlockEntry()
424 std::reverse(Blocks.begin() + from, Blocks.end()); in reverseBlock()
430 Blocks.reserve(size); in reserveBlocks()
437 if (Blocks[0] == BB) in moveToHeader()
442 Blocks[i] = Blocks[0]; in moveToHeader()
443 Blocks[0] = BB; in moveToHeader()
456 Blocks.erase(I); in removeBlockFromLoop()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DGVNSink.cpp113 ArrayRef<BasicBlock *> Blocks; member in __anon48a1c1290111::LockstepReverseIterator
119 LockstepReverseIterator(ArrayRef<BasicBlock *> Blocks) : Blocks(Blocks) { in LockstepReverseIterator() argument
126 for (BasicBlock *BB : Blocks) in reset()
129 for (BasicBlock *BB : Blocks) { in reset()
193 SmallVector<BasicBlock *, 4> Blocks; member
236 Blocks.push_back(P.first); in ModelledPHI()
268 auto BI = Blocks.begin(); in restrictToBlocks()
270 while (BI != Blocks.end()) { in restrictToBlocks()
273 BI = Blocks.erase(BI); in restrictToBlocks()
304 return Values == Other.Values && Blocks == Other.Blocks; in operator ==()
[all …]
H A DMergeICmps.cpp413 [](const auto &Blocks) { return Blocks.size() > 1; }); in atLeastOneMerged() argument
433 for (const BCECmpBlock &Block : Blocks) in getMinOrigOrder()
445 llvm::sort(Blocks, in mergeBlocks()
452 for (BCECmpBlock &Block : Blocks) { in mergeBlocks()
480 for (BasicBlock *const Block : Blocks) { in BCECmpChain()
756 Blocks[BlockIndex] = CurBlock; in getOrderedBlocks()
772 Blocks[0] = CurBlock; in getOrderedBlocks()
773 return Blocks; in getOrderedBlocks()
832 const auto Blocks = in processPhi() local
834 if (Blocks.empty()) return false; in processPhi()
[all …]
H A DFlattenCFGPass.cpp51 std::vector<WeakVH> Blocks; in iterativelyFlattenCFG() local
52 Blocks.reserve(F.size()); in iterativelyFlattenCFG()
54 Blocks.push_back(&BB); in iterativelyFlattenCFG()
60 for (WeakVH &BlockHandle : Blocks) { in iterativelyFlattenCFG()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSampleProfileInference.h55 std::vector<FlowBlock> Blocks; member
219 BlockWeights[BB] = Func.Blocks[BlockIndex[BB]].Flow; in apply()
246 Func.Blocks.reserve(BasicBlocks.size()); in createFlowFunction()
257 Block.Index = Func.Blocks.size(); in createFlowFunction()
258 Func.Blocks.push_back(Block); in createFlowFunction()
274 Func.Blocks[Src].SuccJumps.push_back(&Jump); in createFlowFunction()
275 Func.Blocks[Dst].PredJumps.push_back(&Jump); in createFlowFunction()
282 for (size_t I = 0; I < Func.Blocks.size(); I++) { in createFlowFunction()
283 if (Func.Blocks[I].isEntry()) { in createFlowFunction()
291 auto &EntryBlock = Func.Blocks[Func.Entry]; in createFlowFunction()
/freebsd-14.2/contrib/llvm-project/llvm/tools/bugpoint/
H A DCrashDebugger.cpp483 if (NumPrint < Blocks.size()) in TestBlocks()
516 for (BasicBlock *BB : Blocks) in TestBlocks()
523 if (!Blocks.count(&BB)) in TestBlocks()
597 if (NumPrint < Blocks.size()) in TestBlocks()
604 if (!Blocks.count(&BB)) { in TestBlocks()
624 if (!Blocks.count(&BB)) in TestBlocks()
694 if (NumPrint < Blocks.size()) in TestBlocks()
1243 Blocks.push_back(&BB); in DebugACrash()
1252 if (Blocks.size() < OldSize) in DebugACrash()
1265 Blocks.push_back(&BB); in DebugACrash()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DPostOrderCFGView.h74 std::vector<const CFGBlock *> Blocks; variable
87 iterator begin() { return Blocks.rbegin(); } in begin()
88 iterator end() { return Blocks.rend(); } in end()
90 const_iterator begin() const { return Blocks.rbegin(); } in begin()
91 const_iterator end() const { return Blocks.rend(); } in end()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachinePostDominators.cpp52 ArrayRef<MachineBasicBlock *> Blocks) const { in findNearestCommonDominator()
53 assert(!Blocks.empty()); in findNearestCommonDominator()
55 MachineBasicBlock *NCD = Blocks.front(); in findNearestCommonDominator()
56 for (MachineBasicBlock *BB : Blocks.drop_front()) { in findNearestCommonDominator()
H A DEdgeBundles.cpp57 Blocks.clear(); in runOnMachineFunction()
58 Blocks.resize(getNumBundles()); in runOnMachineFunction()
63 Blocks[b0].push_back(i); in runOnMachineFunction()
65 Blocks[b1].push_back(i); in runOnMachineFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/MSF/
H A DMappedBlockStream.cpp62 SL.Blocks = Layout.StreamMap[StreamIndex]; in createIndexedStream()
73 SL.Blocks = Layout.DirectoryBlocks; in createDirectoryStream()
174 if (StreamLayout.Blocks[Last] != StreamLayout.Blocks[Last + 1] - 1) in readLongestContiguousChunk()
185 uint64_t MsfOffset = blockToOffset(StreamLayout.Blocks[First], BlockSize); in readLongestContiguousChunk()
214 uint64_t E = StreamLayout.Blocks[BlockNum]; in tryReadContiguously()
216 if (StreamLayout.Blocks[I + BlockNum] != E) in tryReadContiguously()
226 uint64_t FirstBlockAddr = StreamLayout.Blocks[BlockNum]; in tryReadContiguously()
250 uint64_t StreamBlockAddr = StreamLayout.Blocks[BlockNum]; in readBytes()
330 SL.Blocks = Layout.StreamMap[StreamIndex]; in createIndexedStream()
340 SL.Blocks = Layout.DirectoryBlocks; in createDirectoryStream()
[all …]
H A DMSFBuilder.cpp104 MutableArrayRef<uint32_t> Blocks) { in allocateBlocks() argument
139 Blocks[I++] = NextBlock; in allocateBlocks()
157 ArrayRef<uint32_t> Blocks) { in addStream() argument
162 if (ReqBlocks != Blocks.size()) in addStream()
166 for (auto Block : Blocks) { in addStream()
176 for (auto Block : Blocks) { in addStream()
179 StreamData.push_back(std::make_pair(Size, Blocks)); in addStream()
412 for (const auto &Blocks : Layout.StreamMap) { in commit() local
413 if (auto EC = DW.writeArray(Blocks)) in commit()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A DGenericCycleInfo.h68 BlockSetVectorT Blocks; variable
80 Blocks.clear(); in clear()
86 void appendBlock(BlockT *Block) { Blocks.insert(Block); } in appendBlock()
111 bool contains(const BlockT *Block) const { return Blocks.contains(Block); } in contains()
173 return const_block_iterator{Blocks.begin()}; in block_begin()
176 return const_block_iterator{Blocks.end()}; in block_end()
178 size_t getNumBlocks() const { return Blocks.size(); } in getNumBlocks()
211 for (auto *Block : Blocks) { in print()
/freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DDebugLinesSubsection.cpp78 Blocks.emplace_back(Offset); in createBlock()
82 Block &B = Blocks.back(); in addLineInfo()
93 Block &B = Blocks.back(); in addLineAndColumnInfo()
113 for (const auto &B : Blocks) { in commit()
139 for (const auto &B : Blocks) { in calculateSerializedSize()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DFunctionSummary.h97 llvm::SmallBitVector &Blocks = I->second.VisitedBasicBlocks; in markVisitedBasicBlock() local
99 if (TotalIDs > Blocks.size()) { in markVisitedBasicBlock()
100 Blocks.resize(TotalIDs); in markVisitedBasicBlock()
103 Blocks.set(ID); in markVisitedBasicBlock()
/freebsd-14.2/contrib/dialog/samples/install/
H A DFDISK.TEST5 Device Boot Begin Start End Blocks Id System
14 Device Boot Begin Start End Blocks Id System
21 Device Boot Begin Start End Blocks Id System

1234567