1 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 // -*- mode: C++ -*- 3 // 4 // Copyright 2020-2024 Google LLC 5 // 6 // Licensed under the Apache License v2.0 with LLVM Exceptions (the 7 // "License"); you may not use this file except in compliance with the 8 // License. You may obtain a copy of the License at 9 // 10 // https://llvm.org/LICENSE.txt 11 // 12 // Unless required by applicable law or agreed to in writing, software 13 // distributed under the License is distributed on an "AS IS" BASIS, 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 // See the License for the specific language governing permissions and 16 // limitations under the License. 17 // 18 // Author: Maria Teguiani 19 // Author: Giuliano Procida 20 21 #ifndef STG_BTF_READER_H_ 22 #define STG_BTF_READER_H_ 23 24 #include <string> 25 #include <string_view> 26 27 #include "graph.h" 28 #include "reader_options.h" 29 30 namespace stg { 31 namespace btf { 32 33 Id ReadSection(Graph& graph, std::string_view data); 34 Id ReadFile(Graph& graph, const std::string& path, ReadOptions options); 35 36 } // namespace btf 37 } // namespace stg 38 39 #endif // STG_BTF_READER_H_ 40