[mlir] Add structural conversion to async dialect lowering.
authorChristian Sigg <csigg@google.com>
Mon, 11 Jan 2021 19:34:44 +0000 (20:34 +0100)
committerChristian Sigg <csigg@google.com>
Mon, 11 Jan 2021 19:36:49 +0000 (20:36 +0100)
commit195728c75aa41d80254175c5d7ac2f881333b139
treee5c380a77f83af8c8497d296016fd31b065bdd6f
parent1027a22ccd72bb127253cf7d27f528712fa21fa0
[mlir] Add structural conversion to async dialect lowering.

Lowering of async dialect uses a fixed type converter and therefore does not support lowering non-standard types.

This revision adds a structural conversion so that non-standard types in `!async.value`s can be lowered to LLVM before lowering the async dialect itself.

Reviewed By: ezhulenev

Differential Revision: https://reviews.llvm.org/D94404
mlir/include/mlir/Conversion/AsyncToLLVM/AsyncToLLVM.h
mlir/lib/Conversion/AsyncToLLVM/AsyncToLLVM.cpp