| /llvm-project/llvm/unittests/ExecutionEngine/JITLink/ |
| H A D | StubsTests.cpp | 41 EXPECT_EQ(std::distance(PointerSym.getBlock().edges().begin(), in GenerateStub() 42 PointerSym.getBlock().edges().end()), in GenerateStub() 44 auto &DeltaEdge = *PointerSym.getBlock().edges().begin(); in GenerateStub() 47 EXPECT_EQ(PointerSym.getBlock().getSize(), PointerSize); in GenerateStub() 48 EXPECT_TRUE(all_of(PointerSym.getBlock().getContent(), in GenerateStub() 65 EXPECT_EQ(std::distance(StubSym.getBlock().edges().begin(), in TEST() 66 StubSym.getBlock().edges().end()), in TEST() 68 auto &JumpEdge = *StubSym.getBlock().edges().begin(); in TEST() 71 EXPECT_EQ(StubSym.getBlock().getContent(), in TEST() 86 EXPECT_EQ(std::distance(StubSym.getBlock() in TEST() [all...] |
| /llvm-project/llvm/unittests/Target/SPIRV/ |
| H A D | SPIRVConvergenceRegionAnalysisTests.cpp | 76 const BasicBlock *getBlock(StringRef Name) { in getBlock() function in SPIRVConvergenceRegionAnalysisTest 113 EXPECT_TRUE(R->contains(getBlock(Name))) in checkRegionBlocks() 118 EXPECT_FALSE(R->contains(getBlock(Name))) in checkRegionBlocks() 331 EXPECT_TRUE(CR->contains(getBlock("l1_header"))); in TEST_F() 332 EXPECT_TRUE(CR->contains(getBlock("l1_condition_true"))); in TEST_F() 379 EXPECT_TRUE(CR->contains(getBlock("l1_header"))); in TEST_F() 380 EXPECT_TRUE(L->contains(getBlock("l1_header"))); in TEST_F() 382 EXPECT_TRUE(CR->contains(getBlock("l1_body"))); in TEST_F() 383 EXPECT_TRUE(L->contains(getBlock("l1_body"))); in TEST_F() 385 EXPECT_TRUE(CR->contains(getBlock("l1_condition_true"))); in TEST_F() [all …]
|
| /llvm-project/llvm/lib/Analysis/ |
| H A D | MemorySSAUpdater.cpp | 141 return getPreviousDefRecursive(MA->getBlock(), CachedPreviousDef); in getPreviousDef() 148 auto *Defs = MSSA->getWritableBlockDefs(MA->getBlock()); in getPreviousDefInBlock() 160 auto End = MSSA->getWritableBlockAccesses(MA->getBlock())->rend(); in getPreviousDefInBlock() 257 auto *Defs = MSSA->getBlockDefs(MU->getBlock()); in insertUse() 265 BasicBlock *StartBlock = MU->getBlock(); in insertUse() 274 MSSA->renamePass(MU->getBlock(), FirstDef, Visited); in insertUse() 280 MSSA->renamePass(Phi->getBlock(), nullptr, Visited); in insertUse() 284 // Set every incoming edge {BB, MP->getBlock()} of MemoryPhi MP to NewDef. 309 if (!MSSA->DT->isReachableFromEntry(MD->getBlock())) { in insertDef() 320 if (DefBefore->getBlock() in insertDef() [all...] |
| /llvm-project/llvm/tools/llvm-jitlink/ |
| H A D | llvm-jitlink-macho.cpp | 48 TargetSym.getBlock().getSection().getName() + in getMachOGOTTarget() 60 if (!GOTSym.isDefined() || !isMachOGOTSection(GOTSym.getBlock().getSection())) in getMachOStubTarget() 63 GOTSym.getBlock().getSection().getName() + in getMachOStubTarget() 66 return getMachOGOTTarget(G, GOTSym.getBlock()); in getMachOStubTarget() 140 (LastSym->getBlock().getAddress() + LastSym->getBlock().getSize()) - in registerMachOGraphInfo() 151 ArrayRef<char>(FirstSym->getBlock().getContent().data(), SecSize), in registerMachOGraphInfo()
|
| H A D | llvm-jitlink-coff.cpp | 46 TargetSym.getBlock().getSection().getName() + in getCOFFGOTTarget() 58 if (!GOTSym.isDefined() || !isCOFFGOTSection(GOTSym.getBlock().getSection())) in getCOFFStubTarget() 61 GOTSym.getBlock().getSection().getName() + in getCOFFStubTarget() 64 return getCOFFGOTTarget(G, GOTSym.getBlock()); in getCOFFStubTarget() 142 (LastSym->getBlock().getAddress() + LastSym->getBlock().getSize()) - in registerCOFFGraphInfo() 154 ArrayRef<char>(FirstSym->getBlock().getContent().data(), SecSize), in registerCOFFGraphInfo()
|
| H A D | llvm-jitlink-elf.cpp | 50 TargetSym.getBlock().getSection().getName() + in getELFGOTTarget() 66 if (!isELFGOTSection(GOTSym.getBlock().getSection())) in getELFStubTarget() 69 GOTSym.getBlock().getSection().getName() + in getELFStubTarget() 72 return getELFGOTTarget(G, GOTSym.getBlock()); in getELFStubTarget() 184 (LastSym->getBlock().getAddress() + LastSym->getBlock().getSize()) - in registerELFGraphInfo() 195 ArrayRef<char>(FirstSym->getBlock().getContent().data(), SecSize), in registerELFGraphInfo()
|
| /llvm-project/mlir/lib/IR/ |
| H A D | Dominance.cpp | 106 return ancestorOp->getBlock(); in getAncestorBlock() 236 return std::make_pair(op->getBlock(), op->getIterator()); in properlyDominates() 326 return super::properlyDominatesImpl(a->getBlock(), a->getIterator(), 327 b->getBlock(), b->getIterator(), 343 return dominates(blockArg.getOwner(), b->getBlock()); in properlyPostDominates() 356 return super::properlyDominatesImpl(a->getBlock(), a->getIterator(), in properlyPostDominates() 357 b->getBlock(), b->getIterator(), in properlyPostDominates()
|
| /llvm-project/mlir/lib/Dialect/ControlFlow/Transforms/ |
| H A D | BufferDeallocationOpInterfaceImpl.cpp | 76 builder, condBr.getLoc(), condBr->getBlock(), memrefs, conditions))) in process() 86 state.getMemrefsToRetain(condBr->getBlock(), target, in process() 92 state.resetOwnerships(deallocOp.getRetained(), condBr->getBlock()); in process() 95 state.updateOwnership(retained, ownership, condBr->getBlock()); in process() 145 state.resetOwnerships(retained, condBr->getBlock()); in process() 149 state.updateOwnership(retained, combinedOwnership, condBr->getBlock()); in process()
|
| /llvm-project/llvm/include/llvm/Support/ |
| H A D | GenericDomTreeConstruction.h | 170 BlockNamePrinter(TreeNodePtr TN) : N(TN ? TN->getBlock() : nullptr) {} 601 getNodeInfo(NumToNode[1]).IDom = AttachTo->getBlock(); 619 getNodeInfo(NumToNode[1]).IDom = AttachTo->getBlock(); 686 if (!llvm::is_contained(DT.Roots, To->getBlock())) in isPermutation() 738 LLVM_DEBUG(dbgs() << "\tReachable " << BlockNamePrinter(From->getBlock()) in InsertReachable() 739 << " -> " << BlockNamePrinter(To->getBlock()) << "\n"); in InsertReachable() 745 (From->getBlock() && To->getBlock()) in InsertReachable() 746 ? DT.findNearestCommonDominator(From->getBlock(), To->getBlock()) in InsertReachable() [all...] |
| /llvm-project/mlir/lib/Transforms/Utils/ |
| H A D | FoldUtils.cpp | 33 !parentOp->getBlock()) in getInsertionRegion() 42 insertionBlock = parentOp->getBlock(); in getInsertionRegion() 79 Block *opBlock = op->getBlock(); in tryToFold() 112 Block *opBlock = op->getBlock(); in insertKnownConstant() 185 foldScopes[getInsertionRegion(interfaces, op->getBlock())]; in notifyRemoval() 243 auto *insertRegion = getInsertionRegion(interfaces, op->getBlock()); in processFoldResults() 270 Block *opBlock = op->getBlock(); in processFoldResults() 271 if (opBlock == constOp->getBlock() && &opBlock->front() != constOp) in processFoldResults()
|
| /llvm-project/mlir/lib/Analysis/DataFlow/ |
| H A D | DenseAnalysis.cpp | 50 visitBlock(point->getBlock()); in visit() 101 if (op->getBlock() != nullptr && in processOperation() 102 !getOrCreateFor<Executable>(point, getProgramPointBefore(op->getBlock())) in processOperation() 223 : op->getBlock()->getParent()->getRegionNumber(); in visitRegionBranchOperation() 225 unsigned regionTo = point->getBlock()->getParent()->getRegionNumber(); in visitRegionBranchOperation() 277 visitBlock(point->getBlock()); in visit() 329 if (op->getBlock() != nullptr && in processOperation() 330 !getOrCreateFor<Executable>(point, getProgramPointBefore(op->getBlock())) in processOperation()
|
| H A D | DeadCodeAnalysis.cpp | 56 for (Operation &op : *pp->getBlock()) in onUpdate() 195 SymbolTable::walkSymbolTables(top, /*allSymUsesVisible=*/!top->getBlock(), in isRegionOrCallableReturn() 202 return op->getBlock() != nullptr && !op->getNumSuccessors() && in initializeRecursively() 204 op->getBlock()->getTerminator() == op; in initializeRecursively() 213 if (op->getBlock()) in initializeRecursively() 214 getOrCreate<Executable>(getProgramPointBefore(op->getBlock())) in initializeRecursively() 252 if (op->getBlock() != nullptr && in visit() 253 !getOrCreate<Executable>(getProgramPointBefore(op->getBlock()))->isLive()) in visit() 302 markEdgeLive(op->getBlock(), successor); in visitCallOperation() 374 markEdgeLive(branch->getBlock(), successo in visitRegionBranchOperation() [all...] |
| /llvm-project/mlir/lib/Dialect/GPU/Transforms/ |
| H A D | EliminateBarriers.cpp | 141 if (op == &op->getBlock()->front()) 168 if (!op->getBlock()) in getEffectsBefore() 172 Region *region = op->getBlock()->getParent(); in getEffectsBefore() 205 return getEffectsBeforeInBlock(op->getBlock()->getTerminator(), effects, in getEffectsBefore() 232 if (op == &op->getBlock()->back()) in getEffectsAfter() 258 if (!op->getBlock()) in getEffectsAfter() 262 Region *region = op->getBlock()->getParent(); in getEffectsAfter() 294 if (isa<BarrierOp>(op->getBlock()->front())) in getEffectsAfter() 297 bool exact = collectEffects(&op->getBlock()->front(), effects); 298 return getEffectsAfterInBlock(&op->getBlock() [all...] |
| /llvm-project/clang/include/clang/Analysis/ |
| H A D | CFGStmtMap.h | 43 CFGBlock *getBlock(Stmt * S); 45 const CFGBlock *getBlock(const Stmt * S) const { in getBlock() function 46 return const_cast<CFGStmtMap*>(this)->getBlock(const_cast<Stmt*>(S)); in getBlock()
|
| /llvm-project/mlir/test/lib/IR/ |
| H A D | TestDominance.cpp | 64 if (blockIds.count(nested->getBlock()) > 0) in printDominance() 66 blockIds.insert({nested->getBlock(), blockIds.size()}); in printDominance() 67 annotateBlockId(nested->getBlock()->getParentOp(), blockIds.size() - 1); in printDominance() 77 Block *block = op->getBlock(); in printDominance() 83 Block *nestedBlock = nested->getBlock(); in printDominance()
|
| /llvm-project/llvm/lib/CodeGen/ |
| H A D | BranchFolding.cpp | 490 if (getBlock()->getNumber() < o.getBlock()->getNumber()) in operator <() 492 if (getBlock()->getNumber() > o.getBlock()->getNumber()) in operator <() 667 if (ProfitableToMerge(CurMPIter->getBlock(), I->getBlock(), in ComputeSameTails() 699 MachineBasicBlock *CurMBB = CurMPIter->getBlock(); in RemoveBlocksWithHash() 718 if (SameTails[i].getBlock() == PredBB) { in CreateCommonTailOnlyBlock() 724 unsigned t = EstimateRuntime(SameTails[i].getBlock()->begin(), in CreateCommonTailOnlyBlock() 734 MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock(); in CreateCommonTailOnlyBlock() [all...] |
| H A D | BranchFolding.h | 60 MachineBasicBlock *getBlock() const { return Block; } in getBlock() function 101 MachineBasicBlock *getBlock() const { in getBlock() function 102 return getMergePotentialsElt().getBlock(); in getBlock() 106 return TailStartPos == getBlock()->begin(); in tailIsWholeBlock()
|
| /llvm-project/mlir/lib/Conversion/MathToFuncs/ |
| H A D | MathToFuncs.cpp | 229 builder.setInsertionPointToEnd(pIsZero->getBlock()); in createElementIPowIFunc() 246 builder.setInsertionPointToEnd(bIsZero->getBlock()); in createElementIPowIFunc() 258 builder.setInsertionPointToEnd(bIsOne->getBlock()); in createElementIPowIFunc() 275 builder.setInsertionPointToEnd(pIsOdd->getBlock()); in createElementIPowIFunc() 284 builder.setInsertionPointToEnd(bIsMinusOne->getBlock()); in createElementIPowIFunc() 285 builder.create<cf::CondBranchOp>(bIsMinusOne, pIsOdd->getBlock(), in createElementIPowIFunc() 296 builder.setInsertionPointToEnd(pIsNeg->getBlock()); in createElementIPowIFunc() 298 builder.create<cf::CondBranchOp>(pIsNeg, bIsZero->getBlock(), loopHeader, in createElementIPowIFunc() 327 builder.setInsertionPointToEnd(powerTmpIsOdd->getBlock()); in createElementIPowIFunc() 345 builder.setInsertionPointToEnd(newPowerIsZero->getBlock()); in createElementIPowIFunc() [all...] |
| /llvm-project/clang/include/clang/Analysis/Analyses/ |
| H A D | Dominators.h | 77 if (!R || !OtherR || R->getBlock() != OtherR->getBlock()) in compare() 105 if (IDom && IDom->getBlock()) in dump() 108 << IDom->getBlock()->getBlockID() in dump() 116 IDom && !IDom->getBlock() && IsPostDom && IsExitBlock; in dump()
|
| /llvm-project/mlir/lib/Transforms/ |
| H A D | Mem2Reg.cpp | 347 if (!visited.insert(user->getBlock()).second) in computeSlotLiveIn() 350 for (Operation &op : user->getBlock()->getOperations()) { in computeSlotLiveIn() 355 liveInWorkList.push_back(user->getBlock()); in computeSlotLiveIn() 401 definingBlocks.insert(user->getBlock()); in areMergePointsUsable() 495 Block *block = job.block->getBlock(); in computeReachingDefInRegion() 553 size_t lhsBlockIndex = topoBlockIndices.at(lhs->getBlock()); in removeBlockingUses() 554 size_t rhsBlockIndex = topoBlockIndices.at(rhs->getBlock()); in removeBlockingUses()
|
| H A D | CSE.cpp | 180 assert(fromOp->getBlock() == toOp->getBlock()); in hasOtherSideEffectingOpInBetween() 259 if (existing->getBlock() == op->getBlock() && in simplifyOperation() 349 simplifyBlock(knownValues, currentNode->node->getBlock(), in simplifyRegion()
|
| /llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyExceptionInfo.cpp | 84 MachineBasicBlock *EHPad = DomNode->getBlock(); in recalculate() 128 MachineBasicBlock *EHPad = DomNode->getBlock(); in recalculate() 167 MachineBasicBlock *EHPad = DomNode->getBlock(); in recalculate() 197 MachineBasicBlock *MBB = DomNode->getBlock(); in recalculate() 244 MachineBasicBlock *MBB = DomNode->getBlock(); in recalculate()
|
| /llvm-project/llvm/lib/ExecutionEngine/Orc/Debugging/ |
| H A D | DebugInfoSupport.cpp | 37 Preserved[&Sym->getBlock()] = Sym; in preserveDWARFSection() 38 else if (!Preserved.count(&Sym->getBlock())) in preserveDWARFSection() 39 Preserved[&Sym->getBlock()] = Sym; in preserveDWARFSection()
|
| /llvm-project/mlir/lib/Dialect/Bufferization/Transforms/ |
| H A D | OwnershipBasedBufferDeallocation.cpp | 120 Block *current = op->getBlock(); in recurse() 695 OpBuilder builder = OpBuilder::atBlockBegin(op->getBlock()); in handleInterface() 730 state.addMemrefToDeallocate(result, newOp->getBlock()); in handleInterface() 787 Block *block = op->getBlock(); in handleInterface() 864 auto *block = op->getBlock(); in handleInterface() 947 op->getBlock())); in handleInterface() 984 if (!state.getOwnership(res, op->getBlock()).isUninitialized()) in populateRemainingOwnerships() 996 op->getBlock()); in populateRemainingOwnerships() 1005 if (state.getOwnership(res, op->getBlock()).isUninitialized()) { in populateRemainingOwnerships()
|
| /llvm-project/mlir/lib/Dialect/Func/Transforms/ |
| H A D | FuncConversions.cpp | 94 for (int succIdx = 0, succEnd = op->getBlock()->getNumSuccessors(); 147 for (int p = 0, e = op->getBlock()->getNumSuccessors(); p < e; ++p) { in isLegalForReturnOpTypeConversionPattern() 184 Block *block = op->getBlock();
|