Command‐line parser that adds a selectable option for each registered pass.
Synopsis
Declared in <llvm/IR/LegacyPassNameParser.h>
class PassNameParser
: public PassRegistrationListener
, public cl::parser<PassInfo const*>
Description
Makes use of the pass registration mechanism to automatically add a command line argument to opt for each pass.
Base Classes
Name |
Description |
Callback interface notified when passes are registered or enumerated. |
|
Default mapping parser for custom / enum‐like option data types. |
Type Aliases
Name |
Description |
Data type produced by a successful parse. |
Member Functions
Name |
Description |
|
Construct a pass‐name parser bound to the given command‐line option. |
|
Destroy the parser and unregister as a pass registration listener. |
Add an entry to the mapping table. |
|
|
Return the help description for alternative |
|
Return how many literal alternatives are registered. |
|
Return the command‐line name of alternative |
|
Return the stored value associated with alternative |
Return true if |
|
|
Return true if |
Initialize the base parser and add all passes registered so far. |
|
Parse |
|
|
Add |
|
Add |
|
Print this option's help text after sorting the pass name table. |
Remove the specified option. |
Protected Types
Name |
Description |
One literal name/value/help entry in the mapping table. |