ireevm.ref.retain
← ireevm dialect
Retain an additional owned IREE VM reference.
Operation contract
| Property |
Value |
| Semantic phase |
executable |
| Ownership effects |
retain resource (by_value), retained result |
Signature
| Kind |
Name |
Type |
Cardinality |
Description |
| Operand |
resource |
any |
required |
Reference value to retain. |
| Result |
result |
any |
required |
Retained owned reference. |
Verification constraints
SameType(resource, result)
Examples
%owned = ireevm.ref.retain %resource : ireevm.ref<ireevm.list<i32>> -> ireevm.ref<ireevm.list<i32>>