MLIR  20.0.0git
Public Member Functions | List of all members
mlir::tblgen::Field Class Reference

This class describes a class field. More...

#include "mlir/TableGen/Class.h"

+ Inheritance diagram for mlir::tblgen::Field:

Public Member Functions

template<typename TypeT , typename NameT >
 Field (TypeT &&type, NameT &&name)
 Create a class field with a type and variable name. More...
 
void writeDeclTo (raw_indented_ostream &os) const override
 Write the declaration of the field. More...
 
- Public Member Functions inherited from mlir::tblgen::ClassDeclarationBase< ClassDeclaration::Field >
 ClassDeclarationBase ()
 
- Public Member Functions inherited from mlir::tblgen::ClassDeclaration
virtual ~ClassDeclaration ()=default
 
 ClassDeclaration (Kind kind)
 Create a class declaration with a given kind. More...
 
Kind getKind () const
 Get the class declaration kind. More...
 
virtual void writeDefTo (raw_indented_ostream &os, StringRef namePrefix) const
 Write the definition, if any. More...
 

Additional Inherited Members

- Public Types inherited from mlir::tblgen::ClassDeclarationBase< ClassDeclaration::Field >
using Base = ClassDeclarationBase< DeclKind >
 
- Public Types inherited from mlir::tblgen::ClassDeclaration
enum  Kind {
  Method , UsingDeclaration , VisibilityDeclaration , Field ,
  ExtraClassDeclaration
}
 Kinds for LLVM-style RTTI. More...
 
- Static Public Member Functions inherited from mlir::tblgen::ClassDeclarationBase< ClassDeclaration::Field >
static bool classof (const ClassDeclaration *other)
 

Detailed Description

This class describes a class field.

Definition at line 575 of file Class.h.

Constructor & Destructor Documentation

◆ Field()

template<typename TypeT , typename NameT >
mlir::tblgen::Field::Field ( TypeT &&  type,
NameT &&  name 
)
inline

Create a class field with a type and variable name.

Definition at line 579 of file Class.h.

Member Function Documentation

◆ writeDeclTo()

void mlir::tblgen::Field::writeDeclTo ( raw_indented_ostream os) const
overridevirtual

Write the declaration of the field.

Implements mlir::tblgen::ClassDeclaration.


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