Skip to content

index.duplicate

← index dialect

Create another local owner of an index or offset value. The result preserves the address domain and facts while receiving a distinct SSA ownership identity.

Operation contract

Property Value
Semantic phase executable
Traits UniqueIdentity, StorageRelation
Interfaces ValueDuplication

Signature

Kind Name Type Cardinality Description
Operand sources any variadic —
Result duplicates any variadic —

Verification constraints

  • ClosedValueTuple(sources)
  • ClosedValueTuple(duplicates)
  • VariadicValuesMatch(duplicates, sources)

Examples

%copy = index.duplicate %coordinate : index
%copy = index.duplicate %byte_offset : offset