|
| template<typename ToTy, typename = typename std::enable_if<std::is_assignable< typename ToTy::ValueType &, Ty>::value>::type> |
| | operator ToTy () const |
| | TypedValue can implicitly convert to TypedValue if B is assignable to A.
|
| Ty | getType () const |
| | Return the known Type.
|
| void | setType (Ty ty) |
| constexpr | Value (detail::ValueImpl *impl=nullptr) |
| constexpr | Value (detail::ValueImpl *impl=nullptr) |
| | operator bool () const |
| bool | operator== (const Value &other) const |
| bool | operator!= (const Value &other) const |
| Type | getType () const |
| | Return the type of this value.
|
| MLIRContext * | getContext () const |
| | Utility to get the associated MLIRContext that this value is defined in.
|
| void | setType (Type newType) |
| | Mutate the type of this Value to be of the specified type.
|
| Operation * | getDefiningOp () const |
| | If this value is the result of an operation, return the operation that defines it.
|
| template<typename OpTy> |
| OpTy | getDefiningOp () const |
| | If this value is the result of an operation of type OpTy, return the operation that defines it.
|
| Location | getLoc () const |
| | Return the location of this value.
|
| void | setLoc (Location loc) |
| Region * | getParentRegion () |
| | Return the Region in which this Value is defined.
|
| Block * | getParentBlock () |
| | Return the Block in which this Value is defined.
|
| void | dropAllUses () |
| | Drop all uses of this object from their respective owners.
|
| 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.
|
| void | replaceAllUsesExcept (Value newValue, const SmallPtrSetImpl< Operation * > &exceptions) |
| | Replace all uses of 'this' value with 'newValue', updating anything in the IR that uses 'this' to use the other value instead except if the user is listed in 'exceptions' .
|
| void | replaceAllUsesExcept (Value newValue, Operation *exceptedUser) |
| | Replace all uses of 'this' value with 'newValue', updating anything in the IR that uses 'this' to use the other value instead except if the user is 'exceptedUser'.
|
| void | replaceUsesWithIf (Value newValue, function_ref< bool(OpOperand &)> shouldReplace) |
| | Replace all uses of 'this' value with 'newValue' if the given callback returns true.
|
| bool | isUsedOutsideOfBlock (Block *block) const |
| | Returns true if the value is used outside of the given block.
|
| void | shuffleUseList (ArrayRef< unsigned > indices) |
| | Shuffle the use list order according to the provided indices.
|
| use_iterator | use_begin () const |
| use_iterator | use_end () const |
| use_range | getUses () const |
| | Returns a range of all uses, which is useful for iterating over all uses.
|
| unsigned | getNumUses () const |
| | This method computes the number of uses of this Value.
|
| bool | hasOneUse () const |
| | Returns true if this value has exactly one use.
|
| bool | hasNUses (unsigned n) const |
| | Return true if this Value has exactly n uses.
|
| bool | hasNUsesOrMore (unsigned n) const |
| | Return true if this value has n uses or more.
|
| bool | use_empty () const |
| | Returns true if this value has no uses.
|
| user_iterator | user_begin () const |
| user_iterator | user_end () const |
| user_range | getUsers () const |
| void | print (raw_ostream &os) const |
| void | print (raw_ostream &os, const OpPrintingFlags &flags) const |
| void | print (raw_ostream &os, AsmState &state) const |
| void | dump () const |
| void | printAsOperand (raw_ostream &os, AsmState &state) const |
| | Print this value as if it were an operand.
|
| void | printAsOperand (raw_ostream &os, const OpPrintingFlags &flags) const |
| void * | getAsOpaquePointer () const |
| | Methods for supporting PointerLikeTypeTraits.
|
| detail::ValueImpl * | getImpl () const |
| friend::llvm::hash_code | hash_value (Value arg) |
template<typename Ty>
struct mlir::detail::TypedValue< Ty >
TypedValue is a Value with a statically know type.
TypedValue can be null/empty
Definition at line 434 of file Value.h.