Add the depedancy list to the SereneDialect definition

This commit is contained in:
Sameer Rahmani 2022-06-02 15:30:32 +01:00
parent 1325185d4f
commit bb49b7755d
2 changed files with 13 additions and 1 deletions

View File

@ -21,6 +21,9 @@
#include <serene/export.h>
#include <llvm/ADT/TypeSwitch.h>
#include <mlir/Dialect/Arithmetic/IR/Arithmetic.h>
#include <mlir/Dialect/Func/IR/FuncOps.h>
#include <mlir/Dialect/LLVMIR/LLVMDialect.h>
#include <mlir/IR/BuiltinOps.h>
#include <mlir/IR/Dialect.h>
#include <mlir/IR/DialectRegistry.h>
@ -29,6 +32,7 @@
#include <mlir/Interfaces/ControlFlowInterfaces.h>
#include <mlir/Interfaces/InferTypeOpInterface.h>
#include <mlir/Interfaces/SideEffectInterfaces.h>
// Include the auto-generated header file containing the declaration of the
// serene's dialect.
#include "serene/slir/dialect.h.inc"

View File

@ -42,10 +42,18 @@ def Serene_Dialect : Dialect {
// All the types have to define a mnemonic
let useDefaultTypePrinterParser = 1;
// TODO: Uncomment this when ever we have custom attrs
// All the attributes have to define a mnemonic
let useDefaultAttributePrinterParser = 1;
// let useDefaultAttributePrinterParser = 1;
let dependentDialects = [
"mlir::arith::ArithmeticDialect",
"mlir::func::FuncDialect",
"mlir::LLVM::LLVMDialect"
];
}
include "types.td"
include "ops.td"