MLIR  20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
mlir::TypeConverter::AttributeConversionResult Class Reference

The general result of a type attribute conversion callback, allowing for early termination. More...

#include "mlir/Transforms/DialectConversion.h"

Public Member Functions

constexpr AttributeConversionResult ()
 
 AttributeConversionResult (Attribute attr)
 
bool hasResult () const
 
bool isNa () const
 
bool isAbort () const
 
Attribute getResult () const
 

Static Public Member Functions

static AttributeConversionResult result (Attribute attr)
 
static AttributeConversionResult na ()
 
static AttributeConversionResult abort ()
 

Detailed Description

The general result of a type attribute conversion callback, allowing for early termination.

The default constructor creates the na case.

Definition at line 114 of file DialectConversion.h.

Constructor & Destructor Documentation

◆ AttributeConversionResult() [1/2]

constexpr mlir::TypeConverter::AttributeConversionResult::AttributeConversionResult ( )
inlineconstexpr

Definition at line 116 of file DialectConversion.h.

◆ AttributeConversionResult() [2/2]

mlir::TypeConverter::AttributeConversionResult::AttributeConversionResult ( Attribute  attr)
inline

Definition at line 117 of file DialectConversion.h.

Member Function Documentation

◆ abort()

TypeConverter::AttributeConversionResult TypeConverter::AttributeConversionResult::abort ( )
static

Definition at line 2903 of file DialectConversion.cpp.

◆ getResult()

Attribute TypeConverter::AttributeConversionResult::getResult ( ) const

Definition at line 2919 of file DialectConversion.cpp.

Referenced by mlir::TypeConverter::convertTypeAttribute().

◆ hasResult()

bool TypeConverter::AttributeConversionResult::hasResult ( ) const

Definition at line 2907 of file DialectConversion.cpp.

Referenced by mlir::TypeConverter::convertTypeAttribute().

◆ isAbort()

bool TypeConverter::AttributeConversionResult::isAbort ( ) const

Definition at line 2915 of file DialectConversion.cpp.

Referenced by mlir::TypeConverter::convertTypeAttribute().

◆ isNa()

bool TypeConverter::AttributeConversionResult::isNa ( ) const

Definition at line 2911 of file DialectConversion.cpp.

◆ na()

TypeConverter::AttributeConversionResult TypeConverter::AttributeConversionResult::na ( )
static

Definition at line 2898 of file DialectConversion.cpp.

◆ result()

TypeConverter::AttributeConversionResult TypeConverter::AttributeConversionResult::result ( Attribute  attr)
static

Definition at line 2893 of file DialectConversion.cpp.


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