LLVM 20.0.0git
Public Member Functions | List of all members
llvm::MachinePassRegistry< PassCtorTy > Class Template Reference

MachinePassRegistry - Track the registration of machine passes. More...

#include "llvm/CodeGen/MachinePassRegistry.h"

Inheritance diagram for llvm::MachinePassRegistry< PassCtorTy >:
Inheritance graph
[legend]

Public Member Functions

MachinePassRegistryNode< PassCtorTy > * getList ()
 
PassCtorTy getDefault ()
 
void setDefault (PassCtorTy C)
 
void setDefault (StringRef Name)
 setDefault - Set the default constructor by name.
 
void setListener (MachinePassRegistryListener< PassCtorTy > *L)
 
void Add (MachinePassRegistryNode< PassCtorTy > *Node)
 Add - Adds a function pass to the registration list.
 
void Remove (MachinePassRegistryNode< PassCtorTy > *Node)
 Remove - Removes a function pass from the registration list.
 

Detailed Description

template<typename PassCtorTy>
class llvm::MachinePassRegistry< PassCtorTy >

MachinePassRegistry - Track the registration of machine passes.

Definition at line 73 of file MachinePassRegistry.h.

Member Function Documentation

◆ Add()

template<typename PassCtorTy >
void llvm::MachinePassRegistry< PassCtorTy >::Add ( MachinePassRegistryNode< PassCtorTy > *  Node)
inline

Add - Adds a function pass to the registration list.

Definition at line 106 of file MachinePassRegistry.h.

References List, and llvm::MachinePassRegistryListener< PassCtorTy >::NotifyAdd().

◆ getDefault()

template<typename PassCtorTy >
PassCtorTy llvm::MachinePassRegistry< PassCtorTy >::getDefault ( )
inline

Definition at line 87 of file MachinePassRegistry.h.

◆ getList()

template<typename PassCtorTy >
MachinePassRegistryNode< PassCtorTy > * llvm::MachinePassRegistry< PassCtorTy >::getList ( )
inline

Definition at line 86 of file MachinePassRegistry.h.

References List.

Referenced by llvm::MachinePassRegistry< PassCtorTy >::setDefault().

◆ Remove()

template<typename PassCtorTy >
void llvm::MachinePassRegistry< PassCtorTy >::Remove ( MachinePassRegistryNode< PassCtorTy > *  Node)
inline

Remove - Removes a function pass from the registration list.

Definition at line 116 of file MachinePassRegistry.h.

References I, List, and llvm::MachinePassRegistryListener< PassCtorTy >::NotifyRemove().

◆ setDefault() [1/2]

template<typename PassCtorTy >
void llvm::MachinePassRegistry< PassCtorTy >::setDefault ( PassCtorTy  C)
inline

◆ setDefault() [2/2]

template<typename PassCtorTy >
void llvm::MachinePassRegistry< PassCtorTy >::setDefault ( StringRef  Name)
inline

setDefault - Set the default constructor by name.

Definition at line 90 of file MachinePassRegistry.h.

References assert(), llvm::MachinePassRegistry< PassCtorTy >::getList(), Name, and llvm::MachinePassRegistry< PassCtorTy >::setDefault().

◆ setListener()

template<typename PassCtorTy >
void llvm::MachinePassRegistry< PassCtorTy >::setListener ( MachinePassRegistryListener< PassCtorTy > *  L)
inline

Definition at line 102 of file MachinePassRegistry.h.


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