File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
mlir/lib/Conversion/SCFToGPU Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ add_mlir_conversion_library(MLIRSCFToGPU
11
11
LINK_LIBS PUBLIC
12
12
MLIRAffine
13
13
MLIRAffineToStandard
14
+ MLIRComplex
14
15
MLIRGPU
15
16
MLIRIR
16
17
MLIRLinalg
Original file line number Diff line number Diff line change 10
10
#include " ../PassDetail.h"
11
11
#include " mlir/Conversion/SCFToGPU/SCFToGPU.h"
12
12
#include " mlir/Dialect/Affine/IR/AffineOps.h"
13
+ #include " mlir/Dialect/Complex/IR/Complex.h"
13
14
#include " mlir/Dialect/GPU/GPUDialect.h"
14
15
#include " mlir/Dialect/SCF/SCF.h"
15
16
#include " mlir/Dialect/StandardOps/IR/Ops.h"
@@ -49,10 +50,9 @@ struct ParallelLoopToGpuPass
49
50
OwningRewritePatternList patterns;
50
51
populateParallelLoopToGPUPatterns (patterns, &getContext ());
51
52
ConversionTarget target (getContext ());
52
- target.addLegalDialect <StandardOpsDialect>();
53
- target.addLegalDialect <AffineDialect>();
54
- target.addLegalDialect <gpu::GPUDialect>();
55
- target.addLegalDialect <scf::SCFDialect>();
53
+ target.addLegalDialect <AffineDialect, complex::ComplexDialect,
54
+ gpu::GPUDialect, scf::SCFDialect,
55
+ StandardOpsDialect>();
56
56
configureParallelLoopToGPULegality (target);
57
57
if (failed (applyPartialConversion (getOperation (), target,
58
58
std::move (patterns))))
You can’t perform that action at this time.
0 commit comments