low.copy
← low dialect
Explicit virtual-register copy used by lowering and allocation. Each copy produces a fresh virtual-register identity.
Operation contract
| Property |
Value |
| Semantic phase |
executable |
| Traits |
StorageRelation |
Signature
| Kind |
Name |
Type |
Cardinality |
Description |
| Operand |
source |
register |
required |
— |
| Result |
result |
register |
required |
— Produces a fresh allocation. |
| Attribute |
detached |
bool |
default False |
Prefer physical storage disjoint from the copy source. |
Verification constraints
SameRegisterClass(source, result)
Examples
%copy = low.copy %value : reg<amdgpu.vgpr x1> -> reg<amdgpu.vgpr x1>