class GISelChangeObserver

Declaration

class GISelChangeObserver { /* full declaration omitted */ };

Declared at: llvm/include/llvm/CodeGen/GlobalISel/GISelChangeObserver.h:28

Method Overview

Methods

virtual void changedInstr(llvm::MachineInstr& MI)

Description

This instruction was mutated in some way.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/GISelChangeObserver.h:48

Parameters

llvm::MachineInstr& MI

void changingAllUsesOfReg(
    const llvm::MachineRegisterInfo& MRI,
    unsigned int Reg)

Description

All the instructions using the given register are being changed. For convenience, finishedChangingAllUsesOfReg() will report the completion of the changes. The use list may change between this call and finishedChangingAllUsesOfReg().

Declared at: llvm/include/llvm/CodeGen/GlobalISel/GISelChangeObserver.h:54

Parameters

const llvm::MachineRegisterInfo& MRI
unsigned int Reg

virtual void changingInstr(llvm::MachineInstr& MI)

Description

This instruction is about to be mutated in some way.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/GISelChangeObserver.h:45

Parameters

llvm::MachineInstr& MI

virtual void createdInstr(llvm::MachineInstr& MI)

Description

An instruction has been created and inserted into the function. Note that the instruction might not be a fully fledged instruction at this point and won't be if the MachineFunction::Delegate is calling it. This is because the delegate only sees the construction of the MachineInstr before operands have been added.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/GISelChangeObserver.h:42

Parameters

llvm::MachineInstr& MI

virtual void erasingInstr(llvm::MachineInstr& MI)

Description

An instruction is about to be erased.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/GISelChangeObserver.h:35

Parameters

llvm::MachineInstr& MI

void finishedChangingAllUsesOfReg()

Description

All instructions reported as changing by changingAllUsesOfReg() have finished being changed.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/GISelChangeObserver.h:57

virtual ~GISelChangeObserver()

Declared at: llvm/include/llvm/CodeGen/GlobalISel/GISelChangeObserver.h:32