MLIR
20.0.0git
|
Wrapper class that represents a Tablegen AttrOrTypeBuilder. More...
#include "mlir/TableGen/AttrOrTypeDef.h"
Public Member Functions | |
std::optional< StringRef > | getReturnType () const |
Returns an optional builder return type. More... | |
bool | hasInferredContextParameter () const |
Returns true if this builder is able to infer the MLIRContext parameter. More... | |
Builder (const llvm::Record *record, ArrayRef< SMLoc > loc) | |
Construct a builder from the given Record instance. More... | |
Public Member Functions inherited from mlir::tblgen::Builder | |
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... | |
Additional Inherited Members | |
Protected Attributes inherited from mlir::tblgen::Builder | |
const llvm::Record * | def |
The TableGen definition of this builder. More... | |
Wrapper class that represents a Tablegen AttrOrTypeBuilder.
Definition at line 37 of file AttrOrTypeDef.h.
mlir::tblgen::Builder::Builder |
Construct a builder from the given Record instance.
std::optional< StringRef > AttrOrTypeBuilder::getReturnType | ( | ) | const |
Returns an optional builder return type.
Definition at line 31 of file AttrOrTypeDef.cpp.
References mlir::tblgen::Builder::def.
bool AttrOrTypeBuilder::hasInferredContextParameter | ( | ) | const |
Returns true if this builder is able to infer the MLIRContext parameter.
Definition at line 36 of file AttrOrTypeDef.cpp.
References mlir::tblgen::Builder::def.