/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | IfConversion.cpp | 174 BBInfo &BBI; member 184 : BBI(b), Kind(k), NumDups(d), NumDups2(d2), NeedSubsumption(s), in IfcvtToken() 229 bool reverseBranchCondition(BBInfo &BBI) const; 247 void AnalyzeBranches(BBInfo &BBI); 248 void ScanInstructions(BBInfo &BBI, 258 bool FeasibilityAnalysis(BBInfo &BBI, SmallVectorImpl<MachineOperand> &Pred, 264 bool IfConvertSimple(BBInfo &BBI, IfcvtKind Kind); 265 bool IfConvertTriangle(BBInfo &BBI, IfcvtKind Kind); 266 bool IfConvertDiamondCommon(BBInfo &BBI, BBInfo &TrueBBI, BBInfo &FalseBBI, 270 bool IfConvertDiamond(BBInfo &BBI, IfcvtKind Kind, [all …]
|
D | LiveVariables.cpp | 710 for (const auto &BBI : MBB) { in analyzePHINodes() local 711 if (!BBI.isPHI()) in analyzePHINodes() 713 for (unsigned i = 1, e = BBI.getNumOperands(); i != e; i += 2) in analyzePHINodes() 714 if (BBI.getOperand(i).readsReg()) in analyzePHINodes() 715 PHIVarInfo[BBI.getOperand(i + 1).getMBB()->getNumber()] in analyzePHINodes() 716 .push_back(BBI.getOperand(i).getReg()); in analyzePHINodes() 770 MachineBasicBlock::iterator BBI = SuccBB->begin(), BBE = SuccBB->end(); in addNewBlock() local 771 for (; BBI != BBE && BBI->isPHI(); ++BBI) { in addNewBlock() 773 Defs.insert(BBI->getOperand(0).getReg()); in addNewBlock() 776 for (unsigned i = 1, e = BBI->getNumOperands(); i != e; i += 2) in addNewBlock() [all …]
|
D | PHIElimination.cpp | 553 for (const auto &BBI : MBB) { in analyzePHINodes() local 554 if (!BBI.isPHI()) in analyzePHINodes() 556 for (unsigned i = 1, e = BBI.getNumOperands(); i != e; i += 2) in analyzePHINodes() 557 ++VRegPHIUseCount[BBVRegPair(BBI.getOperand(i+1).getMBB()->getNumber(), in analyzePHINodes() 558 BBI.getOperand(i).getReg())]; in analyzePHINodes() 572 for (MachineBasicBlock::iterator BBI = MBB.begin(), BBE = MBB.end(); in SplitPHIEdges() local 573 BBI != BBE && BBI->isPHI(); ++BBI) { in SplitPHIEdges() 574 for (unsigned i = 1, e = BBI->getNumOperands(); i != e; i += 2) { in SplitPHIEdges() 575 Register Reg = BBI->getOperand(i).getReg(); in SplitPHIEdges() 576 MachineBasicBlock *PreMBB = BBI->getOperand(i+1).getMBB(); in SplitPHIEdges() [all …]
|
D | ModuloSchedule.cpp | 214 for (MachineBasicBlock::iterator BBI = BB->instr_begin(), in generateProlog() local 216 BBI != BBE; ++BBI) { in generateProlog() 217 if (Schedule.getStage(&*BBI) == StageNum) { in generateProlog() 218 if (BBI->isPHI()) in generateProlog() 221 cloneAndChangeInstr(&*BBI, i, (unsigned)StageNum); in generateProlog() 224 InstrMap[NewMI] = &*BBI; in generateProlog() 291 for (auto &BBI : *BB) { in generateEpilog() 292 if (BBI.isPHI()) in generateEpilog() 294 MachineInstr *In = &BBI; in generateEpilog() 383 for (MachineBasicBlock::iterator BBI = BB->instr_begin(), in generateExistingPhis() local [all …]
|
D | MIRCanonicalizerPass.cpp | 245 for (auto BBI = MBB->instr_begin(); BBI != BBE; ++BBI) { in rescheduleCanonically() local 250 if (&*BBI == Def) { in rescheduleCanonically() 251 DefI = BBI; in rescheduleCanonically() 255 if (&*BBI == UseToBringDefCloserTo) { in rescheduleCanonically() 256 UseI = BBI; in rescheduleCanonically()
|
D | Analysis.cpp | 535 for (BasicBlock::const_iterator BBI = std::prev(ExitBB->end(), 2);; --BBI) { in isInTailCallPosition() local 536 if (&*BBI == I) in isInTailCallPosition() 539 if (isa<DbgInfoIntrinsic>(BBI)) in isInTailCallPosition() 543 if (const IntrinsicInst *II = dyn_cast<IntrinsicInst>(BBI)) in isInTailCallPosition() 547 if (BBI->mayHaveSideEffects() || BBI->mayReadFromMemory() || in isInTailCallPosition() 548 !isSafeToSpeculativelyExecute(&*BBI)) in isInTailCallPosition()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/ |
D | PPCPreEmitPeephole.cpp | 77 for (auto BBI = MBB.instr_begin(); BBI != MBB.instr_end(); ++BBI) { in removeRedundantLIs() local 80 if (InstrsToErase.find(&*BBI) != InstrsToErase.end()) in removeRedundantLIs() 83 unsigned Opc = BBI->getOpcode(); in removeRedundantLIs() 89 if (!BBI->getOperand(1).isImm()) in removeRedundantLIs() 91 assert(BBI->getOperand(0).isReg() && in removeRedundantLIs() 94 LLVM_DEBUG(dbgs() << "Scanning after load immediate: "; BBI->dump();); in removeRedundantLIs() 96 Register Reg = BBI->getOperand(0).getReg(); in removeRedundantLIs() 97 int64_t Imm = BBI->getOperand(1).getImm(); in removeRedundantLIs() 99 if (BBI->getOperand(0).isDead()) { in removeRedundantLIs() 100 DeadOrKillToUnset = &BBI->getOperand(0); in removeRedundantLIs() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
D | ARMBasicBlockInfo.cpp | 49 BasicBlockInfo &BBI = BBInfo[MBB->getNumber()]; in computeBlockSize() local 50 BBI.Size = 0; in computeBlockSize() 51 BBI.Unalign = 0; in computeBlockSize() 52 BBI.PostAlign = Align::None(); in computeBlockSize() 55 BBI.Size += TII->getInstSizeInBytes(I); in computeBlockSize() 59 BBI.Unalign = isThumb ? 1 : 2; in computeBlockSize() 62 BBI.Unalign = 1; in computeBlockSize() 67 BBI.PostAlign = Align(4); in computeBlockSize()
|
D | ARMBasicBlockInfo.h | 147 void insert(unsigned BBNum, BasicBlockInfo BBI) { in insert() argument 148 BBInfo.insert(BBInfo.begin() + BBNum, BBI); in insert()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | DeadStoreElimination.cpp | 101 deleteDeadInstruction(Instruction *I, BasicBlock::iterator *BBI, in deleteDeadInstruction() argument 113 BasicBlock::iterator NewIter = *BBI; in deleteDeadInstruction() 153 *BBI = NewIter; in deleteDeadInstruction() 706 BasicBlock::iterator BBI(Dependency); in handleFree() local 707 deleteDeadInstruction(Dependency, &BBI, *MD, *TLI, IOL, OBB, in handleFree() 717 Dep = MD->getPointerDependencyFrom(Loc, false, BBI, BB); in handleFree() 794 for (BasicBlock::iterator BBI = BB.end(); BBI != BB.begin(); ){ in handleEndBlock() local 795 --BBI; in handleEndBlock() 798 if (hasAnalyzableMemoryWrite(&*BBI, *TLI) && isRemovable(&*BBI)) { in handleEndBlock() 801 GetUnderlyingObjects(getStoredPointerOperand(&*BBI), Pointers, DL); in handleEndBlock() [all …]
|
D | TailRecursionElimination.cpp | 401 for (BasicBlock &BBI : *F) { in getCommonReturnValue() 402 ReturnInst *RI = dyn_cast<ReturnInst>(BBI.getTerminator()); in getCommonReturnValue() 461 BasicBlock::iterator BBI(TI); in findTRECandidate() local 463 CI = dyn_cast<CallInst>(BBI); in findTRECandidate() 467 if (BBI == BB->begin()) in findTRECandidate() 469 --BBI; in findTRECandidate() 521 BasicBlock::iterator BBI(CI); in eliminateRecursiveTailCall() local 522 for (++BBI; &*BBI != Ret; ++BBI) { in eliminateRecursiveTailCall() 523 if (canMoveAboveCall(&*BBI, CI, AA)) in eliminateRecursiveTailCall() 531 canTransformAccumulatorRecursion(&*BBI, CI))) { in eliminateRecursiveTailCall() [all …]
|
D | PlaceSafepoints.cpp | 270 for (BasicBlock::iterator BBI(Start), BBE0 = Start->getParent()->end(), in scanOneBB() local 272 BBI != BBE0 && BBI != BBE1; BBI++) { in scanOneBB() 273 if (CallInst *CI = dyn_cast<CallInst>(&*BBI)) in scanOneBB() 277 assert(!isa<InvokeInst>(&*BBI) && in scanOneBB() 282 if (BBI->isTerminator()) { in scanOneBB() 283 BasicBlock *BB = BBI->getParent(); in scanOneBB()
|
D | SimplifyCFGPass.cpp | 79 for (Function::iterator BBI = F.begin(), E = F.end(); BBI != E; ) { in mergeEmptyReturnBlocks() local 80 BasicBlock &BB = *BBI++; in mergeEmptyReturnBlocks()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 990 BasicBlock::iterator BBI(LI); in visitLoadInst() local 993 &LI, LI.getParent(), BBI, DefMaxInstsToScan, AA, &IsLoadCSE)) { in visitLoadInst() 1430 BasicBlock::iterator BBI(SI); in visitStoreInst() local 1431 for (unsigned ScanInsts = 6; BBI != SI.getParent()->begin() && ScanInsts; in visitStoreInst() 1433 --BBI; in visitStoreInst() 1436 if (isa<DbgInfoIntrinsic>(BBI) || in visitStoreInst() 1437 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in visitStoreInst() 1442 if (StoreInst *PrevSI = dyn_cast<StoreInst>(BBI)) { in visitStoreInst() 1460 if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) { in visitStoreInst() 1472 if (BBI->mayWriteToMemory() || BBI->mayReadFromMemory() || BBI->mayThrow()) in visitStoreInst() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | LazyValueInfo.cpp | 230 auto BBI = I->second->BlockVals.find(BB); in getCachedValueInfo() local 231 if (BBI == I->second->BlockVals.end()) in getCachedValueInfo() 233 return BBI->second; in getCachedValueInfo() 433 bool solveBlockValueBinaryOp(ValueLatticeElement &BBLV, BinaryOperator *BBI, 447 Instruction *BBI); 581 static ValueLatticeElement getFromRangeMetadata(Instruction *BBI) { in getFromRangeMetadata() argument 582 switch (BBI->getOpcode()) { in getFromRangeMetadata() 587 if (MDNode *Ranges = BBI->getMetadata(LLVMContext::MD_range)) in getFromRangeMetadata() 588 if (isa<IntegerType>(BBI->getType())) { in getFromRangeMetadata() 627 Instruction *BBI = dyn_cast<Instruction>(Val); in solveBlockValueImpl() local [all …]
|
D | Loads.cpp | 287 BasicBlock::iterator BBI = ScanFrom->getIterator(), in isSafeToLoadUnconditionally() local 294 while (BBI != E) { in isSafeToLoadUnconditionally() 295 --BBI; in isSafeToLoadUnconditionally() 299 if (isa<CallInst>(BBI) && BBI->mayWriteToMemory() && in isSafeToLoadUnconditionally() 300 !isa<DbgInfoIntrinsic>(BBI)) in isSafeToLoadUnconditionally() 305 if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) { in isSafeToLoadUnconditionally() 313 } else if (StoreInst *SI = dyn_cast<StoreInst>(BBI)) { in isSafeToLoadUnconditionally()
|
D | LoopPass.cpp | 51 auto BBI = llvm::find_if(L->blocks(), [](BasicBlock *BB) { return BB; }); in runOnLoop() local 52 if (BBI != L->blocks().end() && in runOnLoop() 53 isFunctionInPrintList((*BBI)->getParent()->getName())) { in runOnLoop()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/ |
D | NVPTXGenericToNVVM.cpp | 107 for (Function::iterator BBI = I->begin(), BBE = I->end(); BBI != BBE; in runOnModule() local 108 ++BBI) { in runOnModule() 109 for (BasicBlock::iterator II = BBI->begin(), IE = BBI->end(); II != IE; in runOnModule()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 245 for (BasicBlock::iterator BBI = Succ->begin(); isa<PHINode>(BBI); ++BBI) { in SafeToMergeTerminators() local 246 PHINode *PN = cast<PHINode>(BBI); in SafeToMergeTerminators() 288 for (BasicBlock::iterator BBI = Succ->begin(); isa<PHINode>(BBI); ++BBI) { in isProfitableToFoldUnconditional() local 289 PHINode *PN = cast<PHINode>(BBI); in isProfitableToFoldUnconditional() 1994 for (BasicBlock::iterator BBI = ThenBB->begin(), in SpeculativelyExecuteBB() local 1996 BBI != BBE; ++BBI) { in SpeculativelyExecuteBB() 1997 Instruction *I = &*BBI; in SpeculativelyExecuteBB() 2243 for (BasicBlock::iterator BBI = BB->begin(); &*BBI != BI; ++BBI) { in FoldCondBranchOnPHI() local 2244 if (PHINode *PN = dyn_cast<PHINode>(BBI)) { in FoldCondBranchOnPHI() 2249 Instruction *N = BBI->clone(); in FoldCondBranchOnPHI() [all …]
|
D | LoopSimplify.cpp | 90 Function::iterator BBI = --NewBB->getIterator(); in placeSplitBlockCarefully() local 92 if (&*BBI == SplitPreds[i]) in placeSplitBlockCarefully() 104 Function::iterator BBI = SplitPreds[i]->getIterator(); in placeSplitBlockCarefully() local 105 if (++BBI != NewBB->getParent()->end() && L->contains(&*BBI)) { in placeSplitBlockCarefully()
|
D | PromoteMemoryToRegister.cpp | 211 for (const Instruction &BBI : *BB) in getInstructionIndex() 212 if (isInterestingInstruction(&BBI)) in getInstructionIndex() 213 InstNumbers[&BBI] = InstNo++; in getInstructionIndex() 756 BasicBlock::iterator BBI = BB->begin(); in run() local 757 while ((SomePHI = dyn_cast<PHINode>(BBI++)) && in run()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Scalar/ |
D | MemCpyOptimizer.h | 60 bool processStore(StoreInst *SI, BasicBlock::iterator &BBI); 61 bool processMemSet(MemSetInst *SI, BasicBlock::iterator &BBI);
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | SafepointIRVerifier.cpp | 551 for (auto &BBI : BlockMap) { in GCPtrTracker() local 552 gatherDominatingDefs(BBI.first, BBI.second->AvailableIn, DT); in GCPtrTracker() 553 transferBlock(BBI.first, *BBI.second, true); in GCPtrTracker() 610 for (auto &BBI : BlockMap) in recalculateBBsStates() local 611 Worklist.insert(BBI.first); in recalculateBBsStates()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/ObjCARC/ |
D | ObjCARCContract.cpp | 475 BasicBlock::iterator BBI = Inst->getIterator(); in tryToPeepholeInstruction() local 482 if (BBI == InstParent->begin()) { in tryToPeepholeInstruction() 486 BBI = Pred->getTerminator()->getIterator(); in tryToPeepholeInstruction() 489 --BBI; in tryToPeepholeInstruction() 490 } while (IsNoopInstruction(&*BBI)); in tryToPeepholeInstruction() 492 if (&*BBI == GetArgRCIdentityRoot(Inst)) { in tryToPeepholeInstruction()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/ |
D | MipsConstantIslandPass.cpp | 427 const BasicBlockInfo &BBI = BBInfo[J]; in dumpBBs() local 428 dbgs() << format("%08x %bb.%u\t", BBI.Offset, J) in dumpBBs() 791 BasicBlockInfo &BBI = BBInfo[MBB->getNumber()]; in computeBlockSize() local 792 BBI.Size = 0; in computeBlockSize() 795 BBI.Size += TII->getInstSizeInBytes(MI); in computeBlockSize() 983 const BasicBlockInfo &BBI = BBInfo[Block]; in isCPEntryInRange() 988 << format("%#x-%x\t", BBI.Offset, BBI.postOffset()) << *MI in isCPEntryInRange()
|