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

A reference to a value, suitable for use as an operand of an operation. More...

#include <UseDefLists.h>

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

Public Member Functions

Value get () const
 Return the current value being used by this operand. More...
 
void set (Value value)
 Set the operand to the given value. More...
 
unsigned getOperandNumber ()
 Return which operand this is in the operand list of the User. More...
 
- Public Member Functions inherited from mlir::IROperand< OpOperand, detail::OpaqueValue >
 IROperand (Operation *owner)
 
 IROperand (Operation *owner, ValueType value)
 
 IROperand (IROperand &&other)
 
ValueType get () const
 Return the current value being used by this operand. More...
 
void set (ValueType newValue)
 Set the current value being used by this operand. More...
 
OperationgetOwner ()
 Return the owner of this operand. More...
 
OperationgetOwner () const
 
void drop ()
 Remove this use of the operand. More...
 
 ~IROperand ()
 
OpOperandgetNextOperandUsingThisValue ()
 
IROperandoperator= (IROperand &&other)
 

Static Public Member Functions

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

Additional Inherited Members

- Public Types inherited from mlir::IROperand< OpOperand, detail::OpaqueValue >
using ValueType = detail::OpaqueValue
 

Detailed Description

A reference to a value, suitable for use as an operand of an operation.

Member Function Documentation

◆ get()

Value OpOperand::get ( ) const

Return the current value being used by this operand.

◆ getOperandNumber()

unsigned OpOperand::getOperandNumber ( )

Return which operand this is in the operand list of the User.

Return which operand this is in the operand list.

◆ getUseList()

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

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

◆ set()

void OpOperand::set ( Value  value)

Set the operand to the given value.


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