1 //===-- C++ code generation from NamedFunctionDescriptors -------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, 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 //===----------------------------------------------------------------------===//
8 
9 #ifndef LIBC_BENCHMARKS_AUTOMEMCPY_CODEGEN_H
10 #define LIBC_BENCHMARKS_AUTOMEMCPY_CODEGEN_H
11 
12 #include "automemcpy/FunctionDescriptor.h"
13 #include <llvm/ADT/ArrayRef.h>
14 #include <llvm/Support/raw_ostream.h>
15 #include <vector>
16 
17 namespace llvm {
18 namespace automemcpy {
19 
20 // This function serializes the array of FunctionDescriptors as a C++ file.
21 void Serialize(raw_ostream &Stream, ArrayRef<FunctionDescriptor> FD);
22 
23 } // namespace automemcpy
24 } // namespace llvm
25 
26 #endif // LIBC_BENCHMARKS_AUTOMEMCPY_CODEGEN_H
27