MLIR  20.0.0git
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
mlir::tblgen::Trait Class Reference

#include "mlir/TableGen/Trait.h"

+ Inheritance diagram for mlir::tblgen::Trait:

Public Types

enum class  Kind { Native , Pred , Internal , Interface }
 

Public Member Functions

 Trait (Kind kind, const llvm::Record *def)
 
Kind getKind () const
 
const llvm::Record & getDef () const
 

Static Public Member Functions

static Trait create (const llvm::Init *init)
 

Protected Attributes

const llvm::Record * def
 
Kind kind
 

Detailed Description

Definition at line 32 of file Trait.h.

Member Enumeration Documentation

◆ Kind

Enumerator
Native 
Pred 
Internal 
Interface 

Definition at line 35 of file Trait.h.

Constructor & Destructor Documentation

◆ Trait()

Trait::Trait ( Kind  kind,
const llvm::Record *  def 
)
explicit

Definition at line 40 of file Trait.cpp.

Referenced by create().

Member Function Documentation

◆ create()

Trait Trait::create ( const llvm::Init *  init)
static

Definition at line 28 of file Trait.cpp.

References def, Interface, Internal, Native, Pred, and Trait().

Referenced by mlir::tblgen::AttrOrTypeDef::AttrOrTypeDef().

◆ getDef()

const llvm::Record& mlir::tblgen::Trait::getDef ( ) const
inline

Definition at line 54 of file Trait.h.

References def.

Referenced by mlir::tblgen::SideEffectTrait::classof().

◆ getKind()

Kind mlir::tblgen::Trait::getKind ( ) const
inline

Member Data Documentation

◆ def

const llvm::Record* mlir::tblgen::Trait::def
protected

◆ kind

Kind mlir::tblgen::Trait::kind
protected

Definition at line 59 of file Trait.h.

Referenced by getKind().


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