MLIR
20.0.0git
|
This is a simple analysis that contains a symbol table collection and, for simplicity, a reference to the top-level symbol table. More...
#include "mlir/Analysis/SymbolTableAnalysis.h"
Public Member Functions | |
SymbolTableAnalysis (Operation *op) | |
Create the symbol table analysis at the provided top-level operation and instantiate the symbol table of the top-level operation. More... | |
SymbolTableCollection & | getSymbolTables () |
Get the symbol table collection. More... | |
SymbolTable & | getTopLevelSymbolTable () |
Get the top-level symbol table. More... | |
template<typename OpT > | |
OpT | getTopLevelOp () |
Get the top-level operation. More... | |
bool | isInvalidated (const AnalysisManager::PreservedAnalyses &pa) |
Symbol tables are kept up-to-date by passes. More... | |
This is a simple analysis that contains a symbol table collection and, for simplicity, a reference to the top-level symbol table.
This allows symbol tables to be preserved across passes. Most often, symbol tables are automatically kept up-to-date via the insert
and erase
functions.
Definition at line 20 of file SymbolTableAnalysis.h.
|
inline |
Create the symbol table analysis at the provided top-level operation and instantiate the symbol table of the top-level operation.
Definition at line 24 of file SymbolTableAnalysis.h.
|
inline |
Get the symbol table collection.
Definition at line 28 of file SymbolTableAnalysis.h.
|
inline |
Get the top-level operation.
Definition at line 35 of file SymbolTableAnalysis.h.
References mlir::SymbolTable::getOp().
|
inline |
Get the top-level symbol table.
Definition at line 31 of file SymbolTableAnalysis.h.
|
inline |
Symbol tables are kept up-to-date by passes.
Assume that the analysis remains valid.
Definition at line 41 of file SymbolTableAnalysis.h.