Depends On D125636
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Dialect/Bufferization/Transforms/Passes.td | ||
---|---|---|
217–219 | Is it okay for the function to destructively modify its inputs without being a configurable flag? |
mlir/include/mlir/Dialect/Bufferization/Transforms/Passes.td | ||
---|---|---|
217–219 | We analyze function call graphs and insert a buffer copy at the call site if needed. But this could be a problem if the function is called from an external function that we do not bufferize ourselves. Then we can't insert anything at the call site. We could add a configurable flag for this behavior. The current bufferization also has a bufferization.writable = "false" flag that can be added to function args and deactivates in-place writes to that particular tensor. |
Is it okay for the function to destructively modify its inputs without being a configurable flag?