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

#include <Types.h>

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

Public Member Functions

Identifier getDialectNamespace () const
 Returns the dialect namespace of the opaque type. More...
 
StringRef getTypeData () const
 Returns the raw type data of the opaque type. More...
 

Static Public Member Functions

static OpaqueType get (Identifier dialect, StringRef typeData, MLIRContext *context)
 Get or create a new OpaqueType with the provided dialect and string data. More...
 
static OpaqueType getChecked (Identifier dialect, StringRef typeData, MLIRContext *context, Location location)
 
static LogicalResult verifyConstructionInvariants (Optional< Location > loc, MLIRContext *context, Identifier dialect, StringRef typeData)
 Verify the construction of an opaque type. More...
 
static bool kindof (unsigned kind)
 
- 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

Opaque types represent types of non-registered dialects. These are types represented in their raw string form, and can only usefully be tested for type equality.

Member Function Documentation

◆ get()

OpaqueType OpaqueType::get ( Identifier  dialect,
StringRef  typeData,
MLIRContext context 
)
static

Get or create a new OpaqueType with the provided dialect and string data.

◆ getChecked()

OpaqueType OpaqueType::getChecked ( Identifier  dialect,
StringRef  typeData,
MLIRContext context,
Location  location 
)
static

Get or create a new OpaqueType with the provided dialect and string data. If the given identifier is not a valid namespace for a dialect, then a null type is returned.

◆ getDialectNamespace()

Identifier OpaqueType::getDialectNamespace ( ) const

Returns the dialect namespace of the opaque type.

◆ getTypeData()

StringRef OpaqueType::getTypeData ( ) const

Returns the raw type data of the opaque type.

◆ kindof()

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

◆ verifyConstructionInvariants()

LogicalResult OpaqueType::verifyConstructionInvariants ( Optional< Location loc,
MLIRContext context,
Identifier  dialect,
StringRef  typeData 
)
static

Verify the construction of an opaque type.


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