Home
last modified time | relevance | path

Searched refs:Term (Results 1 – 25 of 63) sorted by relevance

123

/external/llvm/lib/Target/AMDGPU/
DSIAnnotateControlFlow.cpp82 void openIf(BranchInst *Term);
84 void insertElse(BranchInst *Term);
88 void handleLoop(BranchInst *Term);
196 void SIAnnotateControlFlow::openIf(BranchInst *Term) { in openIf() argument
197 Value *Ret = CallInst::Create(If, Term->getCondition(), "", Term); in openIf()
198 Term->setCondition(ExtractValueInst::Create(Ret, 0, "", Term)); in openIf()
199 push(Term->getSuccessor(1), ExtractValueInst::Create(Ret, 1, "", Term)); in openIf()
203 void SIAnnotateControlFlow::insertElse(BranchInst *Term) { in insertElse() argument
204 Value *Ret = CallInst::Create(Else, popSaved(), "", Term); in insertElse()
205 Term->setCondition(ExtractValueInst::Create(Ret, 0, "", Term)); in insertElse()
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DCoreEngine.cpp345 if (const Stmt *Term = B->getTerminator()) { in HandleBlockExit() local
346 switch (Term->getStmtClass()) { in HandleBlockExit()
357 HandleStaticInit(cast<DeclStmt>(Term), B, Pred); in HandleBlockExit()
361 HandleBranch(cast<BinaryOperator>(Term)->getLHS(), Term, B, Pred); in HandleBlockExit()
366 HandleBranch(cast<AbstractConditionalOperator>(Term)->getCond(), in HandleBlockExit()
367 Term, B, Pred); in HandleBlockExit()
374 HandleBranch(cast<ChooseExpr>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
391 HandleBranch(cast<DoStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
395 HandleBranch(cast<CXXForRangeStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
399 HandleBranch(cast<ForStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
[all …]
DBugReporter.cpp1298 static bool isLoop(const Stmt *Term) { in isLoop() argument
1299 switch (Term->getStmtClass()) { in isLoop()
1319 static bool isLoopJumpPastBody(const Stmt *Term, const BlockEdge *BE) { in isLoopJumpPastBody() argument
1320 if (!isLoop(Term)) in isLoopJumpPastBody()
1336 static const Stmt *getStmtBeforeCond(ParentMap &PM, const Stmt *Term, in getStmtBeforeCond() argument
1342 if (!isContainedByStmt(PM, Term, S)) in getStmtBeforeCond()
1350 static bool isInLoopBody(ParentMap &PM, const Stmt *S, const Stmt *Term) { in isInLoopBody() argument
1352 switch (Term->getStmtClass()) { in isInLoopBody()
1354 const CXXForRangeStmt *FR = cast<CXXForRangeStmt>(Term); in isInLoopBody()
1363 const ForStmt *FS = cast<ForStmt>(Term); in isInLoopBody()
[all …]
/external/llvm/lib/Transforms/Scalar/
DStructurizeCFG.cpp196 Value *buildCondition(BranchInst *Term, unsigned Idx, bool Invert);
359 BranchInst *Term = cast<BranchInst>(BB->getTerminator()); in analyzeLoops() local
361 for (BasicBlock *Succ : Term->successors()) in analyzeLoops()
406 Value *StructurizeCFG::buildCondition(BranchInst *Term, unsigned Idx, in buildCondition() argument
409 if (Term->isConditional()) { in buildCondition()
410 Cond = Term->getCondition(); in buildCondition()
436 BranchInst *Term = cast<BranchInst>((*PI)->getTerminator()); in gatherPredicates() local
437 for (unsigned i = 0, e = Term->getNumSuccessors(); i != e; ++i) { in gatherPredicates()
438 BasicBlock *Succ = Term->getSuccessor(i); in gatherPredicates()
444 if (Term->isConditional()) { in gatherPredicates()
[all …]
DCorrelatedValuePropagation.cpp394 Instruction *Term = FI->getTerminator(); in runOnFunction() local
395 switch (Term->getOpcode()) { in runOnFunction()
397 BBChanged |= processSwitch(cast<SwitchInst>(Term)); in runOnFunction()
400 auto *RI = cast<ReturnInst>(Term); in runOnFunction()
DPlaceSafepoints.cpp604 for (TerminatorInst *Term : PollLocations) { in runOnFunction()
620 for (unsigned i = 0; i < Term->getNumSuccessors(); i++) { in runOnFunction()
621 BasicBlock *Succ = Term->getSuccessor(i); in runOnFunction()
622 if (DT.dominates(Succ, Term->getParent())) { in runOnFunction()
633 BasicBlock *NewBB = SplitEdge(Term->getParent(), Header, &DT); in runOnFunction()
639 PollsNeeded.push_back(Term); in runOnFunction()
/external/llvm/lib/CodeGen/
DPHIElimination.cpp429 for (MachineBasicBlock::iterator Term = FirstTerm; in LowerPHINode() local
430 Term != opBlock.end(); ++Term) { in LowerPHINode()
431 if (Term->readsRegister(SrcReg)) in LowerPHINode()
432 KillInst = Term; in LowerPHINode()
489 for (MachineBasicBlock::iterator Term = FirstTerm; in LowerPHINode() local
490 Term != opBlock.end(); ++Term) { in LowerPHINode()
491 if (Term->readsRegister(SrcReg)) in LowerPHINode()
492 KillInst = Term; in LowerPHINode()
DAnalysis.cpp494 const TerminatorInst *Term = ExitBB->getTerminator(); in isInTailCallPosition() local
495 const ReturnInst *Ret = dyn_cast<ReturnInst>(Term); in isInTailCallPosition()
506 (!TM.Options.GuaranteedTailCallOpt || !isa<UnreachableInst>(Term))) in isInTailCallPosition()
/external/llvm/lib/ProfileData/
DCoverageMapping.cpp92 for (auto Term : Terms) { in simplify() local
93 if (Term.second <= 0) in simplify()
95 for (int I = 0; I < Term.second; ++I) in simplify()
97 C = Counter::getCounter(Term.first); in simplify()
100 Counter::getCounter(Term.first))); in simplify()
104 for (auto Term : Terms) { in simplify() local
105 if (Term.second >= 0) in simplify()
107 for (int I = 0; I < -Term.second; ++I) in simplify()
109 Counter::getCounter(Term.first))); in simplify()
/external/llvm/test/Transforms/ArgumentPromotion/
D2008-09-08-CGUpdateSelfEdge.ll3 define internal fastcc i32 @term_SharingList(i32* %Term, i32* %List) nounwind {
15 define i32 @term_Sharing(i32* %Term) nounwind {
/external/llvm/lib/Transforms/Utils/
DLoopUnroll.cpp423 BranchInst *Term = cast<BranchInst>(Latches[i]->getTerminator()); in UnrollLoop() local
451 Term->setSuccessor(!ContinueOnTrue, Dest); in UnrollLoop()
467 BranchInst::Create(Dest, Term); in UnrollLoop()
468 Term->eraseFromParent(); in UnrollLoop()
475 BranchInst *Term = cast<BranchInst>(Latches[i]->getTerminator()); in UnrollLoop() local
476 if (Term->isUnconditional()) { in UnrollLoop()
477 BasicBlock *Dest = Term->getSuccessor(0); in UnrollLoop()
/external/clang/lib/Sema/
DAnalysisBasedWarnings.cpp711 const Stmt *Term = I->Terminator; in DiagUninitUse() local
727 switch (Term ? Term->getStmtClass() : Stmt::DeclStmtClass) { in DiagUninitUse()
735 const IfStmt *IS = cast<IfStmt>(Term); in DiagUninitUse()
745 const ConditionalOperator *CO = cast<ConditionalOperator>(Term); in DiagUninitUse()
755 const BinaryOperator *BO = cast<BinaryOperator>(Term); in DiagUninitUse()
777 Range = cast<WhileStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse()
784 Range = cast<ForStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse()
800 Range = cast<CXXForRangeStmt>(Term)->getRangeInit()->getSourceRange(); in DiagUninitUse()
807 Range = cast<DoStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse()
816 Range = cast<CaseStmt>(Term)->getLHS()->getSourceRange(); in DiagUninitUse()
[all …]
/external/clang/lib/Analysis/
DCFGStmtMap.cpp74 if (Stmt *Term = B->getTerminator()) in Accumulate() local
75 SM[Term] = B; in Accumulate()
DReachableCode.cpp52 if (const Stmt *Term = B->getTerminator()) { in isTrivialDoWhile() local
53 if (const DoStmt *DS = dyn_cast<DoStmt>(Term)) { in isTrivialDoWhile()
254 if (const Stmt *Term = B->getTerminator()) { in shouldTreatSuccessorsAsReachable() local
255 if (isa<SwitchStmt>(Term)) in shouldTreatSuccessorsAsReachable()
258 if (isa<BinaryOperator>(Term)) { in shouldTreatSuccessorsAsReachable()
259 return isConfigurationValue(Term, PP); in shouldTreatSuccessorsAsReachable()
DUninitializedValues.cpp637 const Stmt *Term = Block->getTerminator(); in getUninitUse() local
639 Term) { in getUninitUse()
652 if (isa<SwitchStmt>(Term)) { in getUninitUse()
663 Branch.Terminator = Term; in getUninitUse()
/external/llvm/lib/Analysis/
DCFG.cpp74 const TerminatorInst *Term = BB->getTerminator(); in GetSuccessorNumber() local
76 unsigned e = Term->getNumSuccessors(); in GetSuccessorNumber()
80 if (Term->getSuccessor(i) == Succ) in GetSuccessorNumber()
/external/llvm/utils/TableGen/
DSequenceToOffsetTable.h117 const char *Term = "0") const {
127 OS << Term << ",\n";
/external/clang/lib/CodeGen/
DCGCleanup.cpp349 llvm::TerminatorInst *Term = Block->getTerminator(); in TransitionToCleanupSwitch() local
350 assert(Term && "can't transition block without terminator"); in TransitionToCleanupSwitch()
352 if (llvm::BranchInst *Br = dyn_cast<llvm::BranchInst>(Term)) { in TransitionToCleanupSwitch()
355 "cleanup.dest", Term); in TransitionToCleanupSwitch()
361 return cast<llvm::SwitchInst>(Term); in TransitionToCleanupSwitch()
527 llvm::TerminatorInst *Term = Exit->getTerminator(); in ForwardPrebranchedFallthrough() local
529 if (llvm::BranchInst *Br = dyn_cast<llvm::BranchInst>(Term)) { in ForwardPrebranchedFallthrough()
533 llvm::SwitchInst *Switch = cast<llvm::SwitchInst>(Term); in ForwardPrebranchedFallthrough()
/external/skia/include/core/
DSkGraphics.h27 static void Term() {} in Term() function
/external/skia/tools/
DiOSShell.cpp98 SkEvent::Term(); in application_term()
/external/skia/experimental/SimpleiOSApp/
DSimpleApp.mm45 SkEvent::Term();
/external/skia/tools/VisualBench/
DVisualBench.cpp189 SkEvent::Term(); in application_term()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DSubEngine.h68 virtual void processBranch(const Stmt *Condition, const Stmt *Term,
/external/skia/example/
DHelloWorld.cpp26 SkEvent::Term(); in application_term()
/external/llvm/include/llvm/IR/
DInstrTypes.h100 template <class Term, class BB> // Successor Iterator
111 Term TermInst;
113 typedef SuccIterator<Term, BB> Self;
143 explicit inline SuccIterator(Term T) : TermInst(T), idx(0) {} in SuccIterator()
145 inline SuccIterator(Term T, bool) : TermInst(T) { in SuccIterator()

123