MLIR
21.0.0git
|
This class provides return value APIs for ops that are known to have a single result. More...
#include "mlir/IR/OpDefinition.h"
Public Member Functions | |
void | replaceAllUsesWith (Value newValue) |
Replace all uses of 'this' value with the new value, updating anything in the IR that uses 'this' to use the other value instead. More... | |
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 | |
![]() | |
Operation * | getOperation () |
Return the ultimate Operation being worked on. More... | |
This class provides return value APIs for ops that are known to have a single result.
ResultType is the concrete type returned by getType().
Definition at line 672 of file OpDefinition.h.
|
inline |
Replace all uses of 'this' value with the result of 'op'.
Definition at line 682 of file OpDefinition.h.
References mlir::OpTrait::TraitBase< ConcreteType, OneResult >::getOperation(), and mlir::Operation::replaceAllUsesWith().
|
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'.
Definition at line 677 of file OpDefinition.h.
References mlir::OpTrait::TraitBase< ConcreteType, OneResult >::getOperation(), mlir::Operation::getResult(), and mlir::Value::replaceAllUsesWith().
|
inlinestatic |
Definition at line 686 of file OpDefinition.h.
References mlir::OpTrait::impl::verifyOneResult().