[RISCV] Add RVVConstraint to SiFive custom matrix multiply instructions. (#124055)
[llvm-project.git] / mlir / include / mlir-c / Target / LLVMIR.h
blobeffa74b905ce66bbe08468078b58430bacab4b76
1 //===-- LLVMIR.h - C Interface for MLIR LLVMIR Target -------------*- C -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM
4 // Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This header declares the C interface to target LLVMIR with MLIR.
12 //===----------------------------------------------------------------------===//
14 #ifndef MLIR_C_TARGET_LLVMIR_H
15 #define MLIR_C_TARGET_LLVMIR_H
17 #include "mlir-c/IR.h"
18 #include "mlir-c/Support.h"
19 #include "llvm-c/Support.h"
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
25 /// Translate operation that satisfies LLVM dialect module requirements into an
26 /// LLVM IR module living in the given context. This translates operations from
27 /// any dilalect that has a registered implementation of
28 /// LLVMTranslationDialectInterface.
29 ///
30 /// \returns the generated LLVM IR Module from the translated MLIR module, it is
31 /// owned by the caller.
32 MLIR_CAPI_EXPORTED LLVMModuleRef
33 mlirTranslateModuleToLLVMIR(MlirOperation module, LLVMContextRef context);
35 #ifdef __cplusplus
37 #endif
39 #endif // MLIR_C_TARGET_LLVMIR_H