|
MLIR 24.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. | |
| 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. | |
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, and implement SymbolOpInterface will be verified to ensure that their names are uniqued.
Definition at line 503 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 512 of file SymbolTable.h.
References mlir::OpTrait::TraitBase< ConcreteType, SymbolTable >::getOperation(), and mlir::SymbolTable::lookupSymbolIn().
Referenced by lookupSymbol(), lookupSymbol(), and lookupSymbol().
|
inline |
Definition at line 516 of file SymbolTable.h.
References lookupSymbol().
|
inline |
Definition at line 527 of file SymbolTable.h.
References mlir::OpTrait::TraitBase< ConcreteType, SymbolTable >::getOperation(), and mlir::SymbolTable::lookupSymbolIn().
|
inline |
Definition at line 531 of file SymbolTable.h.
References lookupSymbol().
|
inline |
Definition at line 519 of file SymbolTable.h.
References mlir::OpTrait::TraitBase< ConcreteType, SymbolTable >::getOperation(), and mlir::SymbolTable::lookupSymbolIn().
|
inline |
Definition at line 523 of file SymbolTable.h.
References lookupSymbol().
|
inlinestatic |
Definition at line 505 of file SymbolTable.h.