Class ProgramPass

Inheritance Relationships

Derived Type

Class Documentation

class cinn::frontend::ProgramPass

Subclassed by cinn::frontend::pass::DecomposerPass

Public Functions

ProgramPass(const std::string &name)
void ApplyImpl(Program *prog, const common::Target &target) const
const std::string &name()

Public Static Functions

void Apply(Program *prog, const common::Target &target, const std::vector<std::string> &passes)

Apply a sequence of passes on a program.

Return

The program after being modified by the passes.

Parameters
  • prog: The input program to apply passes on.

  • passes: The sequence of pass.