LLVM 20.0.0git
|
Similar to GenericSetter but the setters/getters have an index as their first argument. More...
#include "llvm/SandboxIR/Tracker.h"
Public Member Functions | |
GenericSetterWithIdx (InstrT *I, unsigned Idx) | |
void | revert (Tracker &Tracker) final |
This runs when changes get reverted. | |
void | accept () final |
This runs when changes get accepted. | |
void | dump (raw_ostream &OS) const final |
LLVM_DUMP_METHOD void | dump () const final |
Public Member Functions inherited from llvm::sandboxir::IRChangeBase | |
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 |
Similar to GenericSetter but the setters/getters have an index as their first argument.
This is commont in cases like: getOperand(unsigned Idx)
|
inline |
|
inlinefinalvirtual |
This runs when changes get accepted.
Implements llvm::sandboxir::IRChangeBase.
|
inlinefinalvirtual |
Implements llvm::sandboxir::IRChangeBase.
Definition at line 260 of file Tracker.h.
References llvm::dbgs(), and llvm::sandboxir::GenericSetterWithIdx< GetterFn, SetterFn >::dump().
Referenced by llvm::sandboxir::GenericSetterWithIdx< GetterFn, SetterFn >::dump().
|
inlinefinalvirtual |
|
inlinefinalvirtual |
This runs when changes get reverted.
Implements llvm::sandboxir::IRChangeBase.