[mlir] Mark gpu dialect illegal in gpu-to-llvm conversion

Reviewed By: herhut, bondhugula

Differential Revision: https://reviews.llvm.org/D104208
This commit is contained in:
Christian Sigg 2021-06-14 09:14:30 +02:00
parent 96ca03493a
commit abe501f240
1 changed files with 2 additions and 0 deletions

View File

@ -311,6 +311,8 @@ void GpuToLLVMConversionPass::runOnOperation() {
RewritePatternSet patterns(&getContext());
LLVMConversionTarget target(getContext());
target.addIllegalDialect<gpu::GPUDialect>();
populateVectorToLLVMConversionPatterns(converter, patterns);
populateStdToLLVMConversionPatterns(converter, patterns);
populateAsyncStructuralTypeConversionsAndLegality(converter, patterns,