My Project
Public Member Functions | Static Public Member Functions | List of all members
mlir::FunctionType Class Reference

Function types map from a list of inputs to a list of results. More...

#include <Types.h>

Inheritance diagram for mlir::FunctionType:
Inheritance graph
[legend]
Collaboration diagram for mlir::FunctionType:
Collaboration graph
[legend]

Public Member Functions

unsigned getNumInputs () const
 
Type getInput (unsigned i) const
 
ArrayRef< TypegetInputs () const
 
unsigned getNumResults () const
 
Type getResult (unsigned i) const
 
ArrayRef< TypegetResults () const
 

Static Public Member Functions

static FunctionType get (ArrayRef< Type > inputs, ArrayRef< Type > results, MLIRContext *context)
 
static bool kindof (unsigned kind)
 Methods for support type inquiry through isa, cast, and dyn_cast. More...
 
- Static Public Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
static ClassIDgetClassID ()
 Return a unique identifier for the concrete type. More...
 
template<typename T >
static bool classof (T val)
 

Additional Inherited Members

- Public Types inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
using Base = StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
 Utility declarations for the concrete attribute class. More...
 
using ImplType = StorageT
 
- Protected Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
ImplTypegetImpl () const
 Utility for easy access to the storage instance. More...
 
- Static Protected Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
template<typename... Args>
static ConcreteT get (MLIRContext *ctx, unsigned kind, Args... args)
 
template<typename... Args>
static ConcreteT getChecked (const Location &loc, MLIRContext *ctx, unsigned kind, Args... args)
 
template<typename... Args>
static LogicalResult verifyConstructionInvariants (Args... args)
 Default implementation that just returns success. More...
 

Detailed Description

Function types map from a list of inputs to a list of results.

Member Function Documentation

◆ get()

FunctionType FunctionType::get ( ArrayRef< Type inputs,
ArrayRef< Type results,
MLIRContext context 
)
static

◆ getInput()

Type mlir::FunctionType::getInput ( unsigned  i) const
inline

◆ getInputs()

ArrayRef< Type > FunctionType::getInputs ( ) const

◆ getNumInputs()

unsigned mlir::FunctionType::getNumInputs ( ) const
inline

◆ getNumResults()

unsigned FunctionType::getNumResults ( ) const

◆ getResult()

Type mlir::FunctionType::getResult ( unsigned  i) const
inline

◆ getResults()

ArrayRef< Type > FunctionType::getResults ( ) const

◆ kindof()

static bool mlir::FunctionType::kindof ( unsigned  kind)
inlinestatic

Methods for support type inquiry through isa, cast, and dyn_cast.


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