Searched refs:Term (Results 1 - 25 of 66) sorted by relevance

123

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIAnnotateControlFlow.cpp94 void openIf(BranchInst *Term);
96 void insertElse(BranchInst *Term);
100 BranchInst *Term);
102 void handleLoop(BranchInst *Term);
210 void SIAnnotateControlFlow::openIf(BranchInst *Term) { argument
211 if (isUniform(Term))
214 Value *Ret = CallInst::Create(If, Term->getCondition(), "", Term);
215 Term->setCondition(ExtractValueInst::Create(Ret, 0, "", Term));
220 insertElse(BranchInst *Term) argument
230 handleLoopCondition( Value *Cond, PHINode *Broken, llvm::Loop *L, BranchInst *Term) argument
258 handleLoop(BranchInst *Term) argument
334 BranchInst *Term = dyn_cast<BranchInst>(BB->getTerminator()); local
[all...]
H A DSIPreEmitPeephole.cpp157 for (MachineInstr &Term : Parent->terminators()) {
159 if (Term.isBranch())
160 ToRemove.push_back(&Term);
162 Found = Term.isIdenticalTo(MI);
H A DSIOptimizeExecMaskingPreRA.cpp240 MachineInstr &Term = MBB.back(); local
241 if (Term.getOpcode() != AMDGPU::S_ENDPGM || Term.getNumOperands() != 1)
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCoreEngine.cpp296 if (const Stmt *Term = B->getTerminatorStmt()) {
297 switch (Term->getStmtClass()) {
303 cast<CXXBindTemporaryExpr>(Term), B, Pred);
308 HandleStaticInit(cast<DeclStmt>(Term), B, Pred);
312 HandleBranch(cast<BinaryOperator>(Term)->getLHS(), Term, B, Pred);
317 HandleBranch(cast<AbstractConditionalOperator>(Term)->getCond(),
318 Term, B, Pred);
325 HandleBranch(cast<ChooseExpr>(Term)->getCond(), Term,
423 HandleBranch(const Stmt *Cond, const Stmt *Term, const CFGBlock * B, ExplodedNode *Pred) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DDivergenceAnalysis.cpp110 bool DivergenceAnalysis::updateTerminator(const Instruction &Term) const {
111 if (Term.getNumSuccessors() <= 1)
113 if (auto *BranchTerm = dyn_cast<BranchInst>(&Term)) {
117 if (auto *SwitchTerm = dyn_cast<SwitchInst>(&Term)) {
120 if (isa<InvokeInst>(Term)) {
305 void DivergenceAnalysis::propagateBranchDivergence(const Instruction &Term) { argument
306 LLVM_DEBUG(dbgs() << "propBranchDiv " << Term.getParent()->getName() << "\n");
308 markDivergent(Term);
311 if (!DT.isReachableFromEntry(Term.getParent()))
314 const auto *BranchLoop = LI.getLoopFor(Term
[all...]
H A DSyncDependenceAnalysis.cpp358 SyncDependenceAnalysis::join_blocks(const Instruction &Term) { argument
360 if (Term.getNumSuccessors() < 1) {
365 auto ItCached = CachedBranchJoins.find(&Term);
371 const auto &TermBlock = *Term.getParent();
373 TermBlock, successors(Term.getParent()), LI.getLoopFor(&TermBlock));
375 auto ItInserted = CachedBranchJoins.emplace(&Term, std::move(JoinBlocks));
H A DCFG.cpp72 const Instruction *Term = BB->getTerminator(); local
74 unsigned e = Term->getNumSuccessors();
78 if (Term->getSuccessor(i) == Succ)
/freebsd-13-stable/contrib/llvm-project/llvm/utils/TableGen/
H A DSequenceToOffsetTable.h202 const char *Term = "0") const {
212 OS << Term << ",\n"; local
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DStructurizeCFG.cpp270 Value *buildCondition(BranchInst *Term, unsigned Idx, bool Invert);
431 BranchInst *Term = cast<BranchInst>(BB->getTerminator()); local
433 for (BasicBlock *Succ : Term->successors())
440 Value *StructurizeCFG::buildCondition(BranchInst *Term, unsigned Idx, argument
443 if (Term->isConditional()) {
444 Cond = Term->getCondition();
467 BranchInst *Term = cast<BranchInst>(P->getTerminator()); local
468 for (unsigned i = 0, e = Term->getNumSuccessors(); i != e; ++i) {
469 BasicBlock *Succ = Term->getSuccessor(i);
475 if (Term
671 Instruction *Term = BB->getTerminator(); local
[all...]
H A DPlaceSafepoints.cpp350 Instruction *Term = Pred->getTerminator(); local
352 LLVM_DEBUG(dbgs() << "[LSP] terminator instruction: " << *Term);
354 PollLocations.push_back(Term);
536 for (Instruction *Term : PollLocations) {
552 for (unsigned i = 0; i < Term->getNumSuccessors(); i++) {
553 BasicBlock *Succ = Term->getSuccessor(i);
554 if (DT.dominates(Succ, Term->getParent())) {
565 BasicBlock *NewBB = SplitEdge(Term->getParent(), Header, &DT);
571 PollsNeeded.push_back(Term);
H A DADCE.cpp210 static bool isUnconditionalBranch(Instruction *Term) { argument
211 auto *BR = dyn_cast<BranchInst>(Term);
281 Instruction *Term = BB->getTerminator(); local
282 if (isLive(Term))
288 markLive(Term);
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DSyncDependenceAnalysis.h46 /// divergence in \p Term.
48 /// The set of blocks which are reachable by disjoint paths from \p Term.
50 /// one from \p Term to the loop exit and another from \p Term to the loop
52 /// If L is the parent loop of \p Term and an exit of L is in the returned
54 const ConstBlockSet &join_blocks(const Instruction &Term);
H A DDivergenceAnalysis.h85 bool updateTerminator(const Instruction &Term) const;
139 /// Term.
140 void propagateBranchDivergence(const Instruction &Term);
/freebsd-13-stable/usr.sbin/ppp/
H A Dprompt.c99 fprintf(p->Term, "\n");
129 fprintf(p->Term, "%s%s%s> ", pconnect, pauth, shostname);
130 fflush(p->Term);
336 p->Term = stdout;
345 p->Term = fdopen(fd, "a+");
366 if (p->Term != stdout) {
367 fclose(p->Term);
413 vfprintf(p->Term, pfmt, ap);
414 fflush(p->Term);
481 if (p->Term
[all...]
H A Dccp.h134 void (*Term)(void *); member in struct:ccp_algorithm::__anon16629
145 void (*Term)(void *); member in struct:ccp_algorithm::__anon16630
H A Dprompt.h46 FILE *Term; /* sits on top of fd_out */ member in struct:prompt
/freebsd-13-stable/contrib/llvm-project/clang/lib/Analysis/
H A DCFGStmtMap.cpp73 if (Stmt *Term = B->getTerminatorStmt())
74 SM[Term] = B;
H A DReachableCode.cpp52 if (const Stmt *Term = B->getTerminatorStmt()) {
53 if (const DoStmt *DS = dyn_cast<DoStmt>(Term)) {
296 if (const Stmt *Term = B->getTerminatorStmt()) {
297 if (isa<SwitchStmt>(Term))
300 if (isa<BinaryOperator>(Term)) {
301 return isConfigurationValue(Term, PP);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopUnroll.cpp702 auto *Term = cast<BranchInst>(Src->getTerminator());
708 Term->setSuccessor(!(*ContinueOnTrue), Dest);
723 BranchInst::Create(Dest, Term);
724 Term->eraseFromParent();
798 BranchInst *Term = cast<BranchInst>(Latches.back()->getTerminator()); local
799 new UnreachableInst(Term->getContext(), Term);
800 Term->eraseFromParent();
830 Instruction *Term = ExitingBlocks[i]->getTerminator(); local
831 if (isa<BranchInst>(Term)
855 BranchInst *Term = dyn_cast<BranchInst>(Latch->getTerminator()); local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DPHIElimination.cpp474 for (MachineBasicBlock::iterator Term = FirstTerm;
475 Term != opBlock.end(); ++Term) {
476 if (Term->readsRegister(SrcReg))
477 KillInst = Term;
534 for (MachineBasicBlock::iterator Term = FirstTerm;
535 Term != opBlock.end(); ++Term) {
536 if (Term->readsRegister(SrcReg))
537 KillInst = Term;
[all...]
/freebsd-13-stable/sys/contrib/dev/acpica/compiler/
H A Daslrules.y242 Term
338 | TermList Term {$$ = TrLinkPeerOp (
340 | TermList Term ';' {$$ = TrLinkPeerOp (
342 | TermList ';' Term {$$ = TrLinkPeerOp (
344 | TermList ';' Term ';' {$$ = TrLinkPeerOp (
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ConditionOptimizer.cpp148 MachineBasicBlock::iterator Term = MBB->getFirstTerminator(); local
149 if (Term == MBB->end())
152 if (Term->getOpcode() != AArch64::Bcc)
161 for (MachineBasicBlock::iterator B = MBB->begin(), It = Term; It != B;) {
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyCFGSort.cpp154 for (const MachineInstr &Term : MBB->terminators()) {
156 AnyBarrier |= Term.isBarrier();
158 AllAnalyzable &= Term.isBranch() && !Term.isIndirectBranch();
/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp415 const Stmt *Term = B->getTerminatorStmt(); local
416 if (Term && isa<CXXTryStmt>(Term))
464 const Stmt *Term = B.getTerminatorStmt(); local
465 if (Term && isa<CXXTryStmt>(Term)) {
845 const Stmt *Term = I->Terminator; local
861 switch (Term ? Term->getStmtClass() : Stmt::DeclStmtClass) {
869 const IfStmt *IS = cast<IfStmt>(Term);
1103 const Stmt *Term = P->getTerminatorStmt(); local
1302 const Stmt *Term = B->getTerminatorStmt(); local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/
H A DBasicBlock.cpp369 auto *Term = getTerminator(); local
371 if (!Term)
375 assert(Term->getNumSuccessors() > 0);
378 return !Term->isExceptionalTerminator();

Completed in 293 milliseconds

123