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.

Parameters
  • 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.

Parameters
  • 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.

Parameters

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

Returns

Passes’ Name Vector.

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

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

Parameters

pass_names[in] Define the name of pass.

Returns

Pass Instance Vector.