llvm::MachineInstr::isTerminator

Returns true if this instruction part of the terminator for a basic block. Typically this is things like return and branch instructions.

Synopsis

Declared in <llvm/CodeGen/MachineInstr.h>

bool
isTerminator(QueryType Type = AnyInBundle) const;

Description

Various passes use this to insert code into the bottom of a basic block, but before control flow occurs.

Parameters

NameDescription
TypeAPI for querying MachineInstr properties. They are the same as MCInstrDesc queries but they are bundle aware.