MLIR  19.0.0git
Public Member Functions | List of all members
mlir::tblgen::AttrOrTypeBuilder Class Reference

Wrapper class that represents a Tablegen AttrOrTypeBuilder. More...

#include "mlir/TableGen/AttrOrTypeDef.h"

+ Inheritance diagram for mlir::tblgen::AttrOrTypeBuilder:

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< ParametergetParameters () 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...
 

Detailed Description

Wrapper class that represents a Tablegen AttrOrTypeBuilder.

Definition at line 36 of file AttrOrTypeDef.h.

Member Function Documentation

◆ Builder()

Builder::Builder

Construct a builder from the given Record instance.

Definition at line 65 of file Builder.cpp.

◆ getReturnType()

std::optional< StringRef > AttrOrTypeBuilder::getReturnType ( ) const

Returns an optional builder return type.

Definition at line 25 of file AttrOrTypeDef.cpp.

References mlir::tblgen::Builder::def.

◆ hasInferredContextParameter()

bool AttrOrTypeBuilder::hasInferredContextParameter ( ) const

Returns true if this builder is able to infer the MLIRContext parameter.

Definition at line 30 of file AttrOrTypeDef.cpp.

References mlir::tblgen::Builder::def.


The documentation for this class was generated from the following files: