#include <BlockAndValueMapping.h>
◆ clear()
void mlir::BlockAndValueMapping::clear |
( |
| ) |
|
|
inline |
Clears all mappings held by the mapper.
◆ contains() [1/2]
bool mlir::BlockAndValueMapping::contains |
( |
Block * |
from | ) |
const |
|
inline |
Checks to see if a mapping for 'from' exists.
◆ contains() [2/2]
bool mlir::BlockAndValueMapping::contains |
( |
Value |
from | ) |
const |
|
inline |
◆ erase() [1/2]
void mlir::BlockAndValueMapping::erase |
( |
Block * |
from | ) |
|
|
inline |
Erases a mapping for 'from'.
◆ erase() [2/2]
void mlir::BlockAndValueMapping::erase |
( |
Value |
from | ) |
|
|
inline |
◆ lookup()
template<typename T >
T mlir::BlockAndValueMapping::lookup |
( |
T |
from | ) |
const |
|
inline |
Lookup a mapped value within the map. This asserts the provided value exists within the map.
◆ lookupOrDefault() [1/2]
Block* mlir::BlockAndValueMapping::lookupOrDefault |
( |
Block * |
from | ) |
const |
|
inline |
Lookup a mapped value within the map. If a mapping for the provided value does not exist then return the provided value.
◆ lookupOrDefault() [2/2]
Value mlir::BlockAndValueMapping::lookupOrDefault |
( |
Value |
from | ) |
const |
|
inline |
◆ lookupOrNull() [1/2]
Block* mlir::BlockAndValueMapping::lookupOrNull |
( |
Block * |
from | ) |
const |
|
inline |
Lookup a mapped value within the map. If a mapping for the provided value does not exist then return nullptr.
◆ lookupOrNull() [2/2]
Value mlir::BlockAndValueMapping::lookupOrNull |
( |
Value |
from | ) |
const |
|
inline |
◆ map() [1/2]
void mlir::BlockAndValueMapping::map |
( |
Block * |
from, |
|
|
Block * |
to |
|
) |
| |
|
inline |
Inserts a new mapping for 'from' to 'to'. If there is an existing mapping, it is overwritten.
◆ map() [2/2]
void mlir::BlockAndValueMapping::map |
( |
Value |
from, |
|
|
Value |
to |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file: