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/IR/Dialect.h"
23#include "mlir/InitAllDialects.h"
24#include "mlir/InitAllExtensions.h"
25#include "mlir/Target/LLVMIR/Dialect/All.h"
26
27using namespace llvm;
28using namespace mlir;
29
31 xilinx::registerConversionPasses();
32 xilinx::AIE::registerAIEPasses();
33 xilinx::AIEX::registerAIEXPasses();
34 xilinx::aievec::registerAIEVecAnalysisPasses();
35 xilinx::aievec::registerAIEVecPasses();
37
38 DialectRegistry registry;
39 registerAllDialects(registry);
41
42 registerAllExtensions(registry);
43
44 registry.insert<DLTIDialect>();
45 xilinx::registerAllAIEToLLVMIRTranslations(registry);
46 registerAllToLLVMIRTranslations(registry);
47}
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)