struct RegisterPass

Declaration

template <typename passName>
struct RegisterPass : public PassInfo { /* full declaration omitted */ };

Description

RegisterPass <t > template - This template class is used to notify the system that a Pass is available for use, and registers it into the internal database maintained by the PassManager. Unless this template is used, opt, for example will not be able to see the pass and attempts to create the pass will fail. This template is used in the follow manner (at global scope, in your .cpp file): static RegisterPass <YourPassClassName > tmp("passopt", "My Pass Name"); This statement will cause your pass to be created by calling the default constructor exposed by the pass.

Declared at: llvm/include/llvm/PassSupport.h:94

Inherits from: PassInfo

Templates

passName

Member Variables

Method Overview

  • public RegisterPass<passName>(llvm::StringRef PassArg, llvm::StringRef Name, bool CFGOnly = false, bool is_analysis = false)

Inherited from PassInfo:

Methods

ΒΆRegisterPass<passName>(llvm::StringRef PassArg,
                       llvm::StringRef Name,
                       bool CFGOnly = false,
                       bool is_analysis = false)

Declared at: llvm/include/llvm/PassSupport.h:96

Parameters

llvm::StringRef PassArg
llvm::StringRef Name
bool CFGOnly = false
bool is_analysis = false