2020-09-29 09:36:00 +08:00
|
|
|
/*===-- npcomp-c/Registration.h - Registration functions ---------*- C -*-===*\
|
|
|
|
|* *|
|
|
|
|
|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *|
|
|
|
|
|* Exceptions. *|
|
|
|
|
|* See https://llvm.org/LICENSE.txt for license information. *|
|
|
|
|
|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *|
|
|
|
|
|* *|
|
|
|
|
\*===----------------------------------------------------------------------===*/
|
|
|
|
|
|
|
|
#ifndef NPCOMP_C_REGISTRATION_H
|
|
|
|
#define NPCOMP_C_REGISTRATION_H
|
|
|
|
|
|
|
|
#include "mlir-c/IR.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/** Registers all NPComp dialects with a context.
|
|
|
|
* This is needed before creating IR for these Dialects.
|
|
|
|
*/
|
|
|
|
void npcompRegisterAllDialects(MlirContext context);
|
|
|
|
|
2020-12-30 05:22:18 +08:00
|
|
|
/** Registers all NPComp passes for symbolic access with the global registry. */
|
|
|
|
void npcompRegisterAllPasses();
|
|
|
|
|
2020-09-29 09:36:00 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // NPCOMP_C_REGISTRATION_H
|