forked from OSchip/llvm-project
57fe7fd37d
scf::ForOp bufferization analysis proceeds just like for any other op (including FuncOp) at its boundaries; i.e. if: 1. The tensor operand is inplaceable. 2. The matching result has no subsequent read (i.e. all reads dominate the scf::ForOp). 3. In and does not create a RAW interference. then it can bufferize inplace. Still there are a few differences: 1. bbArgs for an scf::ForOp are always considered inplaceable when seen from ops inside the body. This is because a) either the matching tensor operand is not inplaceable and an alloc will be inserted (which makes bbArg itself inplaceable); or b) the tensor operand and bbArg are both already inplaceable. 2. Bufferization within the scf::ForOp body has implications to the outside world : the scf.yield terminator may well ping-pong values of the same type. This muddies the water for alias analysis and is not supported atm. Such cases result in a pass failure. Differential revision: https://reviews.llvm.org/D104490 |
||
---|---|---|
.. | ||
Analysis | ||
CAPI | ||
Conversion | ||
Dialect | ||
Examples | ||
IR | ||
Integration | ||
Interfaces | ||
Pass | ||
Rewrite | ||
SDBM | ||
Target | ||
Transforms | ||
Unit | ||
lib | ||
mlir-cpu-runner | ||
mlir-linalg-ods-gen | ||
mlir-lsp-server | ||
mlir-opt | ||
mlir-reduce | ||
mlir-spirv-cpu-runner | ||
mlir-tblgen | ||
mlir-translate | ||
mlir-vulkan-runner | ||
python | ||
APITest.h | ||
CMakeLists.txt | ||
lit.cfg.py | ||
lit.site.cfg.py.in |