Move dependentDialects from .cpp to .td
This commit is contained in:
@@ -9,6 +9,11 @@ def ConvertTritonToTritonGPU: Pass<"convert-triton-to-tritongpu", "mlir::ModuleO
|
||||
|
||||
}];
|
||||
let constructor = "mlir::triton::createConvertTritonToTritonGPUPass()";
|
||||
|
||||
let dependentDialects = ["mlir::arith::ArithmeticDialect",
|
||||
"mlir::StandardOpsDialect",
|
||||
// TODO: Does this pass depend on SCF?
|
||||
"mlir::scf::SCFDialect"];
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@@ -51,15 +51,6 @@ class ConvertTritonToTritonGPU:
|
||||
public ConvertTritonToTritonGPUBase<ConvertTritonToTritonGPU> {
|
||||
|
||||
public:
|
||||
void getDependentDialects(DialectRegistry& registry) const override {
|
||||
registry.insert<arith::ArithmeticDialect>();
|
||||
registry.insert<StandardOpsDialect>();
|
||||
registry.insert<scf::SCFDialect>();
|
||||
// LLVM15
|
||||
// registry.insert<cf::ControlFlowDialect>()
|
||||
// registry.insert<func::FuncDialect>()
|
||||
}
|
||||
|
||||
void runOnOperation() override {
|
||||
MLIRContext *context = &getContext();
|
||||
ConversionTarget target(*context);
|
||||
|
Reference in New Issue
Block a user