MLIR  14.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
mlir::OpOperand Class Reference

This class represents an operand of an operation. More...

#include "mlir/IR/Value.h"

Inheritance diagram for mlir::OpOperand:
Inheritance graph
[legend]
Collaboration diagram for mlir::OpOperand:
Collaboration graph
[legend]

Public Member Functions

unsigned getOperandNumber ()
 Return which operand this is in the OpOperand list of the Operation. More...
 
- Public Member Functions inherited from mlir::IROperand< OpOperand, Value >
 IROperand (Operation *owner)
 
 IROperand (Operation *owner, Value value)
 
 IROperand (IROperand &&other)
 We support a move constructor so IROperand's can be in vectors, but this shouldn't be used by general clients. More...
 
IROperandoperator= (IROperand &&other)
 
Value get () const
 Return the current value being used by this operand. More...
 
void set (Value newValue)
 Set the current value being used by this operand. More...
 
bool is (Value other) const
 Returns true if this operand contains the given value. More...
 
void drop ()
 Remove this use of the operand. More...
 
- Public Member Functions inherited from mlir::detail::IROperandBase
OperationgetOwner () const
 Return the owner of this operand. More...
 
IROperandBasegetNextOperandUsingThisValue ()
 Return the next operand on the use-list of the value we are referring to. More...
 

Static Public Member Functions

static IRObjectWithUseList< OpOperand > * getUseList (Value value)
 Provide the use list that is attached to the given value. More...
 

Friends

class OperandStorage
 Keep the constructor private and accessible to the OperandStorage class only to avoid hard-to-debug typo/programming mistakes. More...
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::detail::IROperandBase
 IROperandBase (Operation *owner)
 
 IROperandBase (IROperandBase &&other)
 
IROperandBaseoperator= (IROperandBase &&other)
 
 IROperandBase (const IROperandBase &use)=delete
 Operands are not copyable or assignable. More...
 
IROperandBaseoperator= (const IROperandBase &use)=delete
 
 ~IROperandBase ()
 
void drop ()
 Remove this use of the operand. More...
 
void removeFromCurrent ()
 Remove this operand from the current use list. More...
 
template<typename UseListT >
void insertInto (UseListT *useList)
 Insert this operand into the given use list. More...
 
- Protected Attributes inherited from mlir::detail::IROperandBase
IROperandBasenextUse = nullptr
 The next operand in the use-chain. More...
 
IROperandBase ** back = nullptr
 This points to the previous link in the use-chain. More...
 

Detailed Description

This class represents an operand of an operation.

Instances of this class contain a reference to a specific Value.

Definition at line 249 of file Value.h.

Member Function Documentation

◆ getOperandNumber()

unsigned OpOperand::getOperandNumber ( )

◆ getUseList()

static IRObjectWithUseList<OpOperand>* mlir::OpOperand::getUseList ( Value  value)
inlinestatic

Provide the use list that is attached to the given value.

Definition at line 252 of file Value.h.

References mlir::Value::getImpl().

Friends And Related Function Documentation

◆ OperandStorage

friend class OperandStorage
friend

Keep the constructor private and accessible to the OperandStorage class only to avoid hard-to-debug typo/programming mistakes.

Definition at line 262 of file Value.h.


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