Home
last modified time | relevance | path

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

123456789

/netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/
H A DThreadSafetyTIL.cpp165 unsigned BasicBlock::topologicalSort(SimpleArray<BasicBlock *> &Blocks, in topologicalSort() argument
170 ID = Block->topologicalSort(Blocks, ID); in topologicalSort()
175 Blocks[BlockID] = this; in topologicalSort()
189 unsigned BasicBlock::topologicalFinalSort(SimpleArray<BasicBlock *> &Blocks, in topologicalFinalSort() argument
196 ID = DominatorNode.Parent->topologicalFinalSort(Blocks, ID); in topologicalFinalSort()
198 ID = Pred->topologicalFinalSort(Blocks, ID); in topologicalFinalSort()
199 assert(static_cast<size_t>(ID) < Blocks.size()); in topologicalFinalSort()
201 Blocks[BlockID] = this; in topologicalFinalSort()
262 for (auto *Block : Blocks) in renumberInstrs()
292 unsigned NumUnreachableBlocks = Entry->topologicalSort(Blocks, Blocks.size()); 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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixIrreducibleControlFlow.cpp85 ReachabilityGraph(MachineBasicBlock *Entry, const BlockSet &Blocks) in ReachabilityGraph() argument
86 : Entry(Entry), Blocks(Blocks) { in ReachabilityGraph()
89 for (auto *MBB : Blocks) { in ReachabilityGraph()
125 const BlockSet &Blocks; member in __anonba73af260111::ReachabilityGraph
130 bool inRegion(MachineBasicBlock *MBB) const { return Blocks.count(MBB); } in inRegion()
142 for (auto *MBB : Blocks) { in calculate()
167 for (auto *MBB : Blocks) { in calculate()
198 BlockSet &getBlocks() { return Blocks; } in getBlocks()
204 BlockSet Blocks; member in __anonba73af260111::LoopBlocks
211 Blocks.insert(Entry); in calculate()
[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());
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DFixIrreducible.cpp118 SetVector<BasicBlock *> &Blocks, in INITIALIZE_PASS_DEPENDENCY()
127 return L == NewLoop || Blocks.count(L->getHeader()) == 0; in INITIALIZE_PASS_DEPENDENCY()
160 SetVector<BasicBlock *> &Blocks, in createNaturalLoopInternal() argument
165 assert(Blocks.count(H)); in createNaturalLoopInternal()
214 for (auto BB : Blocks) { in createNaturalLoopInternal()
227 reconnectChildLoops(LI, ParentLoop, NewLoop, Blocks, Headers); in createNaturalLoopInternal()
248 SetVector<BasicBlock *> &Blocks, in createNaturalLoop() argument
250 createNaturalLoopInternal(LI, DT, nullptr, Blocks, Headers); in createNaturalLoop()
254 SetVector<BasicBlock *> &Blocks, in createNaturalLoop() argument
256 createNaturalLoopInternal(LI, DT, &L, Blocks, Headers); in createNaturalLoop()
[all …]
H A DCodeExtractor.cpp254 Blocks(buildExtractionBlockSet(BBs, DT, AllowVarArgs, AllowAlloca)), in CodeExtractor()
263 Blocks(buildExtractionBlockSet(L.getBlocks(), &DT, in CodeExtractor()
270 static bool definedInRegion(const SetVector<BasicBlock *> &Blocks, Value *V) { in definedInRegion() argument
272 if (Blocks.count(I->getParent())) in definedInRegion()
280 static bool definedInCaller(const SetVector<BasicBlock *> &Blocks, Value *V) { in definedInCaller() argument
283 if (!Blocks.count(I->getParent())) in definedInCaller()
288 static BasicBlock *getCommonExitBlock(const SetVector<BasicBlock *> &Blocks) { in getCommonExitBlock() argument
293 if (Blocks.count(Succ)) in getCommonExitBlock()
305 if (any_of(Blocks, hasNonCommonExitSucc)) in getCommonExitBlock()
377 Function *Func = (*Blocks.begin())->getParent(); in isLegalToShrinkwrapLifetimeMarkers()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-pdbutil/
H A DLinePrinter.cpp144 ArrayRef<support::ulittle32_t> Blocks = Layout.Blocks; in computeBlockRuns() local
145 assert(!Blocks.empty()); in computeBlockRuns()
147 uint32_t CurrentBlock = Blocks[0]; in computeBlockRuns()
149 while (!Blocks.empty()) { in computeBlockRuns()
151 uint32_t NextBlock = Blocks.front(); in computeBlockRuns()
160 Blocks = Blocks.drop_front(); in computeBlockRuns()
248 auto Blocks = makeArrayRef(StreamLayout.Blocks); in formatMsfStreamBlocks() local
253 assert(!Blocks.empty()); in formatMsfStreamBlocks()
254 OS << formatv("Block {0} (\n", uint32_t(Blocks.front())); in formatMsfStreamBlocks()
257 cantFail(File.getBlockData(Blocks.front(), File.getBlockSize())); in formatMsfStreamBlocks()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DGVNSink.cpp120 ArrayRef<BasicBlock *> Blocks; member in __anonf1d6865e0111::LockstepReverseIterator
126 LockstepReverseIterator(ArrayRef<BasicBlock *> Blocks) : Blocks(Blocks) { in LockstepReverseIterator() argument
133 for (BasicBlock *BB : Blocks) in reset()
136 for (BasicBlock *BB : Blocks) { in reset()
159 void restrictToBlocks(SmallSetVector<BasicBlock *, 4> &Blocks) { in restrictToBlocks() argument
161 if (!llvm::is_contained(Blocks, (*II)->getParent())) { in restrictToBlocks()
200 SmallVector<BasicBlock *, 4> Blocks; member
231 SmallVector<BasicBlock *, 4> Blocks; member in __anonf1d6865e0111::ModelledPHI
243 Blocks.push_back(P.first); in ModelledPHI()
261 llvm::copy(B, std::back_inserter(Blocks)); in ModelledPHI()
[all …]
H A DFlattenCFGPass.cpp62 std::vector<WeakVH> Blocks; in iterativelyFlattenCFG() local
63 Blocks.reserve(F.size()); in iterativelyFlattenCFG()
65 Blocks.push_back(&BB); in iterativelyFlattenCFG()
71 for (WeakVH &BlockHandle : Blocks) { in iterativelyFlattenCFG()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/bugpoint/
H A DCrashDebugger.cpp458 SmallPtrSet<BasicBlock *, 8> Blocks; in TestBlocks() local
460 Blocks.insert(cast<BasicBlock>(VMap[BBs[i]])); in TestBlocks()
463 unsigned NumPrint = Blocks.size(); in TestBlocks()
468 if (NumPrint < Blocks.size()) in TestBlocks()
469 outs() << "... <" << Blocks.size() << " total>"; in TestBlocks()
475 if (!Blocks.count(&BB) && BB.getTerminator()->getNumSuccessors()) { in TestBlocks()
501 for (BasicBlock *BB : Blocks) in TestBlocks()
508 if (!Blocks.count(&BB)) in TestBlocks()
578 SmallPtrSet<const BasicBlock *, 8> Blocks; in TestBlocks() local
580 Blocks.insert(cast<BasicBlock>(VMap[BB])); in TestBlocks()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DLoopInfo.h79 std::vector<BlockT *> Blocks; variable
173 return Blocks; in getBlocks()
187 return Blocks.size(); in getNumBlocks()
194 return Blocks; in getBlocksVector()
425 Blocks.push_back(BB); in addBlockEntry()
432 std::reverse(Blocks.begin() + from, Blocks.end()); in reverseBlock()
438 Blocks.reserve(size); in reserveBlocks()
445 if (Blocks[0] == BB) in moveToHeader()
448 assert(i != Blocks.size() && "Loop does not contain BB!"); in moveToHeader()
449 if (Blocks[i] == BB) { in moveToHeader()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/DebugInfo/MSF/
H A DMappedBlockStream.cpp64 SL.Blocks = Layout.StreamMap[StreamIndex]; in createIndexedStream()
75 SL.Blocks = Layout.DirectoryBlocks; in createDirectoryStream()
176 if (StreamLayout.Blocks[Last] != StreamLayout.Blocks[Last + 1] - 1) in readLongestContiguousChunk()
187 uint32_t MsfOffset = blockToOffset(StreamLayout.Blocks[First], BlockSize); in readLongestContiguousChunk()
216 uint32_t E = StreamLayout.Blocks[BlockNum]; in tryReadContiguously()
218 if (StreamLayout.Blocks[I + BlockNum] != E) in tryReadContiguously()
228 uint32_t FirstBlockAddr = StreamLayout.Blocks[BlockNum]; in tryReadContiguously()
252 uint32_t StreamBlockAddr = StreamLayout.Blocks[BlockNum]; in readBytes()
332 SL.Blocks = Layout.StreamMap[StreamIndex]; in createIndexedStream()
342 SL.Blocks = Layout.DirectoryBlocks; in createDirectoryStream()
[all …]
H A DMSFBuilder.cpp103 MutableArrayRef<uint32_t> Blocks) { in allocateBlocks() argument
138 Blocks[I++] = NextBlock; in allocateBlocks()
156 ArrayRef<uint32_t> Blocks) { in addStream() argument
161 if (ReqBlocks != Blocks.size()) in addStream()
165 for (auto Block : Blocks) { in addStream()
175 for (auto Block : Blocks) { in addStream()
178 StreamData.push_back(std::make_pair(Size, Blocks)); in addStream()
385 for (const auto &Blocks : Layout.StreamMap) { in commit() local
386 if (auto EC = DW.writeArray(Blocks)) in commit()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DFunctionSummary.h98 llvm::SmallBitVector &Blocks = I->second.VisitedBasicBlocks; in markVisitedBasicBlock() local
100 if (TotalIDs > Blocks.size()) { in markVisitedBasicBlock()
101 Blocks.resize(TotalIDs); in markVisitedBasicBlock()
104 Blocks.set(ID); in markVisitedBasicBlock()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/DebugInfo/PDB/Native/
H A DPDBFile.cpp215 ArrayRef<support::ulittle32_t> Blocks; in parseStreamData() local
216 if (auto EC = Reader.readArray(Blocks, NumExpectedStreamBlocks)) in parseStreamData()
218 for (uint32_t Block : Blocks) { in parseStreamData()
225 ContainerLayout.StreamMap.push_back(Blocks); in parseStreamData()
248 auto Blocks = getStreamBlockList(StreamIdx); in getStreamLayout() local
249 Result.Blocks.assign(Blocks.begin(), Blocks.end()); in getStreamLayout()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DSIMachineScheduler.cpp610 Blocks.find(BlockVariant); in getBlocks()
611 if (B == Blocks.end()) { in getBlocks()
617 Res.Blocks = CurrentBlocks; in getBlocks()
620 Blocks[BlockVariant] = Res; in getBlocks()
1425 DAG(DAG), Variant(Variant), Blocks(BlocksStruct.Blocks), in SIScheduleBlockScheduler()
1439 LiveOutRegsNumUsages.resize(Blocks.size()); in SIScheduleBlockScheduler()
1440 for (unsigned i = 0, e = Blocks.size(); i != e; ++i) { in SIScheduleBlockScheduler()
1441 SIScheduleBlock *Block = Blocks[i]; in SIScheduleBlockScheduler()
1465 LastPosHighLatencyParentScheduled.resize(Blocks.size(), 0); in SIScheduleBlockScheduler()
1466 BlockNumPredsLeft.resize(Blocks.size()); in SIScheduleBlockScheduler()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DComment.h1092 ArrayRef<BlockContentComment *> Blocks; variable
1096 FullComment(ArrayRef<BlockContentComment *> Blocks, DeclInfo *D) : in FullComment() argument
1098 Blocks(Blocks), ThisDeclInfo(D) { in FullComment()
1099 if (Blocks.empty()) in FullComment()
1103 SourceRange(Blocks.front()->getBeginLoc(), Blocks.back()->getEndLoc())); in FullComment()
1104 setLocation(Blocks.front()->getBeginLoc()); in FullComment()
1112 return reinterpret_cast<child_iterator>(Blocks.begin()); in child_begin()
1116 return reinterpret_cast<child_iterator>(Blocks.end()); in child_end()
1129 ArrayRef<BlockContentComment *> getBlocks() const { return Blocks; } in getBlocks()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DGenericIteratedDominanceFrontier.h75 void setDefiningBlocks(const SmallPtrSetImpl<NodeTy *> &Blocks) { in setDefiningBlocks() argument
76 DefBlocks = &Blocks; in setDefiningBlocks()
84 void setLiveInBlocks(const SmallPtrSetImpl<NodeTy *> &Blocks) { in setLiveInBlocks() argument
85 LiveInBlocks = &Blocks; in setLiveInBlocks()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86CmovConversion.cpp130 bool collectCmovCandidates(ArrayRef<MachineBasicBlock *> Blocks,
140 bool checkForProfitableCmovCandidates(ArrayRef<MachineBasicBlock *> Blocks,
182 SmallVector<MachineBasicBlock *, 4> Blocks; in runOnMachineFunction() local
184 Blocks.push_back(&MBB); in runOnMachineFunction()
185 if (collectCmovCandidates(Blocks, AllCmovGroups, /*IncludeLoads*/ true)) { in runOnMachineFunction()
255 ArrayRef<MachineBasicBlock *> Blocks, CmovGroups &CmovInstGroups, in collectCmovCandidates() argument
278 for (auto *MBB : Blocks) { in collectCmovCandidates()
377 ArrayRef<MachineBasicBlock *> Blocks, CmovGroups &CmovInstGroups) { in checkForProfitableCmovCandidates() argument
427 for (auto *MBB : Blocks) { in checkForProfitableCmovCandidates()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DPostOrderIterator.h293 std::vector<NodeRef> Blocks; // Block list in normal PO order variable
296 std::copy(po_begin(G), po_end(G), std::back_inserter(Blocks)); in Initialize()
306 rpo_iterator begin() { return Blocks.rbegin(); } in begin()
307 const_rpo_iterator begin() const { return Blocks.crbegin(); } in begin()
308 rpo_iterator end() { return Blocks.rend(); } in end()
309 const_rpo_iterator end() const { return Blocks.crend(); } in end()

123456789