LLVM 20.0.0git
|
#include "llvm/SandboxIR/Tracker.h"
Public Member Functions | |
EraseFromParent (std::unique_ptr< sandboxir::Value > &&IPtr) | |
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 |
Friends | |
raw_ostream & | operator<< (raw_ostream &OS, const EraseFromParent &C) |
EraseFromParent::EraseFromParent | ( | std::unique_ptr< sandboxir::Value > && | IPtr | ) |
Definition at line 82 of file Tracker.cpp.
References assert(), llvm::enumerate(), llvm::sandboxir::Use::get(), I, llvm::is_sorted(), Operands, llvm::SmallVectorTemplateBase< T, bool >::push_back(), and llvm::reverse().
|
finalvirtual |
This runs when changes get accepted.
Implements llvm::sandboxir::IRChangeBase.
Definition at line 106 of file Tracker.cpp.
|
finalvirtual |
Implements llvm::sandboxir::IRChangeBase.
Definition at line 134 of file Tracker.cpp.
References llvm::dbgs(), and dump().
Referenced by dump().
|
inlinefinalvirtual |
|
finalvirtual |
This runs when changes get reverted.
Implements llvm::sandboxir::IRChangeBase.
Definition at line 111 of file Tracker.cpp.
References llvm::drop_begin(), llvm::PointerUnion< PTs >::dyn_cast(), llvm::enumerate(), llvm::PointerUnion< PTs >::get(), llvm::sandboxir::Tracker::getContext(), llvm::BasicBlock::insertInto(), Operands, and llvm::sandboxir::Context::registerValue().
|
friend |