MLIR-AIE
Registration.cpp
Go to the documentation of this file.
1//===- Registration.cpp -----------------------------------------*- C++ -*-===//
2//
3// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7// (c) Copyright 2022-2024 Advanced Micro Devices, Inc. or its affiliates
8//
9//===----------------------------------------------------------------------===//
10
11#include "aie-c/Registration.h"
12
21
22#include "mlir/Dialect/DLTI/DLTI.h"
23#include "mlir/IR/Dialect.h"
24#include "mlir/InitAllDialects.h"
25#include "mlir/InitAllExtensions.h"
26#include "mlir/Target/LLVMIR/Dialect/All.h"
27
28using namespace llvm;
29using namespace mlir;
30
32 xilinx::registerConversionPasses();
33 xilinx::AIE::registerAIEPasses();
34 xilinx::AIEX::registerAIEXPasses();
35 xilinx::aievec::registerAIEVecAnalysisPasses();
36 xilinx::aievec::registerAIEVecPasses();
38
39 DialectRegistry registry;
40 registerAllDialects(registry);
42
43 registerAllExtensions(registry);
44
45 registry.insert<DLTIDialect>();
46 xilinx::registerAllAIEToLLVMIRTranslations(registry);
47 registerAllToLLVMIRTranslations(registry);
48}
void aieRegisterAllPasses()
Registers all AIE passes for symbolic access with the global registry.
void registerAIEVecPipelines()
Register all pipelines for the AIE Vector dialect.
void registerAllDialects(mlir::DialectRegistry &registry)