blob: 0b7a249b971aa117cbeacabb1924b511cea433a0 [file] [log] [blame]
Paula Toth66d00fe2020-04-08 17:16:301//===-- JSON serialization routines -----------------------------*- C++ -*-===//
Guillaume Chateletaba80d02020-01-06 12:17:042//
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 LLVM_LIBC_UTILS_BENCHMARK_JSON_H
10#define LLVM_LIBC_UTILS_BENCHMARK_JSON_H
11
12#include "LibcBenchmark.h"
13#include "LibcMemoryBenchmark.h"
14#include "llvm/Support/JSON.h"
15
16namespace llvm {
17namespace libc_benchmarks {
18
19// Parses a Study from a json string.
Guillaume Chateletdeae7e92020-12-17 13:16:1420Expected<Study> parseJsonStudy(StringRef Content);
Guillaume Chateletaba80d02020-01-06 12:17:0421
22// Serialize a Study as json.
Guillaume Chateletdeae7e92020-12-17 13:16:1423void serializeToJson(const Study &S, llvm::json::OStream &JOS);
Guillaume Chateletaba80d02020-01-06 12:17:0424
25} // namespace libc_benchmarks
26} // namespace llvm
27
28#endif // LLVM_LIBC_UTILS_BENCHMARK_JSON_H