reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/IR/BasicBlock.h
  121   const Instruction *getTerminator() const LLVM_READONLY;

References

include/llvm/Analysis/CFGPrinter.h
  130     if (const BranchInst *BI = dyn_cast<BranchInst>(Node->getTerminator()))
  135     if (const SwitchInst *SI = dyn_cast<SwitchInst>(Node->getTerminator())) {
  152     const Instruction *TI = Node->getTerminator();
include/llvm/IR/BasicBlock.h
  124         static_cast<const BasicBlock *>(this)->getTerminator());
include/llvm/IR/CFG.h
  270   return succ_const_iterator(BB->getTerminator());
  276   return succ_const_iterator(BB->getTerminator(), true);
include/llvm/IR/Statepoint.h
  351     assert(InvokeBB->getTerminator() &&
  353     assert(isStatepoint(InvokeBB->getTerminator()));
  355     return cast<CallBase>(InvokeBB->getTerminator());
lib/Analysis/BranchProbabilityInfo.cpp
  144   const Instruction *TI = BB->getTerminator();
  176   const Instruction *TI = BB->getTerminator();
  211   const Instruction *TI = BB->getTerminator();
  255   const Instruction *TI = BB->getTerminator();
  357   const Instruction *TI = BB->getTerminator();
  401   const BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator());
  492   const BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator());
  661   const BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator());
  779   const BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator());
  821   const InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator());
  986     if (BB->getTerminator()->getNumSuccessors() < 2)
lib/Analysis/CFG.cpp
   74   const Instruction *Term = BB->getTerminator();
lib/Analysis/CodeMetrics.cpp
  177   if (isa<ReturnInst>(BB->getTerminator()))
  191   notDuplicatable |= isa<IndirectBrInst>(BB->getTerminator());
lib/Analysis/MustExecute.cpp
  122   auto *BI = dyn_cast<BranchInst>(CondExitBlock->getTerminator());
lib/Analysis/ScalarEvolution.cpp
 7675                                        Predecessor->getTerminator(), &DT);
lib/Analysis/ScalarEvolutionExpander.cpp
 2443     if (InsertionPoint->getParent()->getTerminator() == InsertionPoint)
lib/Analysis/ValueTracking.cpp
 5403   if (!match(PredBB->getTerminator(), m_Br(m_Value(PredCond), TrueBB, FalseBB)))
lib/CodeGen/Analysis.cpp
  515   const Instruction *Term = ExitBB->getTerminator();
lib/CodeGen/ImplicitNullChecks.cpp
  466     BranchMD = BB->getTerminator()->getMetadata(LLVMContext::MD_make_implicit);
lib/CodeGen/MachineLoopInfo.cpp
   98       if (DebugLoc DL = PHeadBB->getTerminator()->getDebugLoc())
  105       return HeadBB->getTerminator()->getDebugLoc();
lib/CodeGen/MachinePipeliner.cpp
  271   const Instruction *TI = BBLK->getTerminator();
lib/CodeGen/MachineSink.cpp
  737       !PredBB->getTerminator()->getMetadata(LLVMContext::MD_make_implicit))
lib/CodeGen/MachineVerifier.cpp
  667         BB && isa<SwitchInst>(BB->getTerminator())) &&
lib/CodeGen/SelectionDAG/FastISel.cpp
 2252   const Instruction *TI = LLVMBB->getTerminator();
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 9928   const Instruction *TI = LLVMBB->getTerminator();
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
  486       const Instruction *Term = BB.getTerminator();
lib/CodeGen/StackProtector.cpp
  545   return HasPrologue && !HasIRCheck && isa<ReturnInst>(BB.getTerminator());
lib/CodeGen/WinEHPrepare.cpp
  220   const Instruction *TI = BB->getTerminator();
lib/ExecutionEngine/Orc/SpeculateAnalyses.cpp
   37     if (findCallInst(*BB.getTerminator()) ||
   65   if (auto II = dyn_cast<InvokeInst>(BB->getTerminator()))
lib/IR/BasicBlock.cpp
  391   auto *Term = getTerminator();
  480   const Instruction *TI = getTerminator();
lib/IR/Dominators.cpp
   43   const Instruction *TI = Start->getTerminator();
lib/IR/SafepointIRVerifier.cpp
  136       const Instruction *TI = BB->getTerminator();
lib/IR/Verifier.cpp
 4515       Assert(InvokeBB->getTerminator(), "safepoint block should be well formed",
 4517       Assert(isStatepoint(InvokeBB->getTerminator()),
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
  928   const Instruction *Term = BB->getTerminator();
lib/Target/Hexagon/HexagonCommonGEP.cpp
  751     return B->empty() || (&*B->begin() == B->getTerminator());
lib/Target/Lanai/LanaiAsmPrinter.cpp
  223     if (isa<SwitchInst>(B->getTerminator()))
lib/Target/Mips/MipsAsmPrinter.cpp
  482     if (isa<SwitchInst>(bb->getTerminator()))
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
  428               PBB->getTerminator()->getMetadata(LLVMContext::MD_loop)) {
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
  522   const Instruction *BBTerm = BB->getTerminator();
lib/Transforms/IPO/Attributor.cpp
  221         if (LivenessAA->isAssumedDead(IncomingBB->getTerminator())) {
lib/Transforms/IPO/DeadArgumentElimination.cpp
  519     if (const ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) {
lib/Transforms/IPO/HotColdSplitting.cpp
   99   const Instruction *I = BB.getTerminator();
  136   auto Term = BB.getTerminator();
lib/Transforms/IPO/PruneEH.cpp
  109         const Instruction *TI = BB.getTerminator();
lib/Transforms/InstCombine/InstCombineCompares.cpp
 4848   auto *BI = dyn_cast_or_null<BranchInst>(BB->getTerminator());
lib/Transforms/Scalar/GVNHoist.cpp
  356     if (BB->getTerminator()->mayThrow()) {
lib/Transforms/Scalar/LICM.cpp
 1336       if (isa<CatchSwitchInst>(BB->getTerminator()))
lib/Transforms/Scalar/LoopStrengthReduce.cpp
 3432         if (UseBB->getTerminator()->isEHPad())
 3435         if (isa<CatchSwitchInst>(UserInst->getParent()->getTerminator()))
lib/Transforms/Utils/CloneFunction.cpp
  383   const Instruction *OldTI = BB->getTerminator();
  432     const Instruction *TI = BB->getTerminator();
lib/Transforms/Utils/CodeExtractor.cpp
 1595     const Instruction *Term = BB.getTerminator();
lib/Transforms/Utils/FunctionComparator.cpp
  869     const Instruction *TermL = BBL->getTerminator();
  870     const Instruction *TermR = BBR->getTerminator();
  940     const Instruction *Term = BB->getTerminator();
lib/Transforms/Utils/LoopUnrollPeel.cpp
   90       const BranchInst *T = dyn_cast<BranchInst>(Latch->getTerminator());
lib/Transforms/Utils/SimplifyCFG.cpp
 1483     auto *Succ = I0->getParent()->getTerminator()->getSuccessor(0);