diff options
| author | Nagy Mostafa <nagy.h.mostafa@intel.com> | 2020-02-21 09:58:00 -0800 |
|---|---|---|
| committer | Diego Caballero <diego.caballero@intel.com> | 2020-02-21 10:05:32 -0800 |
| commit | bc7b26c333f51b4b534abb81d597c0b86123718c (patch) | |
| tree | 4cf07723592bfa3f799e08cb3eca660f4b249622 /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h | |
| parent | 31ec721516b5ed36f7dbed180a903e269f29716d (diff) | |
| download | llvm-bc7b26c333f51b4b534abb81d597c0b86123718c.zip llvm-bc7b26c333f51b4b534abb81d597c0b86123718c.tar.gz llvm-bc7b26c333f51b4b534abb81d597c0b86123718c.tar.bz2 | |
[MLIR] Allow Loop dialect IfOp and ForOp to define values
This patch implements the RFCs proposed here:
https://llvm.discourse.group/t/rfc-modify-ifop-in-loop-dialect-to-yield-values/463
https://llvm.discourse.group/t/rfc-adding-operands-and-results-to-loop-for/459/19.
It introduces the following changes:
- All Loop Ops region, except for ReduceOp, terminate with a YieldOp.
- YieldOp can have variadice operands that is used to return values out of IfOp and ForOp regions.
- Change IfOp and ForOp syntax and representation to define values.
- Add unit-tests and update .td documentation.
- YieldOp is a terminator to loop.for/if/parallel
- YieldOp custom parser and printer
Lowering is not supported at the moment, and will be in a follow-up PR.
Thanks.
Reviewed By: bondhugula, nicolasvasilache, rriddle
Differential Revision: https://reviews.llvm.org/D74174
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h')
0 files changed, 0 insertions, 0 deletions
