diff options
author | Christian Sigg <csigg@google.com> | 2021-02-24 15:02:30 +0100 |
---|---|---|
committer | Christian Sigg <csigg@google.com> | 2021-02-25 13:18:18 +0100 |
commit | f03826f896beb7edb68c7576be4721ff8711dacb (patch) | |
tree | 9ced61c0876de1169781a76d495e8163cbdc88d4 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 84413e1947427a917a3e55abfc1f66c42adc751b (diff) | |
download | llvm-f03826f896beb7edb68c7576be4721ff8711dacb.zip llvm-f03826f896beb7edb68c7576be4721ff8711dacb.tar.gz llvm-f03826f896beb7edb68c7576be4721ff8711dacb.tar.bz2 |
Pass GPU events instead of streams across async regions.
Lower !gpu.async.tokens returned from async.execute regions to events instead of streams.
Make !gpu.async.token returned from !async.execute single-use.
This allows creating one event per use and destroying them without leaking or ref-counting.
Technically we only need this for stream/event-based lowering. I kept the code separate
from the rest of the gpu-async-region pass so that we can make this optional or move
to a separate pass as needed.
Reviewed By: herhut
Differential Revision: https://reviews.llvm.org/D96965
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions