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

#include <Attributes.h>

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

Public Member Functions

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

Static Public Member Functions

static OpaqueAttr get (Identifier dialect, StringRef attrData, Type type, MLIRContext *context)
 Get or create a new OpaqueAttr with the provided dialect and string data. More...
 
static OpaqueAttr getChecked (Identifier dialect, StringRef attrData, Type type, Location location)
 
static LogicalResult verifyConstructionInvariants (Optional< Location > loc, MLIRContext *context, Identifier dialect, StringRef attrData, Type type)
 Verify the construction of an opaque attribute. 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 attributes represent attributes of non-registered dialects. These are attribute represented in their raw string form, and can only usefully be tested for attribute equality.

Member Function Documentation

◆ get()

OpaqueAttr OpaqueAttr::get ( Identifier  dialect,
StringRef  attrData,
Type  type,
MLIRContext context 
)
static

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

◆ getAttrData()

StringRef OpaqueAttr::getAttrData ( ) const

Returns the raw attribute data of the opaque attribute.

◆ getChecked()

OpaqueAttr OpaqueAttr::getChecked ( Identifier  dialect,
StringRef  attrData,
Type  type,
Location  location 
)
static

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

◆ getDialectNamespace()

Identifier OpaqueAttr::getDialectNamespace ( ) const

Returns the dialect namespace of the opaque attribute.

◆ kindof()

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

◆ verifyConstructionInvariants()

LogicalResult OpaqueAttr::verifyConstructionInvariants ( Optional< Location loc,
MLIRContext context,
Identifier  dialect,
StringRef  attrData,
Type  type 
)
static

Verify the construction of an opaque attribute.


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