MLIR-AIE 1.4.5.dev
InitialAllDialect.h
Go to the documentation of this file.
1// Copyright (C) 2021-2022 Xilinx, Inc.
2// Copyright (C) 2022-2024 Advanced Micro Devices, Inc.
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4//
5//===----------------------------------------------------------------------===//
6//
7// This file defines a helper to trigger the registration of all dialects and
8// passes to the system.
9//
10//===----------------------------------------------------------------------===//
11
12#ifndef XILINX_INITALLDIALECTS_H_
13#define XILINX_INITALLDIALECTS_H_
14
20
21#include "mlir/IR/Dialect.h"
22
23namespace xilinx {
24
25// Add all the MLIR dialects to the provided registry.
26inline void registerAllDialects(mlir::DialectRegistry &registry) {
27 // clang-format off
28 registry.insert<
29 AIE::AIEDialect,
30 aievec::AIEVecDialect,
31 aievec::aie1::AIEVecAIE1Dialect,
32 AIEX::AIEXDialect,
33 xllvm::XLLVMDialect
34 >();
35 // clang-format on
36}
37
38} // namespace xilinx
39
40#endif // XILINX_INITALLDIALECTS_H_
void registerAllDialects(mlir::DialectRegistry &registry)