xref: /llvm-project/clang/tools/clang-fuzzer/proto-to-llvm/loop_proto_to_llvm.h (revision a87dc23a6271cadd6d3f93561f2d8b1661399e6d)
1*a87dc23aSBalazs Benics //===- loop_proto_to_llvm.h - Protobuf-C++ conversion -----------*- C++ -*-===//
2e5f4a9ffSEmmett Neyman //
32946cd70SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
42946cd70SChandler Carruth // See https://llvm.org/LICENSE.txt for license information.
52946cd70SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6e5f4a9ffSEmmett Neyman //
7e5f4a9ffSEmmett Neyman //===----------------------------------------------------------------------===//
8e5f4a9ffSEmmett Neyman //
9e5f4a9ffSEmmett Neyman // Defines functions for converting between protobufs and LLVM IR.
10e5f4a9ffSEmmett Neyman //
11e5f4a9ffSEmmett Neyman //===----------------------------------------------------------------------===//
12e5f4a9ffSEmmett Neyman 
13e5f4a9ffSEmmett Neyman #include <cstdint>
14e5f4a9ffSEmmett Neyman #include <cstddef>
15e5f4a9ffSEmmett Neyman #include <string>
16e5f4a9ffSEmmett Neyman 
17e5f4a9ffSEmmett Neyman namespace clang_fuzzer {
18e5f4a9ffSEmmett Neyman class LoopFunction;
19e5f4a9ffSEmmett Neyman 
20e5f4a9ffSEmmett Neyman std::string LoopFunctionToLLVMString(const LoopFunction &input);
21e5f4a9ffSEmmett Neyman std::string LoopProtoToLLVM(const uint8_t *data, size_t size);
22e5f4a9ffSEmmett Neyman }
23