LLVM 20.0.0git
Classes | Public Member Functions | Friends | List of all members
llvm::sandboxir::EraseFromParent Class Reference

#include "llvm/SandboxIR/Tracker.h"

Inheritance diagram for llvm::sandboxir::EraseFromParent:
Inheritance graph
[legend]

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_ostreamoperator<< (raw_ostream &OS, const EraseFromParent &C)
 

Detailed Description

Definition at line 150 of file Tracker.h.

Constructor & Destructor Documentation

◆ EraseFromParent()

EraseFromParent::EraseFromParent ( std::unique_ptr< sandboxir::Value > &&  IPtr)

Member Function Documentation

◆ accept()

void EraseFromParent::accept ( )
finalvirtual

This runs when changes get accepted.

Implements llvm::sandboxir::IRChangeBase.

Definition at line 106 of file Tracker.cpp.

◆ dump() [1/2]

void EraseFromParent::dump ( ) const
finalvirtual

Implements llvm::sandboxir::IRChangeBase.

Definition at line 134 of file Tracker.cpp.

References llvm::dbgs(), and dump().

Referenced by dump().

◆ dump() [2/2]

void llvm::sandboxir::EraseFromParent::dump ( raw_ostream OS) const
inlinefinalvirtual

Implements llvm::sandboxir::IRChangeBase.

Definition at line 173 of file Tracker.h.

References OS.

◆ revert()

void EraseFromParent::revert ( Tracker Tracker)
finalvirtual

Friends And Related Function Documentation

◆ operator<<

raw_ostream & operator<< ( raw_ostream OS,
const EraseFromParent C 
)
friend

Definition at line 175 of file Tracker.h.


The documentation for this class was generated from the following files: