MLIR
18.0.0git
|
A trait used to provide symbol table functionalities to a region operation. More...
#include "mlir/IR/SymbolTable.h"
Public Member Functions | |
Operation * | lookupSymbol (StringAttr name) |
Look up a symbol with the specified name, returning null if no such name exists. More... | |
template<typename T > | |
T | lookupSymbol (StringAttr name) |
Operation * | lookupSymbol (SymbolRefAttr symbol) |
template<typename T > | |
T | lookupSymbol (SymbolRefAttr symbol) |
Operation * | lookupSymbol (StringRef name) |
template<typename T > | |
T | lookupSymbol (StringRef name) |
Static Public Member Functions | |
static LogicalResult | verifyRegionTrait (Operation *op) |
Additional Inherited Members | |
![]() | |
Operation * | getOperation () |
Return the ultimate Operation being worked on. More... | |
A trait used to provide symbol table functionalities to a region operation.
This operation must hold exactly 1 region. Once attached, all operations that are directly within the region, i.e not including those within child regions, that contain a 'SymbolTable::getSymbolAttrName()' StringAttr will be verified to ensure that the names are uniqued. These operations must also adhere to the constraints defined by the Symbol
trait, even if they do not inherit from it.
Definition at line 400 of file SymbolTable.h.
|
inline |
Look up a symbol with the specified name, returning null if no such name exists.
Symbol names never include the @ on them. Note: This performs a linear scan of held symbols.
Definition at line 409 of file SymbolTable.h.
References mlir::OpTrait::TraitBase< ConcreteType, SymbolTable >::getOperation(), and mlir::SymbolTable::lookupSymbolIn().
Referenced by mlir::OpTrait::SymbolTable< ConcreteType >::lookupSymbol().
|
inline |
Definition at line 413 of file SymbolTable.h.
References mlir::OpTrait::SymbolTable< ConcreteType >::lookupSymbol().
|
inline |
Definition at line 424 of file SymbolTable.h.
References mlir::OpTrait::TraitBase< ConcreteType, SymbolTable >::getOperation(), and mlir::SymbolTable::lookupSymbolIn().
|
inline |
Definition at line 428 of file SymbolTable.h.
References mlir::OpTrait::SymbolTable< ConcreteType >::lookupSymbol().
|
inline |
Definition at line 416 of file SymbolTable.h.
References mlir::OpTrait::TraitBase< ConcreteType, SymbolTable >::getOperation(), and mlir::SymbolTable::lookupSymbolIn().
|
inline |
Definition at line 420 of file SymbolTable.h.
References mlir::OpTrait::SymbolTable< ConcreteType >::lookupSymbol().
|
inlinestatic |
Definition at line 402 of file SymbolTable.h.