Skip to content

Commit 042912f

Browse files
authored
[MLIR] Document the need for updating the cached symbol tables during bufferization (#141594)
1 parent f2cd146 commit 042912f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.td

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,11 @@ def BufferizableOpInterface : OpInterface<"BufferizableOpInterface"> {
416416
expected to survive bufferization, `success` should be returned
417417
(together with `allow-unknown-ops` enabled).
418418

419+
If the bufferized operation has symbol semantics (i.e., it defines a
420+
symbol or a symbol table), the implementation is expected to update
421+
the cached symbol tables -- within the bufferization state -- to keep
422+
them in a consistent state.
423+
419424
Note: If this op supports unstructured control flow in its regions,
420425
then this function should also bufferize all block signatures that
421426
belong to this op. Branch ops (that branch to a block) are typically

0 commit comments

Comments
 (0)