/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | InstIterator.h | 36 _BB_t *BBs; // BasicBlocksType variable 52 : BBs(II.BBs), BB(II.BB), BI(II.BI) {} in InstIterator() 56 : BBs(II.BBs), BB(II.BB), BI(II.BI) {} in InstIterator() 59 : BBs(&m.getBasicBlockList()), BB(BBs->begin()) { // begin ctor in InstIterator() 60 if (BB != BBs->end()) { in InstIterator() 67 : BBs(&m.getBasicBlockList()), BB(BBs->end()) { // end ctor in InstIterator() 78 return BB == y.BB && (BB == BBs->end() || BI == y.BI); 94 while (BB == BBs->end() || BI == BB->begin()) { 105 inline bool atEnd() const { return BB == BBs->end(); } in atEnd() 113 if (BB == BBs->end()) break; in advanceToNextBB()
|
/external/llvm/include/llvm/IR/ |
D | InstIterator.h | 35 BB_t *BBs; // BasicBlocksType variable 51 : BBs(II.BBs), BB(II.BB), BI(II.BI) {} in InstIterator() 55 : BBs(II.BBs), BB(II.BB), BI(II.BI) {} in InstIterator() 58 : BBs(&m.getBasicBlockList()), BB(BBs->begin()) { // begin ctor in InstIterator() 59 if (BB != BBs->end()) { in InstIterator() 66 : BBs(&m.getBasicBlockList()), BB(BBs->end()) { // end ctor in InstIterator() 77 return BB == y.BB && (BB == BBs->end() || BI == y.BI); 93 while (BB == BBs->end() || BI == BB->begin()) { 104 inline bool atEnd() const { return BB == BBs->end(); } in atEnd() 112 if (BB == BBs->end()) break; in advanceToNextBB()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | InstIterator.h | 38 BB_t *BBs; // BasicBlocksType variable 55 : BBs(II.BBs), BB(II.BB), BI(II.BI) {} in InstIterator() 59 : BBs(II.BBs), BB(II.BB), BI(II.BI) {} in InstIterator() 62 : BBs(&m.getBasicBlockList()), BB(BBs->begin()) { // begin ctor in InstIterator() 63 if (BB != BBs->end()) { in InstIterator() 70 : BBs(&m.getBasicBlockList()), BB(BBs->end()) { // end ctor in InstIterator() 81 return BB == y.BB && (BB == BBs->end() || BI == y.BI); 97 while (BB == BBs->end() || BI == BB->begin()) { 108 inline bool atEnd() const { return BB == BBs->end(); } in atEnd() 116 if (BB == BBs->end()) break; in advanceToNextBB()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | IndirectBrExpandPass.cpp | 116 SmallVector<BasicBlock *, 4> BBs; in runOnFunction() local 145 int BBIndex = BBs.size() + 1; in runOnFunction() 146 BBs.push_back(&BB); in runOnFunction() 160 if (BBs.empty()) { in runOnFunction() 214 auto *SI = SwitchInst::Create(SwitchValue, BBs[0], BBs.size(), SwitchBB); in runOnFunction() 217 for (int i : llvm::seq<int>(1, BBs.size())) in runOnFunction() 218 SI->addCase(ConstantInt::get(CommonITy, i + 1), BBs[i]); in runOnFunction()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | ConstantHoisting.cpp | 195 SmallPtrSet<BasicBlock *, 8> &BBs) { in findBestInsertionSet() argument 196 assert(!BBs.count(Entry) && "Assume Entry is not in BBs"); in findBestInsertionSet() 203 for (auto BB : BBs) { in findBestInsertionSet() 219 } while (!BBs.count(Node)); in findBestInsertionSet() 253 bool NodeInBBs = BBs.count(Node); in findBestInsertionSet() 259 BBs.clear(); in findBestInsertionSet() 262 BBs.insert(Entry); in findBestInsertionSet() 264 BBs.insert(InsertPts.begin(), InsertPts.end()); in findBestInsertionSet() 297 SmallPtrSet<BasicBlock *, 8> BBs; in findConstantInsertionPoint() local 301 BBs.insert(findMatInsertPt(U.Inst, U.OpndIdx)->getParent()); in findConstantInsertionPoint() [all …]
|
D | LoopSink.cpp | 83 static BlockFrequency adjustedSumFreq(SmallPtrSetImpl<BasicBlock *> &BBs, in adjustedSumFreq() argument 86 for (BasicBlock *B : BBs) in adjustedSumFreq() 88 if (BBs.size() > 1) in adjustedSumFreq() 181 SmallPtrSet<BasicBlock *, 2> BBs; in sinkInstruction() local 190 BBs.insert(UI->getParent()); in sinkInstruction() 196 if (BBs.size() > MaxNumberOfUseBBsForSinking) in sinkInstruction() 201 findBBsToSinkInto(L, BBs, ColdLoopBBs, DT, BFI); in sinkInstruction()
|
/external/llvm/lib/Transforms/Scalar/ |
D | ConstantHoisting.cpp | 148 SmallPtrSet<BasicBlock *, 8> BBs; in findConstantInsertionPoint() local 151 BBs.insert(findMatInsertPt(U.Inst, U.OpndIdx)->getParent()); in findConstantInsertionPoint() 153 if (BBs.count(Entry)) in findConstantInsertionPoint() 156 while (BBs.size() >= 2) { in findConstantInsertionPoint() 158 BB1 = *BBs.begin(); in findConstantInsertionPoint() 159 BB2 = *std::next(BBs.begin()); in findConstantInsertionPoint() 163 BBs.erase(BB1); in findConstantInsertionPoint() 164 BBs.erase(BB2); in findConstantInsertionPoint() 165 BBs.insert(BB); in findConstantInsertionPoint() 167 assert((BBs.size() == 1) && "Expected only one element."); in findConstantInsertionPoint() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/ |
D | InlineSimple.cpp | 60 const auto &BBs = CS.getCaller()->getBasicBlockList(); in getInlineCost() local 61 if (!BBs.empty()) { in getInlineCost() 62 auto DI = OptimizationRemark(DEBUG_TYPE, "", DebugLoc(), &BBs.front()); in getInlineCost()
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/bugpoint/ |
D | CrashDebugger.cpp | 322 void simpleSimplifyCfg(Function &F, SmallVectorImpl<BasicBlock *> &BBs) { in simpleSimplifyCfg() argument 326 for (auto *BB : BBs) { in simpleSimplifyCfg() 383 bool ReduceCrashingBlocks::TestBlocks(std::vector<const BasicBlock *> &BBs) { in TestBlocks() argument 390 for (unsigned i = 0, e = BBs.size(); i != e; ++i) in TestBlocks() 391 Blocks.insert(cast<BasicBlock>(VMap[BBs[i]])); in TestBlocks() 398 outs() << " " << BBs[i]->getName(); in TestBlocks() 459 BBs.clear(); in TestBlocks() 465 BBs.push_back(cast<BasicBlock>(V)); in TestBlocks() 502 std::vector<const BasicBlock *> &BBs) { in TestBlocks() argument 509 for (const auto *BB : BBs) in TestBlocks() [all …]
|
D | ExtractFunction.cpp | 373 BugDriver::extractMappedBlocksFromModule(const std::vector<BasicBlock *> &BBs, in extractMappedBlocksFromModule() argument 390 if (std::find(BBs.begin(), BBs.end(), &BB) == BBs.end()) in extractMappedBlocksFromModule() 394 for (BasicBlock *BB : BBs) { in extractMappedBlocksFromModule()
|
D | Miscompilation.cpp | 478 Expected<bool> TestFuncs(const std::vector<BasicBlock *> &BBs); 486 ReduceMiscompiledBlocks::TestFuncs(const std::vector<BasicBlock *> &BBs) { in TestFuncs() argument 490 if (!BBs.empty()) { in TestFuncs() 491 outs() << "but these " << BBs.size() << " blocks are extracted: "; in TestFuncs() 492 for (unsigned i = 0, e = BBs.size() < 10 ? BBs.size() : 10; i != e; ++i) in TestFuncs() 493 outs() << BBs[i]->getName() << " "; in TestFuncs() 494 if (BBs.size() > 10) in TestFuncs() 511 for (unsigned i = 0, e = BBs.size(); i != e; ++i) { in TestFuncs() 512 BasicBlock *BB = cast<BasicBlock>(VMap[BBs[i]]); in TestFuncs()
|
/external/swiftshader/third_party/LLVM/test/CodeGen/ARM/ |
D | 2011-04-27-IfCvtBug.ll | 3 ; If converter was being too cute. It look for root BBs (which don't have 4 ; successors) and use inverse depth first search to traverse the BBs. However 6 ; traversal of all BBs work just fine.
|
/external/llvm/test/CodeGen/ARM/ |
D | 2011-04-27-IfCvtBug.ll | 3 ; If converter was being too cute. It look for root BBs (which don't have 4 ; successors) and use inverse depth first search to traverse the BBs. However 6 ; traversal of all BBs work just fine.
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/ARM/ |
D | 2011-04-27-IfCvtBug.ll | 3 ; If converter was being too cute. It look for root BBs (which don't have 4 ; successors) and use inverse depth first search to traverse the BBs. However 6 ; traversal of all BBs work just fine.
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | DominanceFrontier.cpp | 120 const std::set<BasicBlock*> &BBs = I->second; in print() local 122 for (std::set<BasicBlock*>::const_iterator I = BBs.begin(), E = BBs.end(); in print()
|
/external/swiftshader/third_party/LLVM/tools/bugpoint/ |
D | Miscompilation.cpp | 455 bool TestFuncs(const std::vector<BasicBlock*> &BBs, std::string &Error); 462 bool ReduceMiscompiledBlocks::TestFuncs(const std::vector<BasicBlock*> &BBs, in TestFuncs() argument 467 if (!BBs.empty()) { in TestFuncs() 468 outs() << "but these " << BBs.size() << " blocks are extracted: "; in TestFuncs() 469 for (unsigned i = 0, e = BBs.size() < 10 ? BBs.size() : 10; i != e; ++i) in TestFuncs() 470 outs() << BBs[i]->getName() << " "; in TestFuncs() 471 if (BBs.size() > 10) outs() << "..."; in TestFuncs() 487 for (unsigned i = 0, e = BBs.size(); i != e; ++i) { in TestFuncs() 488 BasicBlock *BB = cast<BasicBlock>(VMap[BBs[i]]); in TestFuncs()
|
D | CrashDebugger.cpp | 272 bool ReduceCrashingBlocks::TestBlocks(std::vector<const BasicBlock*> &BBs) { in TestBlocks() argument 279 for (unsigned i = 0, e = BBs.size(); i != e; ++i) in TestBlocks() 280 Blocks.insert(cast<BasicBlock>(VMap[BBs[i]])); in TestBlocks() 286 outs() << " " << BBs[i]->getName(); in TestBlocks() 340 BBs.clear(); in TestBlocks() 347 BBs.push_back(cast<BasicBlock>(V)); in TestBlocks()
|
D | ExtractFunction.cpp | 316 std::vector<BasicBlock*> &BBs, in ExtractMappedBlocksFromModule() argument 337 for (std::vector<BasicBlock*>::const_iterator I = BBs.begin(), E = BBs.end(); in ExtractMappedBlocksFromModule()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUInline.cpp | 193 const auto &BBs = Caller->getBasicBlockList(); in getInlineCost() local 194 if (!BBs.empty()) { in getInlineCost() 195 auto DI = OptimizationRemark(DEBUG_TYPE, "", DebugLoc(), &BBs.front()); in getInlineCost()
|
/external/llvm/tools/bugpoint/ |
D | Miscompilation.cpp | 471 bool TestFuncs(const std::vector<BasicBlock*> &BBs, std::string &Error); 478 bool ReduceMiscompiledBlocks::TestFuncs(const std::vector<BasicBlock*> &BBs, in TestFuncs() argument 483 if (!BBs.empty()) { in TestFuncs() 484 outs() << "but these " << BBs.size() << " blocks are extracted: "; in TestFuncs() 485 for (unsigned i = 0, e = BBs.size() < 10 ? BBs.size() : 10; i != e; ++i) in TestFuncs() 486 outs() << BBs[i]->getName() << " "; in TestFuncs() 487 if (BBs.size() > 10) outs() << "..."; in TestFuncs() 503 for (unsigned i = 0, e = BBs.size(); i != e; ++i) { in TestFuncs() 504 BasicBlock *BB = cast<BasicBlock>(VMap[BBs[i]]); in TestFuncs()
|
D | CrashDebugger.cpp | 347 bool ReduceCrashingBlocks::TestBlocks(std::vector<const BasicBlock*> &BBs) { in TestBlocks() argument 354 for (unsigned i = 0, e = BBs.size(); i != e; ++i) in TestBlocks() 355 Blocks.insert(cast<BasicBlock>(VMap[BBs[i]])); in TestBlocks() 361 outs() << " " << BBs[i]->getName(); in TestBlocks() 415 BBs.clear(); in TestBlocks() 422 BBs.push_back(cast<BasicBlock>(V)); in TestBlocks()
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-extract/ |
D | llvm-extract.cpp | 233 SmallVector<BasicBlock *, 4> BBs; in main() local 255 BBs.push_back(&*Res); in main() 320 PM.add(createBlockExtractorPass(BBs, true)); in main()
|
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/ |
D | FunctionUtils.h | 41 Function* ExtractBasicBlock(ArrayRef<BasicBlock*> BBs,
|
/external/mesa3d/src/gallium/drivers/nouveau/codegen/ |
D | nv50_ir_bb.cpp | 70 for (ArrayList::Iterator BBs = allBBlocks.iterator(); !BBs.end(); BBs.next()) in ~Function() local 71 delete reinterpret_cast<BasicBlock *>(BBs.get()); in ~Function()
|
/external/llvm/lib/Transforms/Utils/ |
D | CodeExtractor.cpp | 106 buildExtractionBlockSet(ArrayRef<BasicBlock *> BBs) { in buildExtractionBlockSet() argument 107 return buildExtractionBlockSet(BBs.begin(), BBs.end()); in buildExtractionBlockSet() 126 CodeExtractor::CodeExtractor(ArrayRef<BasicBlock *> BBs, DominatorTree *DT, in CodeExtractor() argument 129 Blocks(buildExtractionBlockSet(BBs)), NumExitBlocks(~0U) {} in CodeExtractor()
|