MLIR-AIE
Registration.h
Go to the documentation of this file.
1//===- Registration.h -------------------------------------------*- C++ -*-===//
2//
3// Copyright (C) 2022, Advanced Micro Devices, Inc. All rights reserved.
4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5//
6//===----------------------------------------------------------------------===//
7
8#ifndef AIE_C_REGISTRATION_H
9#define AIE_C_REGISTRATION_H
10
11#include "mlir-c/IR.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17/** Registers all AIE dialects with a context.
18 * This is needed before creating IR for these Dialects.
19 */
20MLIR_CAPI_EXPORTED void aieRegisterAllDialects(MlirContext context);
21
22/** Registers all AIE passes for symbolic access with the global registry. */
23MLIR_CAPI_EXPORTED void aieRegisterAllPasses();
24
25#ifdef __cplusplus
26}
27#endif
28
29#endif // AIE_C_REGISTRATION_H
MLIR_CAPI_EXPORTED void aieRegisterAllDialects(MlirContext context)
Registers all AIE dialects with a context.
MLIR_CAPI_EXPORTED void aieRegisterAllPasses()
Registers all AIE passes for symbolic access with the global registry.