LLVM 19.0.0git
FileHeaderReader.h
Go to the documentation of this file.
1//===- FileHeaderReader.h - XRay Trace File Header Reading Function -------===//
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// This file declares functions that can load an XRay log header from various
10// sources.
11//
12//===----------------------------------------------------------------------===//
13#ifndef LLVM_XRAY_FILEHEADERREADER_H
14#define LLVM_XRAY_FILEHEADERREADER_H
15
17#include "llvm/Support/Error.h"
19#include <cstdint>
20
21namespace llvm {
22namespace xray {
23
24/// Convenience function for loading the file header given a data extractor at a
25/// specified offset.
26Expected<XRayFileHeader> readBinaryFormatHeader(DataExtractor &HeaderExtractor,
27 uint64_t &OffsetPtr);
28
29} // namespace xray
30} // namespace llvm
31
32#endif // LLVM_XRAY_FILEHEADERREADER_H
Expected< XRayFileHeader > readBinaryFormatHeader(DataExtractor &HeaderExtractor, uint64_t &OffsetPtr)
Convenience function for loading the file header given a data extractor at a specified offset.
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18