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

#include "llvm/SandboxIR/Tracker.h"

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

Public Types

enum class  What { Value , Block }
 

Public Member Functions

 PHISetIncoming (PHINode *PHI, unsigned Idx, What What)
 
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
 

Detailed Description

Definition at line 99 of file Tracker.h.

Member Enumeration Documentation

◆ What

Enumerator
Value 
Block 

Definition at line 105 of file Tracker.h.

Constructor & Destructor Documentation

◆ PHISetIncoming()

PHISetIncoming::PHISetIncoming ( PHINode PHI,
unsigned  Idx,
What  What 
)

Definition at line 30 of file Tracker.cpp.

References Block, Idx, PHI, and Value.

Member Function Documentation

◆ accept()

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

This runs when changes get accepted.

Implements llvm::sandboxir::IRChangeBase.

Definition at line 111 of file Tracker.h.

◆ dump() [1/2]

void PHISetIncoming::dump ( ) const
finalvirtual

Implements llvm::sandboxir::IRChangeBase.

Definition at line 50 of file Tracker.cpp.

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

Referenced by dump().

◆ dump() [2/2]

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

Implements llvm::sandboxir::IRChangeBase.

Definition at line 113 of file Tracker.h.

References OS.

◆ revert()

void PHISetIncoming::revert ( Tracker Tracker)
finalvirtual

This runs when changes get reverted.

Implements llvm::sandboxir::IRChangeBase.

Definition at line 42 of file Tracker.cpp.

References llvm::sandboxir::PHINode::setIncomingBlock(), and llvm::sandboxir::PHINode::setIncomingValue().


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