Joos1W Compiler Framework
All Classes Functions Typedefs Pages
utils::PassOptions Class Reference

Public Member Functions

 PassOptions (CLI::App &app)
 
 PassOptions (PassOptions const &)=delete
 
 PassOptions (PassOptions &&)=delete
 
PassOptionsoperator= (PassOptions const &)=delete
 
PassOptionsoperator= (PassOptions &&)=delete
 
CLI::Option * FindOption (std::string_view name)
 
CLI::Option * GetExistingOption (std::string name)
 
bool IsPassDisabled (Pass *p)
 
void EnablePass (std::string_view name, bool enabled=true)
 Enables or disables a pass given the pass name.
 
utils::Generator< std::pair< std::string_view, std::string_view > > PassNames ()
 Iterate through the pass names.
 
bool HasPass (std::string_view name)
 Get the description of a pass.
 

Friends

class Pass
 
class PassManager
 

Detailed Description

Definition at line 25 of file PassManager.h.

Member Function Documentation

◆ IsPassDisabled()

bool utils::PassOptions::IsPassDisabled ( Pass p)
Returns
True if the pass is disabled

Definition at line 11 of file PassManager.cc.

11  {
12  auto it = pass_descs_.find(std::string{p->Name()});
13  if(it == pass_descs_.end()) return false;
14  return !it->second.enabled;
15 }

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