summaryrefslogtreecommitdiff
path: root/tools/clang-fuzzer/proto-to-llvm/loop_proto_to_llvm.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/clang-fuzzer/proto-to-llvm/loop_proto_to_llvm.h')
-rw-r--r--tools/clang-fuzzer/proto-to-llvm/loop_proto_to_llvm.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/clang-fuzzer/proto-to-llvm/loop_proto_to_llvm.h b/tools/clang-fuzzer/proto-to-llvm/loop_proto_to_llvm.h
new file mode 100644
index 000000000000..51660fcb710b
--- /dev/null
+++ b/tools/clang-fuzzer/proto-to-llvm/loop_proto_to_llvm.h
@@ -0,0 +1,23 @@
+//==-- loop_proto_to_llvm.h - Protobuf-C++ conversion ----------------------------==//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// Defines functions for converting between protobufs and LLVM IR.
+//
+//===----------------------------------------------------------------------===//
+
+#include <cstdint>
+#include <cstddef>
+#include <string>
+
+namespace clang_fuzzer {
+class LoopFunction;
+
+std::string LoopFunctionToLLVMString(const LoopFunction &input);
+std::string LoopProtoToLLVM(const uint8_t *data, size_t size);
+}