LLVM 20.0.0git
Public Member Functions | Protected Attributes | Friends | List of all members
llvm::sandboxir::Pass Class Reference

The base class of a Sandbox IR Pass. More...

#include "llvm/SandboxIR/Pass.h"

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

Public Member Functions

 Pass (StringRef Name)
 Name can't contain any spaces or start with '-'.
 
virtual ~Pass ()
 
StringRef getName () const
 \Returns the name of the pass.
 
virtual void print (raw_ostream &OS) const
 
virtual LLVM_DUMP_METHOD void dump () const
 
virtual void printPipeline (raw_ostream &OS) const
 Similar to print() but adds a newline. Used for testing.
 

Protected Attributes

const std::string Name
 The pass name.
 

Friends

raw_ostreamoperator<< (raw_ostream &OS, const Pass &Pass)
 

Detailed Description

The base class of a Sandbox IR Pass.

Definition at line 42 of file Pass.h.

Constructor & Destructor Documentation

◆ Pass()

llvm::sandboxir::Pass::Pass ( StringRef  Name)
inline

Name can't contain any spaces or start with '-'.

Definition at line 50 of file Pass.h.

References assert(), and Name.

◆ ~Pass()

virtual llvm::sandboxir::Pass::~Pass ( )
inlinevirtual

Definition at line 55 of file Pass.h.

Member Function Documentation

◆ dump()

virtual LLVM_DUMP_METHOD void llvm::sandboxir::Pass::dump ( ) const
virtual

◆ getName()

StringRef llvm::sandboxir::Pass::getName ( ) const
inline

◆ print()

virtual void llvm::sandboxir::Pass::print ( raw_ostream OS) const
inlinevirtual

◆ printPipeline()

virtual void llvm::sandboxir::Pass::printPipeline ( raw_ostream OS) const
inlinevirtual

Friends And Related Function Documentation

◆ operator<<

raw_ostream & operator<< ( raw_ostream OS,
const Pass Pass 
)
friend

Definition at line 59 of file Pass.h.

Member Data Documentation

◆ Name

const std::string llvm::sandboxir::Pass::Name
protected

The pass name.

This is also used as a command-line flag and should not contain whitespaces.

Definition at line 46 of file Pass.h.

Referenced by getName(), Pass(), print(), and printPipeline().


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