LLVM 20.0.0git
|
The base class for IR Change classes. More...
#include "llvm/SandboxIR/Tracker.h"
Public Member Functions | |
virtual void | revert (Tracker &Tracker)=0 |
This runs when changes get reverted. | |
virtual void | accept ()=0 |
This runs when changes get accepted. | |
virtual | ~IRChangeBase ()=default |
virtual void | dump (raw_ostream &OS) const =0 |
virtual LLVM_DUMP_METHOD void | dump () const =0 |
Friends | |
class | Tracker |
raw_ostream & | operator<< (raw_ostream &OS, const IRChangeBase &C) |
|
virtualdefault |
|
pure virtual |
This runs when changes get accepted.
Implemented in llvm::sandboxir::UseSet, llvm::sandboxir::PHIRemoveIncoming, llvm::sandboxir::PHIAddIncoming, llvm::sandboxir::UseSwap, llvm::sandboxir::EraseFromParent, llvm::sandboxir::RemoveFromParent, llvm::sandboxir::GenericSetter< GetterFn, SetterFn >, llvm::sandboxir::GenericSetterWithIdx< GetterFn, SetterFn >, llvm::sandboxir::CatchSwitchAddHandler, llvm::sandboxir::SwitchAddCase, llvm::sandboxir::SwitchRemoveCase, llvm::sandboxir::MoveInstr, llvm::sandboxir::InsertIntoBB, and llvm::sandboxir::CreateAndInsertInst.
|
pure virtual |
Implemented in llvm::sandboxir::UseSet, llvm::sandboxir::PHIRemoveIncoming, llvm::sandboxir::PHIAddIncoming, llvm::sandboxir::UseSwap, llvm::sandboxir::EraseFromParent, llvm::sandboxir::RemoveFromParent, llvm::sandboxir::GenericSetter< GetterFn, SetterFn >, llvm::sandboxir::GenericSetterWithIdx< GetterFn, SetterFn >, llvm::sandboxir::CatchSwitchAddHandler, llvm::sandboxir::SwitchAddCase, llvm::sandboxir::SwitchRemoveCase, llvm::sandboxir::MoveInstr, llvm::sandboxir::InsertIntoBB, and llvm::sandboxir::CreateAndInsertInst.
|
pure virtual |
Implemented in llvm::sandboxir::UseSet, llvm::sandboxir::PHIRemoveIncoming, llvm::sandboxir::PHIAddIncoming, llvm::sandboxir::UseSwap, llvm::sandboxir::EraseFromParent, llvm::sandboxir::RemoveFromParent, llvm::sandboxir::GenericSetter< GetterFn, SetterFn >, llvm::sandboxir::GenericSetterWithIdx< GetterFn, SetterFn >, llvm::sandboxir::CatchSwitchAddHandler, llvm::sandboxir::SwitchAddCase, llvm::sandboxir::SwitchRemoveCase, llvm::sandboxir::MoveInstr, llvm::sandboxir::InsertIntoBB, and llvm::sandboxir::CreateAndInsertInst.
|
pure virtual |
This runs when changes get reverted.
Implemented in llvm::sandboxir::UseSet, llvm::sandboxir::PHIRemoveIncoming, llvm::sandboxir::PHIAddIncoming, llvm::sandboxir::UseSwap, llvm::sandboxir::EraseFromParent, llvm::sandboxir::RemoveFromParent, llvm::sandboxir::GenericSetter< GetterFn, SetterFn >, llvm::sandboxir::GenericSetterWithIdx< GetterFn, SetterFn >, llvm::sandboxir::CatchSwitchAddHandler, llvm::sandboxir::SwitchAddCase, llvm::sandboxir::SwitchRemoveCase, llvm::sandboxir::MoveInstr, llvm::sandboxir::InsertIntoBB, and llvm::sandboxir::CreateAndInsertInst.
|
friend |