MLIR-AIE
XLLVMToLLVMIRTranslation.h
Go to the documentation of this file.
1//===- XLLVMToLLVMIRTranslation.h - XLLVM to LLVM IR translate -*- 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 2024 Advanced Micro Devices, Inc.
8//
9//===----------------------------------------------------------------------===//
10//
11// This provides registration calls for XLLVM intrinsics to LLVM IR
12// translation.
13//
14//===----------------------------------------------------------------------===//
15
16#ifndef AIE_TARGET_LLVMIR_DIALECT_XLLVM_H
17#define AIE_TARGET_LLVMIR_DIALECT_XLLVM_H
18
19namespace mlir {
20class DialectRegistry;
21class MLIRContext;
22} // namespace mlir
23
24namespace xilinx::xllvm {
25
26/// Register the AIEVec dialect and the translation from it to the LLVM dialect
27/// in the given registry.
28void registerXLLVMDialectTranslation(mlir::DialectRegistry &registry);
29
30/// Register the AIEVec dialect and the translation from it to the LLVM dialect
31/// in the registry associated with the given context.
32void registerXLLVMDialectTranslation(mlir::MLIRContext &context);
33
34} // namespace xilinx::xllvm
35
36#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.