MLIR-AIE
InitialAllDialect.h
Go to the documentation of this file.
1// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
2// See https://llvm.org/LICENSE.txt for license information.
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4//
5// (c) Copyright 2021 Xilinx Inc.
6//
7//===----------------------------------------------------------------------===//
8//
9// This file defines a helper to trigger the registration of all dialects and
10// passes to the system.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef XILINX_INITALLDIALECTS_H_
15#define XILINX_INITALLDIALECTS_H_
16
23
24#include "mlir/IR/Dialect.h"
25
26namespace xilinx {
27
28// Add all the MLIR dialects to the provided registry.
29inline void registerAllDialects(mlir::DialectRegistry &registry) {
30 // clang-format off
31 registry.insert<
32 ADF::ADFDialect,
33 AIE::AIEDialect,
34 aievec::AIEVecDialect,
35 aievec::aie1::AIEVecAIE1Dialect,
36 AIEX::AIEXDialect,
37 xllvm::XLLVMDialect
38 >();
39 // clang-format on
40}
41
42} // namespace xilinx
43
44#endif // XILINX_INITALLDIALECTS_H_
void registerAllDialects(mlir::DialectRegistry &registry)