Class PassRegistry

Class Documentation

class PassRegistry

PassRegistry defined registration of Pass.

Public Functions

inline PassRegistry(const std::string &pass_name, const PassBasePtr &pass)

Constructor of PassRegistry to register pass.

参数
  • pass_name[in] Define the name of the pass, a string which should guarantee uniqueness.

  • pass[in] Define pass instance.

inline PassRegistry(PassPosition position, const std::vector<std::string> &names)

Constructor of PassRegistry to assign which passes are required for external extension.

参数
  • position[in] Define the place where assigned passes will run.

  • names[in] Define the names of the passes.

~PassRegistry() = default

Destructor of PassRegistrar.

Public Static Functions

static inline std::vector<std::string> GetOuterScheduleTask(PassPosition position)

Static method to obtain external scheduling task assigned by user.

参数

position[in] Define the place where assigned passes will run.

返回

Passes’ Name Vector.

static inline PassBasePtr GetPassFromStoreRoom(const std::string &pass_name)

Static method to obtain pass instance according to passes’ name.

参数

pass_name[in] Define the name of pass.

返回

Pass Instance Vector.