/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | SIAnnotateControlFlow.cpp | 94 void openIf(BranchInst *Term); 96 void insertElse(BranchInst *Term); 100 BranchInst *Term); 102 void handleLoop(BranchInst *Term); 210 void SIAnnotateControlFlow::openIf(BranchInst *Term) { in openIf() argument 211 if (isUniform(Term)) in openIf() 214 Value *Ret = CallInst::Create(If, Term->getCondition(), "", Term); in openIf() 215 Term->setCondition(ExtractValueInst::Create(Ret, 0, "", Term)); in openIf() 216 push(Term->getSuccessor(1), ExtractValueInst::Create(Ret, 1, "", Term)); in openIf() 220 void SIAnnotateControlFlow::insertElse(BranchInst *Term) { in insertElse() argument [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | SIAnnotateControlFlow.cpp | 94 void openIf(BranchInst *Term); 96 void insertElse(BranchInst *Term); 100 BranchInst *Term); 102 void handleLoop(BranchInst *Term); 210 void SIAnnotateControlFlow::openIf(BranchInst *Term) { in openIf() argument 211 if (isUniform(Term)) in openIf() 214 Value *Ret = CallInst::Create(If, Term->getCondition(), "", Term); in openIf() 215 Term->setCondition(ExtractValueInst::Create(Ret, 0, "", Term)); in openIf() 216 push(Term->getSuccessor(1), ExtractValueInst::Create(Ret, 1, "", Term)); in openIf() 220 void SIAnnotateControlFlow::insertElse(BranchInst *Term) { in insertElse() argument [all …]
|
/external/llvm/lib/Target/AMDGPU/ |
D | SIAnnotateControlFlow.cpp | 84 void openIf(BranchInst *Term); 86 void insertElse(BranchInst *Term); 89 llvm::Loop *L, BranchInst *Term); 91 void handleLoop(BranchInst *Term); 215 void SIAnnotateControlFlow::openIf(BranchInst *Term) { in openIf() argument 216 if (isUniform(Term)) { in openIf() 219 Value *Ret = CallInst::Create(If, Term->getCondition(), "", Term); in openIf() 220 Term->setCondition(ExtractValueInst::Create(Ret, 0, "", Term)); in openIf() 221 push(Term->getSuccessor(1), ExtractValueInst::Create(Ret, 1, "", Term)); in openIf() 225 void SIAnnotateControlFlow::insertElse(BranchInst *Term) { in insertElse() argument [all …]
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | CoreEngine.cpp | 296 if (const Stmt *Term = B->getTerminatorStmt()) { in HandleBlockExit() local 297 switch (Term->getStmtClass()) { in HandleBlockExit() 303 cast<CXXBindTemporaryExpr>(Term), B, Pred); in HandleBlockExit() 308 HandleStaticInit(cast<DeclStmt>(Term), B, Pred); in HandleBlockExit() 312 HandleBranch(cast<BinaryOperator>(Term)->getLHS(), Term, B, Pred); in HandleBlockExit() 317 HandleBranch(cast<AbstractConditionalOperator>(Term)->getCond(), in HandleBlockExit() 318 Term, B, Pred); in HandleBlockExit() 325 HandleBranch(cast<ChooseExpr>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 341 HandleBranch(cast<DoStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 345 HandleBranch(cast<CXXForRangeStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() [all …]
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | CoreEngine.cpp | 357 if (const Stmt *Term = B->getTerminator()) { in HandleBlockExit() local 358 switch (Term->getStmtClass()) { in HandleBlockExit() 369 HandleStaticInit(cast<DeclStmt>(Term), B, Pred); in HandleBlockExit() 373 HandleBranch(cast<BinaryOperator>(Term)->getLHS(), Term, B, Pred); in HandleBlockExit() 378 HandleBranch(cast<AbstractConditionalOperator>(Term)->getCond(), in HandleBlockExit() 379 Term, B, Pred); in HandleBlockExit() 386 HandleBranch(cast<ChooseExpr>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 403 HandleBranch(cast<DoStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 407 HandleBranch(cast<CXXForRangeStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 411 HandleBranch(cast<ForStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() [all …]
|
/external/llvm-project/llvm/tools/llvm-reduce/deltas/ |
D | ReduceBasicBlocks.cpp | 29 auto Term = BB.getTerminator(); in replaceBranchTerminator() local 36 if (ChunkSucessors.size() == Term->getNumSuccessors()) in replaceBranchTerminator() 39 bool IsBranch = isa<BranchInst>(Term) || isa<InvokeInst>(Term); in replaceBranchTerminator() 41 if (auto IndBI = dyn_cast<IndirectBrInst>(Term)) in replaceBranchTerminator() 44 Term->replaceAllUsesWith(UndefValue::get(Term->getType())); in replaceBranchTerminator() 45 Term->eraseFromParent(); in replaceBranchTerminator()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | StructurizeCFG.cpp | 221 Value *buildCondition(BranchInst *Term, unsigned Idx, bool Invert); 396 BranchInst *Term = cast<BranchInst>(BB->getTerminator()); in analyzeLoops() local 398 for (BasicBlock *Succ : Term->successors()) in analyzeLoops() 438 Value *StructurizeCFG::buildCondition(BranchInst *Term, unsigned Idx, in buildCondition() argument 441 if (Term->isConditional()) { in buildCondition() 442 Cond = Term->getCondition(); in buildCondition() 465 BranchInst *Term = cast<BranchInst>(P->getTerminator()); in gatherPredicates() local 466 for (unsigned i = 0, e = Term->getNumSuccessors(); i != e; ++i) { in gatherPredicates() 467 BasicBlock *Succ = Term->getSuccessor(i); in gatherPredicates() 473 if (Term->isConditional()) { in gatherPredicates() [all …]
|
D | PlaceSafepoints.cpp | 349 Instruction *Term = Pred->getTerminator(); in runOnLoop() local 351 LLVM_DEBUG(dbgs() << "[LSP] terminator instruction: " << *Term); in runOnLoop() 353 PollLocations.push_back(Term); in runOnLoop() 535 for (Instruction *Term : PollLocations) { in runOnFunction() 551 for (unsigned i = 0; i < Term->getNumSuccessors(); i++) { in runOnFunction() 552 BasicBlock *Succ = Term->getSuccessor(i); in runOnFunction() 553 if (DT.dominates(Succ, Term->getParent())) { in runOnFunction() 564 BasicBlock *NewBB = SplitEdge(Term->getParent(), Header, &DT); in runOnFunction() 570 PollsNeeded.push_back(Term); in runOnFunction()
|
/external/llvm/lib/Transforms/Scalar/ |
D | StructurizeCFG.cpp | 200 Value *buildCondition(BranchInst *Term, unsigned Idx, bool Invert); 369 BranchInst *Term = cast<BranchInst>(BB->getTerminator()); in analyzeLoops() local 371 for (BasicBlock *Succ : Term->successors()) in analyzeLoops() 416 Value *StructurizeCFG::buildCondition(BranchInst *Term, unsigned Idx, in buildCondition() argument 419 if (Term->isConditional()) { in buildCondition() 420 Cond = Term->getCondition(); in buildCondition() 446 BranchInst *Term = cast<BranchInst>((*PI)->getTerminator()); in gatherPredicates() local 447 for (unsigned i = 0, e = Term->getNumSuccessors(); i != e; ++i) { in gatherPredicates() 448 BasicBlock *Succ = Term->getSuccessor(i); in gatherPredicates() 454 if (Term->isConditional()) { in gatherPredicates() [all …]
|
D | PlaceSafepoints.cpp | 342 TerminatorInst *Term = Pred->getTerminator(); in runOnLoop() local 344 DEBUG(dbgs() << "[LSP] terminator instruction: " << *Term); in runOnLoop() 346 PollLocations.push_back(Term); in runOnLoop() 526 for (TerminatorInst *Term : PollLocations) { in runOnFunction() 542 for (unsigned i = 0; i < Term->getNumSuccessors(); i++) { in runOnFunction() 543 BasicBlock *Succ = Term->getSuccessor(i); in runOnFunction() 544 if (DT.dominates(Succ, Term->getParent())) { in runOnFunction() 555 BasicBlock *NewBB = SplitEdge(Term->getParent(), Header, &DT); in runOnFunction() 561 PollsNeeded.push_back(Term); in runOnFunction()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | StructurizeCFG.cpp | 271 Value *buildCondition(BranchInst *Term, unsigned Idx, bool Invert); 436 BranchInst *Term = cast<BranchInst>(BB->getTerminator()); in analyzeLoops() local 438 for (BasicBlock *Succ : Term->successors()) in analyzeLoops() 445 Value *StructurizeCFG::buildCondition(BranchInst *Term, unsigned Idx, in buildCondition() argument 448 if (Term->isConditional()) { in buildCondition() 449 Cond = Term->getCondition(); in buildCondition() 472 BranchInst *Term = cast<BranchInst>(P->getTerminator()); in gatherPredicates() local 473 for (unsigned i = 0, e = Term->getNumSuccessors(); i != e; ++i) { in gatherPredicates() 474 BasicBlock *Succ = Term->getSuccessor(i); in gatherPredicates() 480 if (Term->isConditional()) { in gatherPredicates() [all …]
|
D | PlaceSafepoints.cpp | 350 Instruction *Term = Pred->getTerminator(); in runOnLoop() local 352 LLVM_DEBUG(dbgs() << "[LSP] terminator instruction: " << *Term); in runOnLoop() 354 PollLocations.push_back(Term); in runOnLoop() 536 for (Instruction *Term : PollLocations) { in runOnFunction() 552 for (unsigned i = 0; i < Term->getNumSuccessors(); i++) { in runOnFunction() 553 BasicBlock *Succ = Term->getSuccessor(i); in runOnFunction() 554 if (DT.dominates(Succ, Term->getParent())) { in runOnFunction() 565 BasicBlock *NewBB = SplitEdge(Term->getParent(), Header, &DT); in runOnFunction() 571 PollsNeeded.push_back(Term); in runOnFunction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | LoopUnroll.cpp | 558 auto *Term = cast<BranchInst>(Header->getTerminator()); in UnrollLoop() local 559 if (Term->isUnconditional() || L->contains(Term->getSuccessor(0))) { in UnrollLoop() 560 assert(L->contains(Term->getSuccessor(0))); in UnrollLoop() 561 HeaderSucc.push_back(Term->getSuccessor(0)); in UnrollLoop() 563 assert(L->contains(Term->getSuccessor(1))); in UnrollLoop() 564 HeaderSucc.push_back(Term->getSuccessor(1)); in UnrollLoop() 717 auto *Term = cast<BranchInst>(Src->getTerminator()); in UnrollLoop() local 721 Term->setSuccessor(!ContinueOnTrue, Dest); in UnrollLoop() 736 BranchInst::Create(Dest, Term); in UnrollLoop() 737 Term->eraseFromParent(); in UnrollLoop() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | DivergenceAnalysis.cpp | 110 bool DivergenceAnalysis::updateTerminator(const Instruction &Term) const { in updateTerminator() 111 if (Term.getNumSuccessors() <= 1) in updateTerminator() 113 if (auto *BranchTerm = dyn_cast<BranchInst>(&Term)) { in updateTerminator() 117 if (auto *SwitchTerm = dyn_cast<SwitchInst>(&Term)) { in updateTerminator() 120 if (isa<InvokeInst>(Term)) { in updateTerminator() 299 void DivergenceAnalysis::propagateBranchDivergence(const Instruction &Term) { in propagateBranchDivergence() argument 300 LLVM_DEBUG(dbgs() << "propBranchDiv " << Term.getParent()->getName() << "\n"); in propagateBranchDivergence() 302 markDivergent(Term); in propagateBranchDivergence() 304 const auto *BranchLoop = LI.getLoopFor(Term.getParent()); in propagateBranchDivergence() 311 for (const auto *JoinBlock : SDA.join_blocks(Term)) { in propagateBranchDivergence()
|
D | SyncDependenceAnalysis.cpp | 358 SyncDependenceAnalysis::join_blocks(const Instruction &Term) { in join_blocks() argument 360 if (Term.getNumSuccessors() < 1) { in join_blocks() 365 auto ItCached = CachedBranchJoins.find(&Term); in join_blocks() 371 const auto &TermBlock = *Term.getParent(); in join_blocks() 373 TermBlock, successors(Term.getParent()), LI.getLoopFor(&TermBlock)); in join_blocks() 375 auto ItInserted = CachedBranchJoins.emplace(&Term, std::move(JoinBlocks)); in join_blocks()
|
/external/llvm-project/llvm/lib/IR/ |
D | StructuralHash.cpp | 51 const Instruction *Term = BB->getTerminator(); in update() local 52 for (unsigned i = 0, e = Term->getNumSuccessors(); i != e; ++i) { in update() 53 if (!VisitedBBs.insert(Term->getSuccessor(i)).second) in update() 55 BBs.push_back(Term->getSuccessor(i)); in update()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | LoopUnroll.cpp | 704 auto *Term = cast<BranchInst>(Src->getTerminator()); in UnrollLoop() local 710 Term->setSuccessor(!(*ContinueOnTrue), Dest); in UnrollLoop() 725 BranchInst::Create(Dest, Term); in UnrollLoop() 726 Term->eraseFromParent(); in UnrollLoop() 800 BranchInst *Term = cast<BranchInst>(Latches.back()->getTerminator()); in UnrollLoop() local 801 new UnreachableInst(Term->getContext(), Term); in UnrollLoop() 802 Term->eraseFromParent(); in UnrollLoop() 832 Instruction *Term = ExitingBlocks[i]->getTerminator(); in UnrollLoop() local 833 if (isa<BranchInst>(Term) && cast<BranchInst>(Term)->isConditional()) { in UnrollLoop() 857 BranchInst *Term = dyn_cast<BranchInst>(Latch->getTerminator()); in UnrollLoop() local [all …]
|
/external/apache-commons-bcel/src/examples/Mini/ |
D | Mini.bnf | 58 Term [AddOp Term] 64 Term:
|
/external/llvm/lib/CodeGen/ |
D | PHIElimination.cpp | 428 for (MachineBasicBlock::iterator Term = FirstTerm; in LowerPHINode() local 429 Term != opBlock.end(); ++Term) { in LowerPHINode() 430 if (Term->readsRegister(SrcReg)) in LowerPHINode() 431 KillInst = Term; in LowerPHINode() 488 for (MachineBasicBlock::iterator Term = FirstTerm; in LowerPHINode() local 489 Term != opBlock.end(); ++Term) { in LowerPHINode() 490 if (Term->readsRegister(SrcReg)) in LowerPHINode() 491 KillInst = Term; in LowerPHINode()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | PHIElimination.cpp | 444 for (MachineBasicBlock::iterator Term = FirstTerm; in LowerPHINode() local 445 Term != opBlock.end(); ++Term) { in LowerPHINode() 446 if (Term->readsRegister(SrcReg)) in LowerPHINode() 447 KillInst = Term; in LowerPHINode() 504 for (MachineBasicBlock::iterator Term = FirstTerm; in LowerPHINode() local 505 Term != opBlock.end(); ++Term) { in LowerPHINode() 506 if (Term->readsRegister(SrcReg)) in LowerPHINode() 507 KillInst = Term; in LowerPHINode()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | SyncDependenceAnalysis.cpp | 435 SyncDependenceAnalysis::getJoinBlocks(const Instruction &Term) { in getJoinBlocks() argument 437 if (Term.getNumSuccessors() <= 1) { in getJoinBlocks() 442 auto ItCached = CachedControlDivDescs.find(&Term); in getJoinBlocks() 448 const auto &TermBlock = *Term.getParent(); in getJoinBlocks() 452 LLVM_DEBUG(dbgs() << "Result (" << Term.getParent()->getName() << "):\n"; in getJoinBlocks() 458 auto ItInserted = CachedControlDivDescs.emplace(&Term, std::move(DivDesc)); in getJoinBlocks()
|
D | DivergenceAnalysis.cpp | 291 void DivergenceAnalysis::analyzeControlDivergence(const Instruction &Term) { in analyzeControlDivergence() argument 292 LLVM_DEBUG(dbgs() << "analyzeControlDiv " << Term.getParent()->getName() in analyzeControlDivergence() 296 if (!DT.isReachableFromEntry(Term.getParent())) in analyzeControlDivergence() 299 const auto *BranchLoop = LI.getLoopFor(Term.getParent()); in analyzeControlDivergence() 301 const auto &DivDesc = SDA.getJoinBlocks(Term); in analyzeControlDivergence()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | PHIElimination.cpp | 496 for (MachineBasicBlock::iterator Term = FirstTerm; in LowerPHINode() local 497 Term != opBlock.end(); ++Term) { in LowerPHINode() 498 if (Term->readsRegister(SrcReg)) in LowerPHINode() 499 KillInst = Term; in LowerPHINode() 556 for (MachineBasicBlock::iterator Term = FirstTerm; in LowerPHINode() local 557 Term != opBlock.end(); ++Term) { in LowerPHINode() 558 if (Term->readsRegister(SrcReg)) in LowerPHINode() 559 KillInst = Term; in LowerPHINode()
|
/external/llvm-project/clang/lib/Sema/ |
D | AnalysisBasedWarnings.cpp | 415 const Stmt *Term = B->getTerminatorStmt(); in CheckFallThrough() local 416 if (Term && isa<CXXTryStmt>(Term)) in CheckFallThrough() 464 const Stmt *Term = B.getTerminatorStmt(); in CheckFallThrough() local 465 if (Term && isa<CXXTryStmt>(Term)) { in CheckFallThrough() 845 const Stmt *Term = I->Terminator; in DiagUninitUse() local 861 switch (Term ? Term->getStmtClass() : Stmt::DeclStmtClass) { in DiagUninitUse() 869 const IfStmt *IS = cast<IfStmt>(Term); in DiagUninitUse() 879 const ConditionalOperator *CO = cast<ConditionalOperator>(Term); in DiagUninitUse() 889 const BinaryOperator *BO = cast<BinaryOperator>(Term); in DiagUninitUse() 911 Range = cast<WhileStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse() [all …]
|
/external/llvm/test/Transforms/ArgumentPromotion/ |
D | 2008-09-08-CGUpdateSelfEdge.ll | 3 define internal fastcc i32 @term_SharingList(i32* %Term, i32* %List) nounwind { 15 define i32 @term_Sharing(i32* %Term) nounwind {
|