My Project
Public Types | Public Member Functions | Friends | List of all members
mlir::LivenessBlockInfo Class Reference

This class represents liveness information on block level. More...

#include <Liveness.h>

Public Types

using ValueSetT = Liveness::ValueSetT
 A typedef declaration of a value set. More...
 

Public Member Functions

BlockgetBlock () const
 Returns the underlying block. More...
 
const ValueSetTin () const
 
const ValueSetTout () const
 
bool isLiveIn (Value value) const
 Returns true if the given value is in the live-in set. More...
 
bool isLiveOut (Value value) const
 Returns true if the given value is in the live-out set. More...
 
OperationgetStartOperation (Value value) const
 
OperationgetEndOperation (Value value, Operation *startOperation) const
 

Friends

class Liveness
 

Detailed Description

This class represents liveness information on block level.

Member Typedef Documentation

◆ ValueSetT

A typedef declaration of a value set.

Member Function Documentation

◆ getBlock()

Block* mlir::LivenessBlockInfo::getBlock ( ) const
inline

Returns the underlying block.

◆ getEndOperation()

Operation * LivenessBlockInfo::getEndOperation ( Value  value,
Operation startOperation 
) const

Gets the end operation for the given value using the start operation provided (must be referenced in this block).

◆ getStartOperation()

Operation * LivenessBlockInfo::getStartOperation ( Value  value) const

Gets the start operation for the given value. This is the first operation the given value is considered to be live. This could either be the start operation of the current block (in case the value is live-in) or the operation that defines the given value (must be referenced in this block).

Gets the start operation for the given value (must be referenced in this block).

◆ in()

const ValueSetT& mlir::LivenessBlockInfo::in ( ) const
inline

Returns all values that are live at the beginning of the block (unordered).

◆ isLiveIn()

bool LivenessBlockInfo::isLiveIn ( Value  value) const

Returns true if the given value is in the live-in set.

◆ isLiveOut()

bool LivenessBlockInfo::isLiveOut ( Value  value) const

Returns true if the given value is in the live-out set.

◆ out()

const ValueSetT& mlir::LivenessBlockInfo::out ( ) const
inline

Returns all values that are live at the end of the block (unordered).

Friends And Related Function Documentation

◆ Liveness

friend class Liveness
friend

The documentation for this class was generated from the following files: