Skip to content

buffer.duplicate

← buffer dialect

Create another local owner of a buffer root. The duplicate identifies the same opaque storage and may lower to the same physical carrier, but remains 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 = buffer.duplicate %source : buffer