My Project
Public Member Functions | Public Attributes | List of all members
mlir::detail::ValueRangeOwner Struct Reference

#include <OperationSupport.h>

Collaboration diagram for mlir::detail::ValueRangeOwner:
Collaboration graph
[legend]

Public Member Functions

 ValueRangeOwner (const Value *owner)
 
 ValueRangeOwner (OpOperand *owner)
 
 ValueRangeOwner (Operation *owner, unsigned startIndex)
 
bool operator== (const ValueRangeOwner &rhs) const
 

Public Attributes

PointerUnion< const Value *, OpOperand *, void * > ptr
 
unsigned startIndex
 Ths start index into the range. This is only used for Operation* owners. More...
 

Detailed Description

The type representing the owner of a ValueRange. This is either a list of values, operands, or an Operation+start index for results.

Constructor & Destructor Documentation

◆ ValueRangeOwner() [1/3]

mlir::detail::ValueRangeOwner::ValueRangeOwner ( const Value owner)
inline

◆ ValueRangeOwner() [2/3]

mlir::detail::ValueRangeOwner::ValueRangeOwner ( OpOperand owner)
inline

◆ ValueRangeOwner() [3/3]

mlir::detail::ValueRangeOwner::ValueRangeOwner ( Operation owner,
unsigned  startIndex 
)
inline

Member Function Documentation

◆ operator==()

bool mlir::detail::ValueRangeOwner::operator== ( const ValueRangeOwner rhs) const
inline

Member Data Documentation

◆ ptr

PointerUnion<const Value *, OpOperand *, void *> mlir::detail::ValueRangeOwner::ptr

The owner pointer of the range. The owner has represents three distinct states: const Value *: The owner is the base to a contiguous array of Value. OpOperand * : The owner is the base to a contiguous array of operands. void* : This owner is an Operation*. It is marked as void* here because the definition of Operation is not visible here.

◆ startIndex

unsigned mlir::detail::ValueRangeOwner::startIndex

Ths start index into the range. This is only used for Operation* owners.


The documentation for this struct was generated from the following file: