MLIR
20.0.0git
|
This class represents an inferred result type. More...
#include "mlir/TableGen/Operator.h"
Public Member Functions | |
InferredResultType (int index, std::string transformer) | |
bool | isArg () const |
Returns true if result type is inferred from an argument type. More... | |
int | getIndex () const |
Return the mapped argument or result index. More... | |
int | getResultIndex () const |
If the type is inferred from a result, return the result index. More... | |
StringRef | getTransformer () const |
Static Public Member Functions | |
static int | mapResultIndex (int i) |
static int | unmapResultIndex (int i) |
static bool | isResultIndex (int i) |
static bool | isArgIndex (int i) |
This class represents an inferred result type.
The result type can be inferred from an argument or result type. If it is inferred from another result type, that type must be buildable or inferred from yet another type.
Definition at line 44 of file Operator.h.
|
inline |
Definition at line 46 of file Operator.h.
|
inline |
Return the mapped argument or result index.
Definition at line 52 of file Operator.h.
|
inline |
If the type is inferred from a result, return the result index.
Definition at line 54 of file Operator.h.
References unmapResultIndex().
|
inline |
Definition at line 64 of file Operator.h.
|
inline |
Returns true if result type is inferred from an argument type.
Definition at line 50 of file Operator.h.
References isArgIndex().
|
inlinestatic |
Definition at line 62 of file Operator.h.
Referenced by isArg().
|
inlinestatic |
Definition at line 61 of file Operator.h.
|
inlinestatic |
Definition at line 59 of file Operator.h.
|
inlinestatic |
Definition at line 60 of file Operator.h.
Referenced by getResultIndex().