[mlir] Fix for gpu-async-region pass.
authorChristian Sigg <csigg@google.com>
Tue, 15 Dec 2020 20:15:28 +0000 (21:15 +0100)
committerChristian Sigg <csigg@google.com>
Wed, 16 Dec 2020 18:08:10 +0000 (19:08 +0100)
commita79b26db0e96b6f6dd7888053ea300cfc2feb5a8
tree261622c982d7aa5b973f760d8608957dd2d861d8
parentd5700fdf10459dc2cd822fcec0e04d438376f74b
[mlir] Fix for gpu-async-region pass.

- the !gpu.async.token is the second result of 'gpu.alloc async', not the first.
- async.execute construction takes operand types not yet wrapped in !async.value.
- fix typo

Reviewed By: herhut

Differential Revision: https://reviews.llvm.org/D93156
mlir/lib/Dialect/GPU/Transforms/AsyncRegionRewriter.cpp
mlir/test/Dialect/GPU/async-region.mlir