Add the depedancy list to the SereneDialect definition
This commit is contained in:
parent
1325185d4f
commit
bb49b7755d
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue