Remove the dependency on TensorDialect

This commit is contained in:
Yan Da
2022-04-08 19:43:09 +08:00
parent a3d0812d27
commit 28e96bbfd1
3 changed files with 2 additions and 13 deletions

View File

@@ -7,9 +7,7 @@
#include "mlir/IR/Dialect.h"
#include "mlir/Interfaces/ControlFlowInterfaces.h"
#include "mlir/Dialect/StandardOps/IR/Ops.h"
#include "mlir/Dialect/Tensor/IR/Tensor.h"
#include "mlir/Dialect/SCF/SCF.h"
// #include "mlir/Dialect/ControlFlow/IR/ControlFlow.h"
#include "triton/ir/Dialect.h.inc"

View File

@@ -16,17 +16,12 @@ def Triton_Dialect : Dialect {
Dependent Dialects:
* Arithmetic:
* addf, addi, andi, cmpf, cmpi, divf, fptosi, ...
* Tensor:
* reshape (?)
* ControlFlow:
* bf, cond_bf
* Func:
* call, return
* StructuredControlFlow:
* ForOp, IfOp, WhileOp, YieldOp, ConditionOp
}];
let dependentDialects = [
"arith::ArithmeticDialect",
"tensor::TensorDialect",
"StandardOpsDialect",
"scf::SCFDialect"
@@ -35,8 +30,6 @@ def Triton_Dialect : Dialect {
// "func::FuncDialect"
];
// let useDefaultTypePrinterParser = 0;
let extraClassDeclaration = [{
void registerTypes();
}];

View File

@@ -15,7 +15,5 @@ add_mlir_dialect_library(TritonIR
# MLIRFunc
# else
MLIRStandard
MLIRTensor
MLIRSCF
)