LLVM  14.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::PassInfoMixin< DerivedT > Struct Template Reference

A CRTP mix-in to automatically provide informational APIs needed for passes. More...

#include "llvm/IR/PassManager.h"

Inherited by llvm::AnalysisInfoMixin< DerivedT >.

Public Member Functions

void printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName)
 

Static Public Member Functions

static StringRef name ()
 Gets the name of the pass we are mixed into. More...
 

Detailed Description

template<typename DerivedT>
struct llvm::PassInfoMixin< DerivedT >

A CRTP mix-in to automatically provide informational APIs needed for passes.

This provides some boilerplate for types that are passes.

Definition at line 374 of file PassManager.h.

Member Function Documentation

◆ name()

template<typename DerivedT >
static StringRef llvm::PassInfoMixin< DerivedT >::name ( )
inlinestatic

Gets the name of the pass we are mixed into.

Definition at line 376 of file PassManager.h.

◆ printPipeline()

template<typename DerivedT >
void llvm::PassInfoMixin< DerivedT >::printPipeline ( raw_ostream OS,
function_ref< StringRef(StringRef)>  MapClassName2PassName 
)
inline

Definition at line 384 of file PassManager.h.


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