MLIR 24.0.0git
mlir::OpTrait::SymbolName< ConcreteType > Class Template Reference

A trait that provides the name accessors for symbol operations that store their name in the conventional sym_name inherent attribute. More...

#include "mlir/IR/SymbolTable.h"

Inheritance diagram for mlir::OpTrait::SymbolName< ConcreteType >:

Public Member Functions

StringAttr getNameAttr ()
StringRef getName ()
void setName (StringAttr name)
void setName (StringRef name)

Additional Inherited Members

Protected Member Functions inherited from mlir::OpTrait::TraitBase< ConcreteType, SymbolName >
OperationgetOperation ()
 Return the ultimate Operation being worked on.

Detailed Description

template<typename ConcreteType>
class mlir::OpTrait::SymbolName< ConcreteType >

A trait that provides the name accessors for symbol operations that store their name in the conventional sym_name inherent attribute.

Definition at line 447 of file SymbolTable.h.

Member Function Documentation

◆ getName()

template<typename ConcreteType>
StringRef mlir::OpTrait::SymbolName< ConcreteType >::getName ( )
inline

Definition at line 453 of file SymbolTable.h.

References getNameAttr().

◆ getNameAttr()

template<typename ConcreteType>
StringAttr mlir::OpTrait::SymbolName< ConcreteType >::getNameAttr ( )
inline

◆ setName() [1/2]

template<typename ConcreteType>
void mlir::OpTrait::SymbolName< ConcreteType >::setName ( StringAttr name)
inline

◆ setName() [2/2]

template<typename ConcreteType>
void mlir::OpTrait::SymbolName< ConcreteType >::setName ( StringRef name)
inline

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