MLIR 22.0.0git
mlir::tblgen::EnumCase Class Reference

#include "mlir/TableGen/EnumInfo.h"

Public Member Functions

 EnumCase (const llvm::Record *record)
 EnumCase (const llvm::DefInit *init)
StringRef getSymbol () const
StringRef getStr () const
int64_t getValue () const
const llvm::Record & getDef () const

Protected Attributes

const llvm::Record * def

Detailed Description

Definition at line 29 of file EnumInfo.h.

Constructor & Destructor Documentation

◆ EnumCase() [1/2]

mlir::tblgen::EnumCase::EnumCase ( const llvm::Record * record)
explicit

◆ EnumCase() [2/2]

mlir::tblgen::EnumCase::EnumCase ( const llvm::DefInit * init)
explicit

Member Function Documentation

◆ getDef()

const Record & EnumCase::getDef ( ) const

Definition at line 35 of file EnumInfo.cpp.

References def.

◆ getStr()

StringRef EnumCase::getStr ( ) const

Definition at line 31 of file EnumInfo.cpp.

References def.

◆ getSymbol()

StringRef EnumCase::getSymbol ( ) const

Definition at line 27 of file EnumInfo.cpp.

References def.

◆ getValue()

int64_t EnumCase::getValue ( ) const

Definition at line 33 of file EnumInfo.cpp.

References def.

Member Data Documentation

◆ def

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

Definition at line 48 of file EnumInfo.h.

Referenced by getDef(), getStr(), getSymbol(), and getValue().


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