MLIR
20.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 | |
Protected Member Functions inherited from mlir::OpTrait::TraitBase< ConcreteType, SymbolTable > | |
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 435 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 444 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 448 of file SymbolTable.h.
References mlir::OpTrait::SymbolTable< ConcreteType >::lookupSymbol().
|
inline |
Definition at line 459 of file SymbolTable.h.
References mlir::OpTrait::TraitBase< ConcreteType, SymbolTable >::getOperation(), and mlir::SymbolTable::lookupSymbolIn().
|
inline |
Definition at line 463 of file SymbolTable.h.
References mlir::OpTrait::SymbolTable< ConcreteType >::lookupSymbol().
|
inline |
Definition at line 451 of file SymbolTable.h.
References mlir::OpTrait::TraitBase< ConcreteType, SymbolTable >::getOperation(), and mlir::SymbolTable::lookupSymbolIn().
|
inline |
Definition at line 455 of file SymbolTable.h.
References mlir::OpTrait::SymbolTable< ConcreteType >::lookupSymbol().
|
inlinestatic |
Definition at line 437 of file SymbolTable.h.
References mlir::detail::verifySymbolTable().