9 #ifndef MLIR_TABLEGEN_PASS_H_
10 #define MLIR_TABLEGEN_PASS_H_
26 explicit PassOption(
const llvm::Record *def) : def(def) {}
50 const llvm::Record *def;
70 const llvm::Record *def;
80 explicit Pass(
const llvm::Record *def);
106 const llvm::Record *
getDef()
const {
return def; }
109 const llvm::Record *def;
110 std::vector<StringRef> dependentDialects;
111 std::vector<PassOption> options;
112 std::vector<PassStatistic> statistics;
StringRef getType() const
Return the C++ type of the option.
PassOption(const llvm::Record *def)
std::optional< StringRef > getDefaultValue() const
Return the default value of the option.
StringRef getCppVariableName() const
Return the name for the C++ option variable.
StringRef getDescription() const
Return the description for this option.
StringRef getArgument() const
Return the command line argument to use for this option.
bool isListOption() const
Flag indicating if this is a list option.
std::optional< StringRef > getAdditionalFlags() const
Return the additional flags passed to the option constructor.
PassStatistic(const llvm::Record *def)
StringRef getName() const
Return the name of the statistic.
StringRef getCppVariableName() const
Return the name for the C++ statistic variable.
StringRef getDescription() const
Return the description for this statistic.
Wrapper class providing helper methods for Passes defined in TableGen.
ArrayRef< PassStatistic > getStatistics() const
Return the statistics provided by this pass.
StringRef getArgument() const
Return the command line argument of the pass.
ArrayRef< StringRef > getDependentDialects() const
Return the dialects this pass needs to be registered.
StringRef getConstructor() const
Return the C++ constructor call to create an instance of this pass.
const llvm::Record * getDef() const
StringRef getDescription() const
Return the description of the pass.
StringRef getBaseClass() const
Return the name for the C++ base class.
Pass(const llvm::Record *def)
StringRef getSummary() const
Return the short 1-line summary of the pass.
ArrayRef< PassOption > getOptions() const
Return the options provided by this pass.
The OpAsmOpInterface, see OpAsmInterface.td for more details.
Include the generated interface declarations.