llvm::MachineIRBuilder::buildBrIndirect

Build and insert G_BRINDIRECT Tgt

Synopsis

Declared in <llvm/CodeGen/GlobalISel/MachineIRBuilder.h>

MachineInstrBuilder
buildBrIndirect(Register Tgt);

Description

G_BRINDIRECT is an indirect branch to Tgt.

Return Value

a MachineInstrBuilder for the newly created instruction.

Parameters

NameDescription
TgtIndirect branch target.

Preconditions

  • setBasicBlock or setMI must have been called.
  • Tgt must be a generic virtual register with pointer type.