llvm::AnalyzeVirtRegInBundle

Analyze how the current instruction or bundle uses a virtual register.

Synopsis

Declared in <llvm/CodeGen/MachineInstrBundle.h>

VirtRegInfo
AnalyzeVirtRegInBundle(
    MachineInstr& MI,
    Register Reg,
    SmallVectorImpl<std::pair<MachineInstr*, unsigned int>>* Ops = nullptr);

Description

This function should not be called after operator++(), it expects a fresh iterator.

Return Value

A filled-in RegInfo struct.

Parameters

NameDescription
MIThe instruction or bundle header to analyze.
RegThe virtual register to analyze.
OpsWhen set, this vector will receive an (MI, OpNum) entry for each operand referring to Reg.