MLIR
21.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 442 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 451 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 455 of file SymbolTable.h.
References mlir::OpTrait::SymbolTable< ConcreteType >::lookupSymbol().
|
inline |
Definition at line 466 of file SymbolTable.h.
References mlir::OpTrait::TraitBase< ConcreteType, SymbolTable >::getOperation(), and mlir::SymbolTable::lookupSymbolIn().
|
inline |
Definition at line 470 of file SymbolTable.h.
References mlir::OpTrait::SymbolTable< ConcreteType >::lookupSymbol().
|
inline |
Definition at line 458 of file SymbolTable.h.
References mlir::OpTrait::TraitBase< ConcreteType, SymbolTable >::getOperation(), and mlir::SymbolTable::lookupSymbolIn().
|
inline |
Definition at line 462 of file SymbolTable.h.
References mlir::OpTrait::SymbolTable< ConcreteType >::lookupSymbol().
|
inlinestatic |
Definition at line 444 of file SymbolTable.h.
References mlir::detail::verifySymbolTable().