MLIR
20.0.0git
|
Wrapper class with helper methods for accessing Builders defined in TableGen. More...
#include "mlir/TableGen/Builder.h"
Classes | |
class | Parameter |
This class represents a single parameter to a builder method. More... | |
Public Member Functions | |
Builder (const llvm::Record *record, ArrayRef< SMLoc > loc) | |
Construct a builder from the given Record instance. More... | |
ArrayRef< Parameter > | getParameters () const |
Return a list of parameters used in this build method. More... | |
std::optional< StringRef > | getBody () const |
Return an optional string containing the body of the builder. More... | |
std::optional< StringRef > | getDeprecatedMessage () const |
Return the deprecation message of the builder. More... | |
Protected Attributes | |
const llvm::Record * | def |
The TableGen definition of this builder. More... | |
Wrapper class with helper methods for accessing Builders defined in TableGen.
mlir::tblgen::Builder::Builder | ( | const llvm::Record * | record, |
ArrayRef< SMLoc > | loc | ||
) |
Construct a builder from the given Record instance.
std::optional< StringRef > Builder::getBody | ( | ) | const |
Return an optional string containing the body of the builder.
Definition at line 84 of file Builder.cpp.
References def.
std::optional< StringRef > Builder::getDeprecatedMessage | ( | ) | const |
Return the deprecation message of the builder.
Empty optional if the builder is not deprecated.
Definition at line 89 of file Builder.cpp.
References def.
Return a list of parameters used in this build method.
Definition at line 68 of file Builder.h.
Referenced by mlir::tblgen::AttrOrTypeDef::AttrOrTypeDef().
|
protected |
The TableGen definition of this builder.
Definition at line 79 of file Builder.h.
Referenced by getBody(), mlir::tblgen::Builder::Parameter::getDefaultValue(), getDeprecatedMessage(), mlir::tblgen::AttrOrTypeBuilder::getReturnType(), and mlir::tblgen::AttrOrTypeBuilder::hasInferredContextParameter().