diff options
author | Wenyi Zhao <reyizero@gmail.com> | 2021-05-19 02:11:33 +0000 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2021-05-19 02:51:14 +0000 |
commit | 851d02f61e945d335021858111416f444139e2b2 (patch) | |
tree | fa3dc0d208c2a115396055d0c721e4a28e438dd9 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 80d981eda69f1ada6d944ed89571456cad13b850 (diff) | |
download | llvm-851d02f61e945d335021858111416f444139e2b2.zip llvm-851d02f61e945d335021858111416f444139e2b2.tar.gz llvm-851d02f61e945d335021858111416f444139e2b2.tar.bz2 |
Enhance InferShapedTypeOpInterface to make it accessible during dialect conversion
Original interfaces are not safe to be called during dialect conversion.
This is because some ops (e.g. `dynamic_reshape(input, target_shape)`)
depend on the values of their operands to calculate the output shape.
However the operands may be out of reach during dialect conversion (e.g.
converting from tensor world to buffer world). This patch provides a new
kind of interface which accpets user-provided operands to solve this
problem.
Reviewed By: herhut
Differential Revision: https://reviews.llvm.org/D102317
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions