MLIR-AIE 1.4.5.dev
XLLVMToLLVMIRTranslation.h
Go to the documentation of this file.
1//===- XLLVMToLLVMIRTranslation.h - XLLVM to LLVM IR translate -*- C++ -*-===//
2//
3// Copyright (C) 2024 Advanced Micro Devices, Inc.
4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5//
6//===----------------------------------------------------------------------===//
7//
8// This provides registration calls for XLLVM intrinsics to LLVM IR
9// translation.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef AIE_TARGET_LLVMIR_DIALECT_XLLVM_H
14#define AIE_TARGET_LLVMIR_DIALECT_XLLVM_H
15
16namespace mlir {
17class DialectRegistry;
18class MLIRContext;
19} // namespace mlir
20
21namespace xilinx::xllvm {
22
23/// Register the AIEVec dialect and the translation from it to the LLVM dialect
24/// in the given registry.
25void registerXLLVMDialectTranslation(mlir::DialectRegistry &registry);
26
27/// Register the AIEVec dialect and the translation from it to the LLVM dialect
28/// in the registry associated with the given context.
29void registerXLLVMDialectTranslation(mlir::MLIRContext &context);
30
31} // namespace xilinx::xllvm
32
33#endif // AIE_TARGET_LLVMIR_DIALECT_AIEVEC_H
void registerXLLVMDialectTranslation(mlir::DialectRegistry &registry)
Register the AIEVec dialect and the translation from it to the LLVM dialect in the given registry.