LLVM 22.0.0git
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:
[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 46 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 54 of file Pass.h.

References assert(), and Name.

Referenced by llvm::sandboxir::FunctionPass::FunctionPass(), operator<<, and llvm::sandboxir::RegionPass::RegionPass().

◆ ~Pass()

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

Definition at line 59 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

◆ operator<<

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

Definition at line 63 of file Pass.h.

References Pass().

Member Data Documentation

◆ Name


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