LLVM
22.0.0git
include
llvm
XRay
RecordPrinter.h
Go to the documentation of this file.
1
//===- RecordPrinter.h - FDR Record Printer -------------------------------===//
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
// An implementation of the RecordVisitor which prints an individual record's
10
// data in an adhoc format, suitable for human inspection.
11
//
12
//===----------------------------------------------------------------------===//
13
#ifndef LLVM_XRAY_RECORDPRINTER_H
14
#define LLVM_XRAY_RECORDPRINTER_H
15
16
#include "
llvm/Support/Compiler.h
"
17
#include "
llvm/Support/raw_ostream.h
"
18
#include "
llvm/XRay/FDRRecords.h
"
19
20
namespace
llvm
{
21
namespace
xray
{
22
23
class
LLVM_ABI
RecordPrinter
:
public
RecordVisitor
{
24
raw_ostream
&OS;
25
std::string Delim;
26
27
public
:
28
explicit
RecordPrinter
(
raw_ostream
&O, std::string
D
)
29
: OS(O), Delim(
std
::
move
(
D
)) {}
30
31
explicit
RecordPrinter
(
raw_ostream
&O) :
RecordPrinter
(O,
""
){};
32
33
Error
visit
(
BufferExtents
&)
override
;
34
Error
visit
(
WallclockRecord
&)
override
;
35
Error
visit
(
NewCPUIDRecord
&)
override
;
36
Error
visit
(
TSCWrapRecord
&)
override
;
37
Error
visit
(
CustomEventRecord
&)
override
;
38
Error
visit
(
CallArgRecord
&)
override
;
39
Error
visit
(
PIDRecord
&)
override
;
40
Error
visit
(
NewBufferRecord
&)
override
;
41
Error
visit
(
EndBufferRecord
&)
override
;
42
Error
visit
(
FunctionRecord
&)
override
;
43
Error
visit
(
CustomEventRecordV5
&)
override
;
44
Error
visit
(
TypedEventRecord
&)
override
;
45
};
46
47
}
// namespace xray
48
}
// namespace llvm
49
50
#endif
// LLVM_XRAY_RECORDPRINTER_H
D
static GCRegistry::Add< StatepointGC > D("statepoint-example", "an example strategy for statepoint")
Compiler.h
LLVM_ABI
#define LLVM_ABI
Definition
Compiler.h:213
FDRRecords.h
visit
void visit(MachineFunction &MF, MachineBasicBlock &Start, std::function< void(MachineBasicBlock *)> op)
Definition
SPIRVPostLegalizer.cpp:125
llvm::Error
Lightweight error class with error context and mandatory checking.
Definition
Error.h:159
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition
raw_ostream.h:53
llvm::xray::BufferExtents
Definition
FDRRecords.h:111
llvm::xray::CallArgRecord
Definition
FDRRecords.h:292
llvm::xray::CustomEventRecordV5
Definition
FDRRecords.h:236
llvm::xray::CustomEventRecord
Definition
FDRRecords.h:207
llvm::xray::EndBufferRecord
Definition
FDRRecords.h:360
llvm::xray::FunctionRecord
Definition
FDRRecords.h:373
llvm::xray::NewBufferRecord
Definition
FDRRecords.h:337
llvm::xray::NewCPUIDRecord
Definition
FDRRecords.h:159
llvm::xray::PIDRecord
Definition
FDRRecords.h:314
llvm::xray::RecordPrinter::RecordPrinter
RecordPrinter(raw_ostream &O)
Definition
RecordPrinter.h:31
llvm::xray::RecordPrinter::RecordPrinter
RecordPrinter(raw_ostream &O, std::string D)
Definition
RecordPrinter.h:28
llvm::xray::RecordVisitor
Definition
FDRRecords.h:400
llvm::xray::TSCWrapRecord
Definition
FDRRecords.h:185
llvm::xray::TypedEventRecord
Definition
FDRRecords.h:263
llvm::xray::WallclockRecord
Definition
FDRRecords.h:134
llvm::xray
Definition
BlockIndexer.h:23
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
AddressRanges.h:18
llvm::move
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Definition
STLExtras.h:1847
std
Implement std::hash so that hash_code can be used in STL containers.
Definition
BitVector.h:870
raw_ostream.h
Generated on
for LLVM by
1.14.0