CIRCT 22.0.0git
Loading...
Searching...
No Matches
ExportLLVM.h
Go to the documentation of this file.
1//===-- circt-c/ExportLLVM.h - C API for exporting LLVM IR --------*- C -*-===//
2//
3// This header declares the C interface for exporting LLVM IR from a CIRCT MLIR
4// module.
5//
6//===----------------------------------------------------------------------===//
7
8#ifndef CIRCT_C_EXPORTLLVM_H
9#define CIRCT_C_EXPORTLLVM_H
10
11#include "mlir-c/IR.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17/// Exports LLVM IR for the specified module using the provided callback and
18/// user data
19MLIR_CAPI_EXPORTED MlirLogicalResult mlirExportLLVMIR(MlirModule,
20 MlirStringCallback,
21 void *userData);
22
23#ifdef __cplusplus
24}
25#endif
26
27#endif // CIRCT_C_EXPORTLLVM_H
MLIR_CAPI_EXPORTED MlirLogicalResult mlirExportLLVMIR(MlirModule, MlirStringCallback, void *userData)
Exports LLVM IR for the specified module using the provided callback and user data.