class GISelCSEInfo
Declaration
class GISelCSEInfo : public GISelChangeObserver { /* full declaration omitted */ };
Declared at: llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:71
Inherits from: GISelChangeObserver
Method Overview
- public GISelCSEInfo()
- public void analyze(llvm::MachineFunction & MF)
- public void changedInstr(llvm::MachineInstr & MI)
- public void changingInstr(llvm::MachineInstr & MI)
- public void countOpcodeHit(unsigned int Opc)
- public void createdInstr(llvm::MachineInstr & MI)
- public void erasingInstr(llvm::MachineInstr & MI)
- public void handleRecordedInst(llvm::MachineInstr * MI)
- public void handleRecordedInsts()
- public void handleRemoveInst(llvm::MachineInstr * MI)
- public void print()
- public void recordNewInstruction(llvm::MachineInstr * MI)
- public void releaseMemory()
- public void setCSEConfig(int Opt)
- public void setMF(llvm::MachineFunction & MF)
- public bool shouldCSE(unsigned int Opc) const
- public virtual ~GISelCSEInfo()
Inherited from GISelChangeObserver:
- public changedInstr
- public changingAllUsesOfReg
- public changingInstr
- public createdInstr
- public erasingInstr
- public finishedChangingAllUsesOfReg
Methods
¶GISelCSEInfo()
GISelCSEInfo()
Declared at: llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:117
¶void analyze(llvm::MachineFunction& MF)
void analyze(llvm::MachineFunction& MF)
Declared at: llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:150
Parameters
¶void changedInstr(llvm::MachineInstr& MI)
void changedInstr(llvm::MachineInstr& MI)
Description
This instruction was mutated in some way.
Declared at: llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:160
Parameters
¶void changingInstr(llvm::MachineInstr& MI)
void changingInstr(llvm::MachineInstr& MI)
Description
This instruction is about to be mutated in some way.
Declared at: llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:159
Parameters
¶void countOpcodeHit(unsigned int Opc)
void countOpcodeHit(unsigned int Opc)
Declared at: llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:152
Parameters
- unsigned int Opc
¶void createdInstr(llvm::MachineInstr& MI)
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/CSEInfo.h:158
Parameters
¶void erasingInstr(llvm::MachineInstr& MI)
void erasingInstr(llvm::MachineInstr& MI)
Description
An instruction is about to be erased.
Declared at: llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:157
Parameters
¶void handleRecordedInst(llvm::MachineInstr* MI)
void handleRecordedInst(llvm::MachineInstr* MI)
Description
Use this callback to inform CSE about a newly fully created instruction.
Declared at: llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:131
Parameters
¶void handleRecordedInsts()
void handleRecordedInsts()
Description
Use this callback to insert all the recorded instructions. At this point, all of these insts need to be fully constructed and should not be missing any operands.
Declared at: llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:136
¶void handleRemoveInst(llvm::MachineInstr* MI)
void handleRemoveInst(llvm::MachineInstr* MI)
Description
Remove this inst from the CSE map. If this inst has not been inserted yet, it will be removed from the Tempinsts list if it exists.
Declared at: llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:140
Parameters
¶void print()
void print()
Declared at: llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:154
¶void recordNewInstruction(llvm::MachineInstr* MI)
void recordNewInstruction(llvm::MachineInstr* MI)
Description
Records a newly created inst in a list and lazily insert it to the CSEMap. Sometimes, this method might be called with a partially constructed MachineInstr,
Declared at: llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:128
Parameters
¶void releaseMemory()
void releaseMemory()
Declared at: llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:142
¶void setCSEConfig(int Opt)
void setCSEConfig(int Opt)
Declared at: llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:144
Parameters
- int Opt
¶void setMF(llvm::MachineFunction& MF)
void setMF(llvm::MachineFunction& MF)
Declared at: llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:121
Parameters
¶bool shouldCSE(unsigned int Opc) const
bool shouldCSE(unsigned int Opc) const
Declared at: llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:148
Parameters
- unsigned int Opc
¶virtual ~GISelCSEInfo()
virtual ~GISelCSEInfo()
Declared at: llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:119