llvm::MachineInstr::isTerminator

Return true if this instruction is part of a basic-block terminator.

Synopsis

Declared in <llvm/CodeGen/MachineInstr.h>

bool
isTerminator(QueryType Type = AnyInBundle) const;

Description

Typically returns and branches. Passes use this to insert code before control flow.

Return Value

True if this is a terminator.

Parameters

NameDescription
TypeHow to query when this instruction is part of a bundle.