brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 74f918d Raw
37 lines · c
1//===-- SnippetFile.cpp -----------------------------------------*- 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-exception6//7//===----------------------------------------------------------------------===//8///9/// \file10/// Utilities to read a snippet file.11/// Snippet files are just asm files with additional comments to specify which12/// registers should be defined or are live on entry.13///14//===----------------------------------------------------------------------===//15 16#ifndef LLVM_TOOLS_LLVM_EXEGESIS_SNIPPETFILE_H17#define LLVM_TOOLS_LLVM_EXEGESIS_SNIPPETFILE_H18 19#include "BenchmarkCode.h"20#include "BenchmarkRunner.h"21#include "LlvmState.h"22#include "llvm/Support/Error.h"23 24#include <vector>25 26namespace llvm {27namespace exegesis {28 29// Reads code snippets from file `Filename`.30Expected<std::vector<BenchmarkCode>> readSnippets(const LLVMState &State,31                                                  StringRef Filename);32 33} // namespace exegesis34} // namespace llvm35 36#endif37