struct PassInfoMixin

Declaration

template <typename DerivedT>
struct PassInfoMixin { /* full declaration omitted */ };

Description

A CRTP mix-in to automatically provide informational APIs needed for passes. This provides some boilerplate for types that are passes.

Declared at: llvm/include/llvm/IR/PassManager.h:371

Templates

DerivedT

Method Overview

  • public static llvm::StringRef name()
  • public void printPipeline(llvm::raw_ostream & OS, function_ref<llvm::StringRef (llvm::StringRef)> MapClassName2PassName)

Methods

static llvm::StringRef name()

Description

Gets the name of the pass we are mixed into.

Declared at: llvm/include/llvm/IR/PassManager.h:373

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

Declared at: llvm/include/llvm/IR/PassManager.h:381

Parameters

llvm::raw_ostream& OS
function_ref<llvm::StringRef(llvm::StringRef)> MapClassName2PassName