My Project
Public Member Functions | List of all members
mlir::BlockAndValueMapping Class Reference

#include <BlockAndValueMapping.h>

Public Member Functions

void map (Block *from, Block *to)
 
void map (Value from, Value to)
 
void erase (Block *from)
 Erases a mapping for 'from'. More...
 
void erase (Value from)
 
bool contains (Block *from) const
 Checks to see if a mapping for 'from' exists. More...
 
bool contains (Value from) const
 
BlocklookupOrNull (Block *from) const
 
Value lookupOrNull (Value from) const
 
BlocklookupOrDefault (Block *from) const
 
Value lookupOrDefault (Value from) const
 
template<typename T >
lookup (T from) const
 
void clear ()
 Clears all mappings held by the mapper. More...
 

Member Function Documentation

◆ 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 ( 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: