comparison libc/benchmarks/JSON.h @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents
children
comparison
equal deleted inserted replaced
173:0572611fdcc8 207:2e18cbf3894f
1 //===-- JSON serialization routines -----------------------------*- 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 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
16 namespace llvm {
17 namespace libc_benchmarks {
18
19 // Parses a Study from a json string.
20 Expected<Study> parseJsonStudy(StringRef Content);
21
22 // Serialize a Study as json.
23 void serializeToJson(const Study &S, llvm::json::OStream &JOS);
24
25 } // namespace libc_benchmarks
26 } // namespace llvm
27
28 #endif // LLVM_LIBC_UTILS_BENCHMARK_JSON_H