LLVM
22.0.0git
include
llvm
XRay
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
16
#include "
llvm/Support/Compiler.h
"
17
#include "
llvm/Support/DataExtractor.h
"
18
#include "
llvm/Support/Error.h
"
19
#include "
llvm/XRay/XRayRecord.h
"
20
#include <cstdint>
21
22
namespace
llvm
{
23
namespace
xray
{
24
25
/// Convenience function for loading the file header given a data extractor at a
26
/// specified offset.
27
LLVM_ABI
Expected<XRayFileHeader>
28
readBinaryFormatHeader
(DataExtractor &HeaderExtractor, uint64_t &OffsetPtr);
29
30
}
// namespace xray
31
}
// namespace llvm
32
33
#endif
// LLVM_XRAY_FILEHEADERREADER_H
Compiler.h
LLVM_ABI
#define LLVM_ABI
Definition
Compiler.h:213
DataExtractor.h
XRayRecord.h
Error.h
llvm::xray
Definition
BlockIndexer.h:23
llvm::xray::readBinaryFormatHeader
LLVM_ABI Expected< XRayFileHeader > readBinaryFormatHeader(DataExtractor &HeaderExtractor, uint64_t &OffsetPtr)
Convenience function for loading the file header given a data extractor at a specified offset.
Definition
FileHeaderReader.cpp:14
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
AddressRanges.h:18
Generated on
for LLVM by
1.14.0