Add lowering for loop.parallel to cfg.
authorStephan Herhut <herhut@google.com>
Fri, 24 Jan 2020 14:17:04 +0000 (15:17 +0100)
committerStephan Herhut <herhut@google.com>
Tue, 28 Jan 2020 10:55:51 +0000 (11:55 +0100)
commitfdcecefe30d8c54b51c8c796adbc9c60bb47088d
tree6e689ff74bd1757e58f840d6fef05ff2e8e67d2a
parent8ed47b74300e524de45d4589609b490581e9db2f
Add lowering for loop.parallel to cfg.

Summary:
This also removes the explicit pattern for loop.terminator to ensure
that the terminator is only erased if the parent op is rewritten.

Reductions are not yet supported.

Reviewers: nicolasvasilache

Subscribers: mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D73348
mlir/include/mlir/Dialect/LoopOps/LoopOps.td
mlir/lib/Conversion/LoopToStandard/ConvertLoopToStandard.cpp
mlir/test/Conversion/convert-to-cfg.mlir