/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/ |
D | RegularFileBlocksTest.java | 51 assertThat(file.getBlock(0)).isNull(); in testInitialState() 59 assertThat(Bytes.asList(file.getBlock(0))).isEqualTo(Bytes.asList(new byte[] {1})); in testAddAndGet() 60 assertThat(file.getBlock(1)).isNull(); in testAddAndGet() 65 assertThat(Bytes.asList(file.getBlock(1))).isEqualTo(Bytes.asList(new byte[] {1, 2})); in testAddAndGet() 66 assertThat(file.getBlock(2)).isNull(); in testAddAndGet() 81 assertThat(file.getBlock(2)).isNull(); in testTruncate() 82 assertThat(file.getBlock(3)).isNull(); in testTruncate() 83 assertThat(file.getBlock(0)).isNotNull(); in testTruncate() 87 assertThat(file.getBlock(0)).isNull(); in testTruncate() 101 assertThat(other.getBlock(0)).isEqualTo(file.getBlock(0)); in testCopyTo() [all …]
|
D | HeapDiskTest.java | 80 assertThat(blocks.getBlock(0).length).isEqualTo(4); in testAllocate() 87 assertThat(blocks.getBlock(i).length).isEqualTo(4); in testAllocate() 160 cachedBlocks.add(disk.blockCache.getBlock(i)); in testAllocateFromCache_fullAllocationFromCache() 170 assertThat(blocks.getBlock(i)).isEqualTo(cachedBlocks.get(i + 4)); in testAllocateFromCache_fullAllocationFromCache() 188 cachedBlocks.add(disk.blockCache.getBlock(i)); in testAllocateFromCache_partialAllocationFromCache() 198 assertThat(blocks.getBlock(i)).isEqualTo(cachedBlocks.get(i - 2)); in testAllocateFromCache_partialAllocationFromCache()
|
/external/llvm-project/mlir/lib/Transforms/ |
D | CopyRemoval.cpp | 51 if (op && op->getBlock() == block) { in getAllocationOpInBlock() 66 return effects && op->getBlock() == block && effects.hasEffect<Free>(); in getDeallocationOpInBlock() 75 assert(start->getBlock() == end->getBlock() && in hasMemoryEffectOpBetween() 90 Block *block = start->getBlock(); in hasUsersBetween() 91 assert(block == end->getBlock() && in hasUsersBetween() 94 return op->getBlock() == block && start->isBeforeInBlock(op) && in hasUsersBetween() 102 Block *block = operations.front()->getBlock(); in areOpsInTheSameBlock() 104 operations, [&](Operation *op) { return block != op->getBlock(); }); in areOpsInTheSameBlock() 141 Block *copyBlock = copy->getBlock(); in reuseCopySourceAsTarget() 192 Block *copyBlock = copy->getBlock(); in reuseCopyTargetAsSource()
|
/external/llvm-project/llvm/tools/llvm-jitlink/ |
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() 120 if (auto TS = getMachOGOTTarget(G, Sym->getBlock())) in registerMachOGraphInfo() 131 if (auto TS = getMachOStubTarget(G, Sym->getBlock())) in registerMachOGraphInfo() 151 (LastSym->getBlock().getAddress() + LastSym->getBlock().getSize()) - in registerMachOGraphInfo() 162 StringRef(FirstSym->getBlock().getContent().data(), SecSize), in registerMachOGraphInfo()
|
D | llvm-jitlink-elf.cpp | 46 TargetSym.getBlock().getSection().getName() + in getELFGOTTarget() 58 if (!GOTSym.isDefined() || !isELFGOTSection(GOTSym.getBlock().getSection())) in getELFStubTarget() 61 GOTSym.getBlock().getSection().getName() + in getELFStubTarget() 64 return getELFGOTTarget(G, GOTSym.getBlock()); in getELFStubTarget() 119 if (auto TS = getELFGOTTarget(G, Sym->getBlock())) in registerELFGraphInfo() 130 if (auto TS = getELFStubTarget(G, Sym->getBlock())) in registerELFGraphInfo() 151 (LastSym->getBlock().getAddress() + LastSym->getBlock().getSize()) - in registerELFGraphInfo() 162 StringRef(FirstSym->getBlock().getContent().data(), SecSize), in registerELFGraphInfo()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | MemorySSAUpdater.cpp | 148 return getPreviousDefRecursive(MA->getBlock(), CachedPreviousDef); in getPreviousDef() 155 auto *Defs = MSSA->getWritableBlockDefs(MA->getBlock()); in getPreviousDefInBlock() 167 auto End = MSSA->getWritableBlockAccesses(MA->getBlock())->rend(); in getPreviousDefInBlock() 263 auto *Defs = MSSA->getBlockDefs(MU->getBlock()); in insertUse() 271 BasicBlock *StartBlock = MU->getBlock(); in insertUse() 280 MSSA->renamePass(MU->getBlock(), FirstDef, Visited); in insertUse() 286 MSSA->renamePass(Phi->getBlock(), nullptr, Visited); in insertUse() 320 if (DefBefore->getBlock() == MD->getBlock() && in insertDef() 370 auto IterEnd = MSSA->getBlockDefs(MD->getBlock())->end(); in insertDef() 372 DefiningBlocks.insert(MD->getBlock()); in insertDef() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | MemorySSAUpdater.cpp | 146 return getPreviousDefRecursive(MA->getBlock(), CachedPreviousDef); in getPreviousDef() 153 auto *Defs = MSSA->getWritableBlockDefs(MA->getBlock()); in getPreviousDefInBlock() 165 auto End = MSSA->getWritableBlockAccesses(MA->getBlock())->rend(); in getPreviousDefInBlock() 261 auto *Defs = MSSA->getBlockDefs(MU->getBlock()); in insertUse() 269 BasicBlock *StartBlock = MU->getBlock(); in insertUse() 278 MSSA->renamePass(MU->getBlock(), FirstDef, Visited); in insertUse() 284 MSSA->renamePass(Phi->getBlock(), nullptr, Visited); in insertUse() 318 if (DefBefore->getBlock() == MD->getBlock() && in insertDef() 367 auto IterEnd = MSSA->getBlockDefs(MD->getBlock())->end(); in insertDef() 369 DefiningBlocks.insert(MD->getBlock()); in insertDef() [all …]
|
/external/llvm-project/mlir/lib/IR/ |
D | Dominance.cpp | 87 if (!ancestor || !(block = ancestor->getBlock())) in traverseAncestors() 222 Block *aBlock = a->getBlock(), *bBlock = b->getBlock(); in properlyDominates() 275 return dominates(a.cast<BlockArgument>().getOwner(), b->getBlock()); in properlyDominates() 289 auto *aBlock = a->getBlock(), *bBlock = b->getBlock(); in properlyPostDominates() 309 if (auto *bAncestor = a->getBlock()->findAncestorOpInBlock(*b)) in properlyPostDominates()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | GenericDomTreeConstruction.h | 199 BlockNamePrinter(TreeNodePtr TN) : N(TN ? TN->getBlock() : nullptr) {} in BlockNamePrinter() 596 NodeToInfo[NumToNode[1]].IDom = AttachTo->getBlock(); in attachNewSubtree() 619 NodeToInfo[NumToNode[1]].IDom = AttachTo->getBlock(); in reattachExistingSubtree() 690 auto RIt = llvm::find(DT.Roots, To->getBlock()); in UpdateRootsBeforeInsertion() 743 LLVM_DEBUG(dbgs() << "\tReachable " << BlockNamePrinter(From->getBlock()) in InsertReachable() 744 << " -> " << BlockNamePrinter(To->getBlock()) << "\n"); in InsertReachable() 750 (From->getBlock() && To->getBlock()) in InsertReachable() 751 ? DT.findNearestCommonDominator(From->getBlock(), To->getBlock()) in InsertReachable() 787 assert(TN->getBlock() && II.Visited.count(TN) && "Preconditions!"); in InsertReachable() 799 ChildrenGetter<IsPostDom>::Get(TN->getBlock(), BUI)) { in InsertReachable() [all …]
|
/external/llvm-project/clang/include/clang/Analysis/ |
D | CFGStmtMap.h | 41 CFGBlock *getBlock(Stmt * S); 43 const CFGBlock *getBlock(const Stmt * S) const { in getBlock() function 44 return const_cast<CFGStmtMap*>(this)->getBlock(const_cast<Stmt*>(S)); in getBlock()
|
/external/clang/include/clang/Analysis/ |
D | CFGStmtMap.h | 44 CFGBlock *getBlock(Stmt * S); 46 const CFGBlock *getBlock(const Stmt * S) const { in getBlock() function 47 return const_cast<CFGStmtMap*>(this)->getBlock(const_cast<Stmt*>(S)); in getBlock()
|
/external/llvm-project/llvm/include/llvm/Support/ |
D | GenericDomTreeConstruction.h | 154 BlockNamePrinter(TreeNodePtr TN) : N(TN ? TN->getBlock() : nullptr) {} in BlockNamePrinter() 601 NodeToInfo[NumToNode[1]].IDom = AttachTo->getBlock(); in attachNewSubtree() 621 NodeToInfo[NumToNode[1]].IDom = AttachTo->getBlock(); in reattachExistingSubtree() 689 if (!llvm::is_contained(DT.Roots, To->getBlock())) in UpdateRootsBeforeInsertion() 741 LLVM_DEBUG(dbgs() << "\tReachable " << BlockNamePrinter(From->getBlock()) in InsertReachable() 742 << " -> " << BlockNamePrinter(To->getBlock()) << "\n"); in InsertReachable() 748 (From->getBlock() && To->getBlock()) in InsertReachable() 749 ? DT.findNearestCommonDominator(From->getBlock(), To->getBlock()) in InsertReachable() 785 assert(TN->getBlock() && II.Visited.count(TN) && "Preconditions!"); in InsertReachable() 796 for (const NodePtr Succ : getChildren<IsPostDom>(TN->getBlock(), BUI)) { in InsertReachable() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | MemorySSA.cpp | 227 IncomingVal = renameBlock(Root->getBlock(), IncomingVal); in renamePass() 229 Visited.insert(Root->getBlock()); in renamePass() 241 BasicBlock *BB = Child->getBlock(); in renamePass() 427 BasicBlock *BB = DomNode->getBlock(); in buildMemorySSA() 498 assert(I->getParent() == InsertPt->getBlock() && in createMemoryAccessBefore() 501 auto *Accesses = getOrCreateAccessList(InsertPt->getBlock()); in createMemoryAccessBefore() 509 assert(I->getParent() == InsertPt->getBlock() && in createMemoryAccessAfter() 512 auto *Accesses = getOrCreateAccessList(InsertPt->getBlock()); in createMemoryAccessAfter() 563 auto It = PerBlockAccesses.find(CurrNode->getBlock()); in findDominatingDef() 580 return DT->dominates(Replacer->getBlock(), Replacee->getBlock()); in dominatesUse() [all …]
|
/external/llvm-project/mlir/test/lib/Transforms/ |
D | TestDominance.cpp | 41 if (blockIds.count(nested->getBlock()) > 0) in DominanceTest() 43 blockIds.insert({nested->getBlock(), blockIds.size()}); in DominanceTest() 53 Block *block = op->getBlock(); in printDominance() 59 Block *nestedBlock = nested->getBlock(); in printDominance()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | BranchFolding.cpp | 480 if (getBlock()->getNumber() < o.getBlock()->getNumber()) in operator <() 482 if (getBlock()->getNumber() > o.getBlock()->getNumber()) in operator <() 666 if (ProfitableToMerge(CurMPIter->getBlock(), I->getBlock(), in ComputeSameTails() 697 MachineBasicBlock *CurMBB = CurMPIter->getBlock(); in RemoveBlocksWithHash() 716 if (SameTails[i].getBlock() == PredBB) { in CreateCommonTailOnlyBlock() 722 unsigned t = EstimateRuntime(SameTails[i].getBlock()->begin(), in CreateCommonTailOnlyBlock() 732 MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock(); in CreateCommonTailOnlyBlock() 809 MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock(); in mergeCommonTails() 831 assert(Pos != SameTails[i].getBlock()->end() && in mergeCommonTails() 835 assert(Pos != SameTails[i].getBlock()->end() && in mergeCommonTails() [all …]
|
D | BranchFolding.h | 61 MachineBasicBlock *getBlock() const { return Block; } in getBlock() function 100 MachineBasicBlock *getBlock() const { in getBlock() function 101 return getMergePotentialsElt().getBlock(); in getBlock() 105 return TailStartPos == getBlock()->begin(); in tailIsWholeBlock()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | BranchFolding.cpp | 491 if (getBlock()->getNumber() < o.getBlock()->getNumber()) in operator <() 493 if (getBlock()->getNumber() > o.getBlock()->getNumber()) in operator <() 713 if (ProfitableToMerge(CurMPIter->getBlock(), I->getBlock(), in ComputeSameTails() 744 MachineBasicBlock *CurMBB = CurMPIter->getBlock(); in RemoveBlocksWithHash() 763 if (SameTails[i].getBlock() == PredBB) { in CreateCommonTailOnlyBlock() 769 unsigned t = EstimateRuntime(SameTails[i].getBlock()->begin(), in CreateCommonTailOnlyBlock() 779 MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock(); in CreateCommonTailOnlyBlock() 856 MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock(); in mergeCommonTails() 878 assert(Pos != SameTails[i].getBlock()->end() && in mergeCommonTails() 882 assert(Pos != SameTails[i].getBlock()->end() && in mergeCommonTails() [all …]
|
D | BranchFolding.h | 66 MachineBasicBlock *getBlock() const { return Block; } in getBlock() function 105 MachineBasicBlock *getBlock() const { in getBlock() function 106 return getMergePotentialsElt().getBlock(); in getBlock() 110 return TailStartPos == getBlock()->begin(); in tailIsWholeBlock()
|
/external/llvm/lib/CodeGen/ |
D | BranchFolding.cpp | 531 if (getBlock()->getNumber() < o.getBlock()->getNumber()) in operator <() 533 if (getBlock()->getNumber() > o.getBlock()->getNumber()) in operator <() 681 if (ProfitableToMerge(CurMPIter->getBlock(), I->getBlock(), in ComputeSameTails() 713 MachineBasicBlock *CurMBB = CurMPIter->getBlock(); in RemoveBlocksWithHash() 734 if (SameTails[i].getBlock() == PredBB) { in CreateCommonTailOnlyBlock() 740 unsigned t = EstimateRuntime(SameTails[i].getBlock()->begin(), in CreateCommonTailOnlyBlock() 750 MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock(); in CreateCommonTailOnlyBlock() 836 dbgs() << "BB#" << MergePotentials[i].getBlock()->getNumber() in TryTailMergeBlocks() 876 &MergePotentials.front().getBlock()->getParent()->front(); in TryTailMergeBlocks() 881 SameTails[0].getBlock()->isLayoutSuccessor(SameTails[1].getBlock()) && in TryTailMergeBlocks() [all …]
|
D | BranchFolding.h | 50 MachineBasicBlock *getBlock() const { return Block; } in getBlock() function 82 MachineBasicBlock *getBlock() const { in getBlock() function 83 return getMergePotentialsElt().getBlock(); in getBlock() 86 return TailStartPos == getBlock()->begin(); in tailIsWholeBlock()
|
/external/tensorflow/tensorflow/compiler/mlir/tfr/utils/ |
D | utils.cc | 57 if (begin->getBlock() == end->getBlock()) { in AddAttributes() 60 Region::iterator begin_block = Region::iterator(begin->getBlock()); in AddAttributes() 61 Region::iterator end_block = Region::iterator(end->getBlock()); in AddAttributes()
|
/external/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
D | JITLink.cpp | 135 OS << " " << Sym.getBlock().getSection().getName(); in operator <<() 150 auto &TargetBlock = TargetSym.getBlock(); in printEdge() 230 if (&Sym->getBlock() == &B) in splitBlock() 264 for (auto &E : Sym->getBlock().edges()) { in dump() 271 printEdge(OS, Sym->getBlock(), E, EdgeName); in dump() 274 printEdge(OS, Sym->getBlock(), E, EdgeNumberString); in dump()
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/ |
D | merge_control_flow.cc | 75 if (source.getOperation()->getBlock() != in SafeToMerge() 76 destination.getOperation()->getBlock()) in SafeToMerge() 134 if (dependency->getBlock() != destination.getOperation()->getBlock()) in SafeToMerge() 194 while (op->getBlock() != after_op->getBlock()) op = op->getParentOp(); in MoveResultsAfter()
|
/external/swiftshader/src/Pipeline/ |
D | SpirvShaderControlFlow.cpp | 125 for(auto out : getBlock(id).outs) in TraverseReachableBlocks() 162 auto block = getBlock(blockId); in ForeachBlockDependency() 186 for(auto out : getBlock(id).outs) in ExistsPath() 239 auto const &block = function.getBlock(id); in EmitBlocks() 291 auto block = function.getBlock(blockId); in EmitNonLoop() 329 auto &block = function.getBlock(blockId); in EmitLoop() 331 auto &mergeBlock = function.getBlock(mergeBlockId); in EmitLoop() 376 for(auto in : function.getBlock(mergeBlockId).ins) in EmitLoop() 429 for(auto in : function.getBlock(mergeBlockId).ins) in EmitLoop() 506 auto block = function.getBlock(state->block); in EmitBranchConditional() [all …]
|
/external/llvm-project/clang/include/clang/Analysis/Analyses/ |
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()
|