Skip to content

Commit 25ee851

Browse files
committed
Revert "Separate the Registration from Loading dialects in the Context"
This reverts commit 2056393. Build is broken on a few bots
1 parent 2056393 commit 25ee851

File tree

92 files changed

+216
-714
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+216
-714
lines changed

flang/unittests/Lower/OpenMPLoweringTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
class OpenMPLoweringTest : public testing::Test {
1616
protected:
1717
void SetUp() override {
18-
ctx.loadDialect<mlir::omp::OpenMPDialect>();
18+
mlir::registerDialect<mlir::omp::OpenMPDialect>();
19+
mlir::registerAllDialects(&ctx);
1920
mlirOpBuilder.reset(new mlir::OpBuilder(&ctx));
2021
}
2122

mlir/examples/standalone/standalone-opt/standalone-opt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ int main(int argc, char **argv) {
7676
if (showDialects) {
7777
mlir::MLIRContext context;
7878
llvm::outs() << "Registered Dialects:\n";
79-
for (mlir::Dialect *dialect : context.getLoadedDialects()) {
79+
for (mlir::Dialect *dialect : context.getRegisteredDialects()) {
8080
llvm::outs() << dialect->getNamespace() << "\n";
8181
}
8282
return 0;

mlir/examples/toy/Ch2/toyc.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,10 @@ std::unique_ptr<toy::ModuleAST> parseInputFile(llvm::StringRef filename) {
6868
}
6969

7070
int dumpMLIR() {
71-
mlir::MLIRContext context(/*loadAllDialects=*/false);
72-
// Load our Dialect in this MLIR Context.
73-
context.getOrLoadDialect<mlir::toy::ToyDialect>();
71+
// Register our Dialect with MLIR.
72+
mlir::registerDialect<mlir::toy::ToyDialect>();
73+
74+
mlir::MLIRContext context;
7475

7576
// Handle '.toy' input to the compiler.
7677
if (inputType != InputType::MLIR &&

mlir/examples/toy/Ch3/toyc.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ int loadMLIR(llvm::SourceMgr &sourceMgr, mlir::MLIRContext &context,
102102
}
103103

104104
int dumpMLIR() {
105-
mlir::MLIRContext context(/*loadAllDialects=*/false);
106-
// Load our Dialect in this MLIR Context.
107-
context.getOrLoadDialect<mlir::toy::ToyDialect>();
105+
// Register our Dialect with MLIR.
106+
mlir::registerDialect<mlir::toy::ToyDialect>();
108107

108+
mlir::MLIRContext context;
109109
mlir::OwningModuleRef module;
110110
llvm::SourceMgr sourceMgr;
111111
mlir::SourceMgrDiagnosticHandler sourceMgrHandler(sourceMgr, &context);

mlir/examples/toy/Ch4/toyc.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ int loadMLIR(llvm::SourceMgr &sourceMgr, mlir::MLIRContext &context,
103103
}
104104

105105
int dumpMLIR() {
106-
mlir::MLIRContext context(/*loadAllDialects=*/false);
107-
// Load our Dialect in this MLIR Context.
108-
context.getOrLoadDialect<mlir::toy::ToyDialect>();
106+
// Register our Dialect with MLIR.
107+
mlir::registerDialect<mlir::toy::ToyDialect>();
109108

109+
mlir::MLIRContext context;
110110
mlir::OwningModuleRef module;
111111
llvm::SourceMgr sourceMgr;
112112
mlir::SourceMgrDiagnosticHandler sourceMgrHandler(sourceMgr, &context);

mlir/examples/toy/Ch5/mlir/LowerToAffineLoops.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,6 @@ struct TransposeOpLowering : public ConversionPattern {
256256
namespace {
257257
struct ToyToAffineLoweringPass
258258
: public PassWrapper<ToyToAffineLoweringPass, FunctionPass> {
259-
void getDependentDialects(DialectRegistry &registry) const override {
260-
registry.insert<AffineDialect, StandardOpsDialect>();
261-
}
262259
void runOnFunction() final;
263260
};
264261
} // end anonymous namespace.

mlir/examples/toy/Ch5/toyc.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ int loadMLIR(llvm::SourceMgr &sourceMgr, mlir::MLIRContext &context,
106106
}
107107

108108
int dumpMLIR() {
109-
mlir::MLIRContext context(/*loadAllDialects=*/false);
110-
// Load our Dialect in this MLIR Context.
111-
context.getOrLoadDialect<mlir::toy::ToyDialect>();
109+
// Register our Dialect with MLIR.
110+
mlir::registerDialect<mlir::toy::ToyDialect>();
112111

112+
mlir::MLIRContext context;
113113
mlir::OwningModuleRef module;
114114
llvm::SourceMgr sourceMgr;
115115
mlir::SourceMgrDiagnosticHandler sourceMgrHandler(sourceMgr, &context);

mlir/examples/toy/Ch6/mlir/LowerToAffineLoops.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,6 @@ struct TransposeOpLowering : public ConversionPattern {
255255
namespace {
256256
struct ToyToAffineLoweringPass
257257
: public PassWrapper<ToyToAffineLoweringPass, FunctionPass> {
258-
void getDependentDialects(DialectRegistry &registry) const override {
259-
registry.insert<AffineDialect, StandardOpsDialect>();
260-
}
261258
void runOnFunction() final;
262259
};
263260
} // end anonymous namespace.

mlir/examples/toy/Ch6/mlir/LowerToLLVM.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,6 @@ class PrintOpLowering : public ConversionPattern {
159159
namespace {
160160
struct ToyToLLVMLoweringPass
161161
: public PassWrapper<ToyToLLVMLoweringPass, OperationPass<ModuleOp>> {
162-
void getDependentDialects(DialectRegistry &registry) const override {
163-
registry.insert<LLVM::LLVMDialect, scf::SCFDialect>();
164-
}
165162
void runOnOperation() final;
166163
};
167164
} // end anonymous namespace

mlir/examples/toy/Ch6/toyc.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,10 @@ int main(int argc, char **argv) {
255255

256256
// If we aren't dumping the AST, then we are compiling with/to MLIR.
257257

258-
mlir::MLIRContext context(/*loadAllDialects=*/false);
259-
// Load our Dialect in this MLIR Context.
260-
context.getOrLoadDialect<mlir::toy::ToyDialect>();
258+
// Register our Dialect with MLIR.
259+
mlir::registerDialect<mlir::toy::ToyDialect>();
261260

261+
mlir::MLIRContext context;
262262
mlir::OwningModuleRef module;
263263
if (int error = loadAndProcessMLIR(context, module))
264264
return error;

mlir/examples/toy/Ch7/mlir/LowerToAffineLoops.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,6 @@ struct TransposeOpLowering : public ConversionPattern {
256256
namespace {
257257
struct ToyToAffineLoweringPass
258258
: public PassWrapper<ToyToAffineLoweringPass, FunctionPass> {
259-
void getDependentDialects(DialectRegistry &registry) const override {
260-
registry.insert<AffineDialect, StandardOpsDialect>();
261-
}
262259
void runOnFunction() final;
263260
};
264261
} // end anonymous namespace.

mlir/examples/toy/Ch7/mlir/LowerToLLVM.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,6 @@ class PrintOpLowering : public ConversionPattern {
159159
namespace {
160160
struct ToyToLLVMLoweringPass
161161
: public PassWrapper<ToyToLLVMLoweringPass, OperationPass<ModuleOp>> {
162-
void getDependentDialects(DialectRegistry &registry) const override {
163-
registry.insert<LLVM::LLVMDialect, scf::SCFDialect>();
164-
}
165162
void runOnOperation() final;
166163
};
167164
} // end anonymous namespace

mlir/examples/toy/Ch7/toyc.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,10 @@ int main(int argc, char **argv) {
256256

257257
// If we aren't dumping the AST, then we are compiling with/to MLIR.
258258

259-
mlir::MLIRContext context(/*loadAllDialects=*/false);
260-
// Load our Dialect in this MLIR Context.
261-
context.getOrLoadDialect<mlir::toy::ToyDialect>();
259+
// Register our Dialect with MLIR.
260+
mlir::registerDialect<mlir::toy::ToyDialect>();
262261

262+
mlir::MLIRContext context;
263263
mlir::OwningModuleRef module;
264264
if (int error = loadAndProcessMLIR(context, module))
265265
return error;

mlir/include/mlir-c/IR.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,6 @@ MlirContext mlirContextCreate();
9090
/** Takes an MLIR context owned by the caller and destroys it. */
9191
void mlirContextDestroy(MlirContext context);
9292

93-
/** Load all the globally registered dialects in the provided context.
94-
* TODO: remove the concept of globally registered dialect by exposing the
95-
* DialectRegistry.
96-
*/
97-
void mlirContextLoadAllDialects(MlirContext context);
98-
9993
/*============================================================================*/
10094
/* Location API. */
10195
/*============================================================================*/

mlir/include/mlir/Conversion/Passes.td

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,6 @@ def ConvertAffineToStandard : Pass<"lower-affine"> {
6666
`affine.apply`.
6767
}];
6868
let constructor = "mlir::createLowerAffinePass()";
69-
let dependentDialects = [
70-
"scf::SCFDialect",
71-
"StandardOpsDialect",
72-
"vector::VectorDialect"
73-
];
7469
}
7570

7671
//===----------------------------------------------------------------------===//
@@ -81,7 +76,6 @@ def ConvertAVX512ToLLVM : Pass<"convert-avx512-to-llvm", "ModuleOp"> {
8176
let summary = "Convert the operations from the avx512 dialect into the LLVM "
8277
"dialect";
8378
let constructor = "mlir::createConvertAVX512ToLLVMPass()";
84-
let dependentDialects = ["LLVM::LLVMDialect", "LLVM::LLVMAVX512Dialect"];
8579
}
8680

8781
//===----------------------------------------------------------------------===//
@@ -104,7 +98,6 @@ def GpuToLLVMConversionPass : Pass<"gpu-to-llvm", "ModuleOp"> {
10498
def ConvertGpuOpsToNVVMOps : Pass<"convert-gpu-to-nvvm", "gpu::GPUModuleOp"> {
10599
let summary = "Generate NVVM operations for gpu operations";
106100
let constructor = "mlir::createLowerGpuOpsToNVVMOpsPass()";
107-
let dependentDialects = ["NVVM::NVVMDialect"];
108101
let options = [
109102
Option<"indexBitwidth", "index-bitwidth", "unsigned",
110103
/*default=kDeriveIndexBitwidthFromDataLayout*/"0",
@@ -119,7 +112,6 @@ def ConvertGpuOpsToNVVMOps : Pass<"convert-gpu-to-nvvm", "gpu::GPUModuleOp"> {
119112
def ConvertGpuOpsToROCDLOps : Pass<"convert-gpu-to-rocdl", "gpu::GPUModuleOp"> {
120113
let summary = "Generate ROCDL operations for gpu operations";
121114
let constructor = "mlir::createLowerGpuOpsToROCDLOpsPass()";
122-
let dependentDialects = ["ROCDL::ROCDLDialect"];
123115
let options = [
124116
Option<"indexBitwidth", "index-bitwidth", "unsigned",
125117
/*default=kDeriveIndexBitwidthFromDataLayout*/"0",
@@ -134,7 +126,6 @@ def ConvertGpuOpsToROCDLOps : Pass<"convert-gpu-to-rocdl", "gpu::GPUModuleOp"> {
134126
def ConvertGPUToSPIRV : Pass<"convert-gpu-to-spirv", "ModuleOp"> {
135127
let summary = "Convert GPU dialect to SPIR-V dialect";
136128
let constructor = "mlir::createConvertGPUToSPIRVPass()";
137-
let dependentDialects = ["spirv::SPIRVDialect"];
138129
}
139130

140131
//===----------------------------------------------------------------------===//
@@ -145,15 +136,13 @@ def ConvertGpuLaunchFuncToVulkanLaunchFunc
145136
: Pass<"convert-gpu-launch-to-vulkan-launch", "ModuleOp"> {
146137
let summary = "Convert gpu.launch_func to vulkanLaunch external call";
147138
let constructor = "mlir::createConvertGpuLaunchFuncToVulkanLaunchFuncPass()";
148-
let dependentDialects = ["spirv::SPIRVDialect"];
149139
}
150140

151141
def ConvertVulkanLaunchFuncToVulkanCalls
152142
: Pass<"launch-func-to-vulkan", "ModuleOp"> {
153143
let summary = "Convert vulkanLaunch external call to Vulkan runtime external "
154144
"calls";
155145
let constructor = "mlir::createConvertVulkanLaunchFuncToVulkanCallsPass()";
156-
let dependentDialects = ["LLVM::LLVMDialect"];
157146
}
158147

159148
//===----------------------------------------------------------------------===//
@@ -164,7 +153,6 @@ def ConvertLinalgToLLVM : Pass<"convert-linalg-to-llvm", "ModuleOp"> {
164153
let summary = "Convert the operations from the linalg dialect into the LLVM "
165154
"dialect";
166155
let constructor = "mlir::createConvertLinalgToLLVMPass()";
167-
let dependentDialects = ["scf::SCFDialect", "LLVM::LLVMDialect"];
168156
}
169157

170158
//===----------------------------------------------------------------------===//
@@ -175,7 +163,6 @@ def ConvertLinalgToStandard : Pass<"convert-linalg-to-std", "ModuleOp"> {
175163
let summary = "Convert the operations from the linalg dialect into the "
176164
"Standard dialect";
177165
let constructor = "mlir::createConvertLinalgToStandardPass()";
178-
let dependentDialects = ["StandardOpsDialect"];
179166
}
180167

181168
//===----------------------------------------------------------------------===//
@@ -185,7 +172,6 @@ def ConvertLinalgToStandard : Pass<"convert-linalg-to-std", "ModuleOp"> {
185172
def ConvertLinalgToSPIRV : Pass<"convert-linalg-to-spirv", "ModuleOp"> {
186173
let summary = "Convert Linalg ops to SPIR-V ops";
187174
let constructor = "mlir::createLinalgToSPIRVPass()";
188-
let dependentDialects = ["spirv::SPIRVDialect"];
189175
}
190176

191177
//===----------------------------------------------------------------------===//
@@ -196,7 +182,6 @@ def SCFToStandard : Pass<"convert-scf-to-std"> {
196182
let summary = "Convert SCF dialect to Standard dialect, replacing structured"
197183
" control flow with a CFG";
198184
let constructor = "mlir::createLowerToCFGPass()";
199-
let dependentDialects = ["StandardOpsDialect"];
200185
}
201186

202187
//===----------------------------------------------------------------------===//
@@ -206,7 +191,6 @@ def SCFToStandard : Pass<"convert-scf-to-std"> {
206191
def ConvertAffineForToGPU : FunctionPass<"convert-affine-for-to-gpu"> {
207192
let summary = "Convert top-level AffineFor Ops to GPU kernels";
208193
let constructor = "mlir::createAffineForToGPUPass()";
209-
let dependentDialects = ["gpu::GPUDialect"];
210194
let options = [
211195
Option<"numBlockDims", "gpu-block-dims", "unsigned", /*default=*/"1u",
212196
"Number of GPU block dimensions for mapping">,
@@ -218,7 +202,6 @@ def ConvertAffineForToGPU : FunctionPass<"convert-affine-for-to-gpu"> {
218202
def ConvertParallelLoopToGpu : Pass<"convert-parallel-loops-to-gpu"> {
219203
let summary = "Convert mapped scf.parallel ops to gpu launch operations";
220204
let constructor = "mlir::createParallelLoopToGpuPass()";
221-
let dependentDialects = ["AffineDialect", "gpu::GPUDialect"];
222205
}
223206

224207
//===----------------------------------------------------------------------===//
@@ -229,7 +212,6 @@ def ConvertShapeToStandard : Pass<"convert-shape-to-std", "ModuleOp"> {
229212
let summary = "Convert operations from the shape dialect into the standard "
230213
"dialect";
231214
let constructor = "mlir::createConvertShapeToStandardPass()";
232-
let dependentDialects = ["StandardOpsDialect"];
233215
}
234216

235217
//===----------------------------------------------------------------------===//
@@ -239,7 +221,6 @@ def ConvertShapeToStandard : Pass<"convert-shape-to-std", "ModuleOp"> {
239221
def ConvertShapeToSCF : FunctionPass<"convert-shape-to-scf"> {
240222
let summary = "Convert operations from the shape dialect to the SCF dialect";
241223
let constructor = "mlir::createConvertShapeToSCFPass()";
242-
let dependentDialects = ["scf::SCFDialect"];
243224
}
244225

245226
//===----------------------------------------------------------------------===//
@@ -249,7 +230,6 @@ def ConvertShapeToSCF : FunctionPass<"convert-shape-to-scf"> {
249230
def ConvertSPIRVToLLVM : Pass<"convert-spirv-to-llvm", "ModuleOp"> {
250231
let summary = "Convert SPIR-V dialect to LLVM dialect";
251232
let constructor = "mlir::createConvertSPIRVToLLVMPass()";
252-
let dependentDialects = ["LLVM::LLVMDialect"];
253233
}
254234

255235
//===----------------------------------------------------------------------===//
@@ -284,7 +264,6 @@ def ConvertStandardToLLVM : Pass<"convert-std-to-llvm", "ModuleOp"> {
284264
LLVM IR types.
285265
}];
286266
let constructor = "mlir::createLowerToLLVMPass()";
287-
let dependentDialects = ["LLVM::LLVMDialect"];
288267
let options = [
289268
Option<"useAlignedAlloc", "use-aligned-alloc", "bool", /*default=*/"false",
290269
"Use aligned_alloc in place of malloc for heap allocations">,
@@ -308,13 +287,11 @@ def ConvertStandardToLLVM : Pass<"convert-std-to-llvm", "ModuleOp"> {
308287
def LegalizeStandardForSPIRV : Pass<"legalize-std-for-spirv"> {
309288
let summary = "Legalize standard ops for SPIR-V lowering";
310289
let constructor = "mlir::createLegalizeStdOpsForSPIRVLoweringPass()";
311-
let dependentDialects = ["spirv::SPIRVDialect"];
312290
}
313291

314292
def ConvertStandardToSPIRV : Pass<"convert-std-to-spirv", "ModuleOp"> {
315293
let summary = "Convert Standard Ops to SPIR-V dialect";
316294
let constructor = "mlir::createConvertStandardToSPIRVPass()";
317-
let dependentDialects = ["spirv::SPIRVDialect"];
318295
}
319296

320297
//===----------------------------------------------------------------------===//
@@ -325,7 +302,6 @@ def ConvertVectorToSCF : FunctionPass<"convert-vector-to-scf"> {
325302
let summary = "Lower the operations from the vector dialect into the SCF "
326303
"dialect";
327304
let constructor = "mlir::createConvertVectorToSCFPass()";
328-
let dependentDialects = ["AffineDialect", "scf::SCFDialect"];
329305
let options = [
330306
Option<"fullUnroll", "full-unroll", "bool", /*default=*/"false",
331307
"Perform full unrolling when converting vector transfers to SCF">,
@@ -340,7 +316,6 @@ def ConvertVectorToLLVM : Pass<"convert-vector-to-llvm", "ModuleOp"> {
340316
let summary = "Lower the operations from the vector dialect into the LLVM "
341317
"dialect";
342318
let constructor = "mlir::createConvertVectorToLLVMPass()";
343-
let dependentDialects = ["LLVM::LLVMDialect"];
344319
let options = [
345320
Option<"reassociateFPReductions", "reassociate-fp-reductions",
346321
"bool", /*default=*/"false",
@@ -356,7 +331,6 @@ def ConvertVectorToROCDL : Pass<"convert-vector-to-rocdl", "ModuleOp"> {
356331
let summary = "Lower the operations from the vector dialect into the ROCDL "
357332
"dialect";
358333
let constructor = "mlir::createConvertVectorToROCDLPass()";
359-
let dependentDialects = ["ROCDL::ROCDLDialect"];
360334
}
361335

362336
#endif // MLIR_CONVERSION_PASSES

mlir/include/mlir/Dialect/Affine/Passes.td

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def AffineLoopUnrollAndJam : FunctionPass<"affine-loop-unroll-jam"> {
9494
def AffineVectorize : FunctionPass<"affine-super-vectorize"> {
9595
let summary = "Vectorize to a target independent n-D vector abstraction";
9696
let constructor = "mlir::createSuperVectorizePass()";
97-
let dependentDialects = ["vector::VectorDialect"];
9897
let options = [
9998
ListOption<"vectorSizes", "virtual-vector-size", "int64_t",
10099
"Specify an n-D virtual vector size for vectorization",

mlir/include/mlir/Dialect/LLVMIR/LLVMDialect.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#define MLIR_DIALECT_LLVMIR_LLVMDIALECT_H_
1616

1717
#include "mlir/Dialect/LLVMIR/LLVMTypes.h"
18-
#include "mlir/Dialect/OpenMP/OpenMPDialect.h"
1918
#include "mlir/IR/Dialect.h"
2019
#include "mlir/IR/Function.h"
2120
#include "mlir/IR/OpDefinition.h"

mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ include "mlir/IR/OpBase.td"
1919
def LLVM_Dialect : Dialect {
2020
let name = "llvm";
2121
let cppNamespace = "LLVM";
22-
23-
/// FIXME: at the moment this is a dependency of the translation to LLVM IR,
24-
/// not really one of this dialect per-se.
25-
let dependentDialects = ["omp::OpenMPDialect"];
26-
2722
let hasRegionArgAttrVerify = 1;
2823
let extraClassDeclaration = [{
2924
~LLVMDialect();

mlir/include/mlir/Dialect/LLVMIR/NVVMDialect.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#ifndef MLIR_DIALECT_LLVMIR_NVVMDIALECT_H_
1515
#define MLIR_DIALECT_LLVMIR_NVVMDIALECT_H_
1616

17-
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
1817
#include "mlir/IR/Dialect.h"
1918
#include "mlir/IR/OpDefinition.h"
2019
#include "mlir/Interfaces/SideEffectInterfaces.h"

mlir/include/mlir/Dialect/LLVMIR/NVVMOps.td

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ include "mlir/Interfaces/SideEffectInterfaces.td"
2323
def NVVM_Dialect : Dialect {
2424
let name = "nvvm";
2525
let cppNamespace = "NVVM";
26-
let dependentDialects = ["LLVM::LLVMDialect"];
2726
}
2827

2928
//===----------------------------------------------------------------------===//

mlir/include/mlir/Dialect/LLVMIR/ROCDLDialect.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#ifndef MLIR_DIALECT_LLVMIR_ROCDLDIALECT_H_
2323
#define MLIR_DIALECT_LLVMIR_ROCDLDIALECT_H_
2424

25-
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
2625
#include "mlir/IR/Dialect.h"
2726
#include "mlir/IR/OpDefinition.h"
2827
#include "mlir/Interfaces/SideEffectInterfaces.h"

0 commit comments

Comments
 (0)