My Project
Public Member Functions | Static Public Member Functions | List of all members
mlir::OpTrait::OneResult< ConcreteType > Class Template Reference

#include <OpDefinition.h>

Inheritance diagram for mlir::OpTrait::OneResult< ConcreteType >:
Inheritance graph
[legend]
Collaboration diagram for mlir::OpTrait::OneResult< ConcreteType >:
Collaboration graph
[legend]

Public Member Functions

Value getResult ()
 
Type getType ()
 
void replaceAllUsesWith (Value newValue)
 
void replaceAllUsesWith (Operation *op)
 Replace all uses of 'this' value with the result of 'op'. More...
 

Static Public Member Functions

static LogicalResult verifyTrait (Operation *op)
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::OpTrait::TraitBase< ConcreteType, OneResult >
OperationgetOperation ()
 Return the ultimate Operation being worked on. More...
 
- Static Protected Member Functions inherited from mlir::OpTrait::TraitBase< ConcreteType, OneResult >
static LogicalResult verifyTrait (Operation *op)
 
static AbstractOperation::OperationProperties getTraitProperties ()
 

Detailed Description

template<typename ConcreteType>
class mlir::OpTrait::OneResult< ConcreteType >

This class provides return value APIs for ops that are known to have a single result.

Member Function Documentation

◆ getResult()

template<typename ConcreteType>
Value mlir::OpTrait::OneResult< ConcreteType >::getResult ( )
inline

◆ getType()

template<typename ConcreteType>
Type mlir::OpTrait::OneResult< ConcreteType >::getType ( )
inline

◆ replaceAllUsesWith() [1/2]

template<typename ConcreteType>
void mlir::OpTrait::OneResult< ConcreteType >::replaceAllUsesWith ( Value  newValue)
inline

Replace all uses of 'this' value with the new value, updating anything in the IR that uses 'this' to use the other value instead. When this returns there are zero uses of 'this'.

◆ replaceAllUsesWith() [2/2]

template<typename ConcreteType>
void mlir::OpTrait::OneResult< ConcreteType >::replaceAllUsesWith ( Operation op)
inline

Replace all uses of 'this' value with the result of 'op'.

◆ verifyTrait()

template<typename ConcreteType>
static LogicalResult mlir::OpTrait::OneResult< ConcreteType >::verifyTrait ( Operation op)
inlinestatic

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