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

#include "llvm/SandboxIR/Tracker.h"

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

Public Member Functions

 RemoveFromParent (Instruction *RemovedI)
 
void revert (Tracker &Tracker) final
 This runs when changes get reverted.
 
void accept () final
 This runs when changes get accepted.
 
InstructiongetInstruction () const
 
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
 

Detailed Description

Definition at line 182 of file Tracker.h.

Constructor & Destructor Documentation

◆ RemoveFromParent()

RemoveFromParent::RemoveFromParent ( Instruction RemovedI)

Member Function Documentation

◆ accept()

void llvm::sandboxir::RemoveFromParent::accept ( )
inlinefinalvirtual

This runs when changes get accepted.

Implements llvm::sandboxir::IRChangeBase.

Definition at line 191 of file Tracker.h.

◆ dump() [1/2]

void RemoveFromParent::dump ( ) const
finalvirtual

Implements llvm::sandboxir::IRChangeBase.

Definition at line 157 of file Tracker.cpp.

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

Referenced by dump().

◆ dump() [2/2]

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

Implements llvm::sandboxir::IRChangeBase.

Definition at line 194 of file Tracker.h.

References OS.

◆ getInstruction()

Instruction * llvm::sandboxir::RemoveFromParent::getInstruction ( ) const
inline

Definition at line 192 of file Tracker.h.

◆ revert()

void RemoveFromParent::revert ( Tracker Tracker)
finalvirtual

This runs when changes get reverted.

Implements llvm::sandboxir::IRChangeBase.

Definition at line 147 of file Tracker.cpp.

References llvm::sandboxir::Instruction::insertBefore(), and llvm::sandboxir::Instruction::insertInto().


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