MLIR  19.0.0git
Static Public Member Functions | List of all members
mlir::detail::DistinctAttributeUniquer Class Reference

A specialized attribute uniquer for distinct attributes that always allocates since the distinct attribute instances use the address of their storage as unique identifier. More...

#include "IR/AttributeDetail.h"

Static Public Member Functions

template<typename T , typename... Args>
static T get (MLIRContext *context, Args &&...args)
 Creates a distinct attribute storage. More...
 

Detailed Description

A specialized attribute uniquer for distinct attributes that always allocates since the distinct attribute instances use the address of their storage as unique identifier.

Definition at line 378 of file AttributeDetail.h.

Member Function Documentation

◆ get()

template<typename T , typename... Args>
static T mlir::detail::DistinctAttributeUniquer::get ( MLIRContext context,
Args &&...  args 
)
inlinestatic

Creates a distinct attribute storage.

Allocates every time since the address of the storage serves as unique identifier.

Definition at line 383 of file AttributeDetail.h.

References mlir::detail::StorageUserBase< DistinctAttr, Attribute, detail::DistinctAttrStorage, detail::DistinctAttributeUniquer >::getTypeID(), mlir::AttributeStorage::initializeAbstractAttribute(), and mlir::AbstractAttribute::lookup().


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