[Mlir-commits] [mlir] abe501f - [mlir] Mark gpu dialect illegal in gpu-to-llvm conversion
Christian Sigg
llvmlistbot at llvm.org
Mon Jun 14 08:45:51 PDT 2021
Author: Christian Sigg
Date: 2021-06-14T17:45:44+02:00
New Revision: abe501f240c6b675b32c9b1e60dd4591a34c4f94
URL: https://github.com/llvm/llvm-project/commit/abe501f240c6b675b32c9b1e60dd4591a34c4f94
DIFF: https://github.com/llvm/llvm-project/commit/abe501f240c6b675b32c9b1e60dd4591a34c4f94.diff
LOG: [mlir] Mark gpu dialect illegal in gpu-to-llvm conversion
Reviewed By: herhut, bondhugula
Differential Revision: https://reviews.llvm.org/D104208
Added:
Modified:
mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp b/mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp
index 60a47a9d7befc..dcb28f462d570 100644
--- a/mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp
+++ b/mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp
@@ -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,
More information about the Mlir-commits
mailing list