Beaver. MLIR. SymbolTable
(beaver v0.4.8)
Copy Markdown
This module provides utilities for MLIR symbol table.
Summary
Functions
Returns the name of the attribute used for symbol names as atom.
Creates a new symbol table and attaches it to the given operation.
The operation is expected to have the SymbolTable trait.
Destroys the given symbol table.
Erases a symbol from the given symbol table.
Inserts an operation into a symbol table.
Looks up a symbol with the given name in the symbol table.
Replaces all uses of a symbol with another symbol.
Returns the name of the attribute used for symbol visibility as atom.
Types
@type t() :: %Beaver.MLIR.SymbolTable{ref: term()}
Functions
Returns the name of the attribute used for symbol names as atom.
Examples
iex> MLIR.SymbolTable.attribute_name() :sym_name
Creates a new symbol table and attaches it to the given operation.
The operation is expected to have the SymbolTable trait.
Destroys the given symbol table.
Erases a symbol from the given symbol table.
Inserts an operation into a symbol table.
Looks up a symbol with the given name in the symbol table.
Replaces all uses of a symbol with another symbol.
Returns the name of the attribute used for symbol visibility as atom.
Examples
iex> MLIR.SymbolTable.visibility_attribute_name() :sym_visibility