LLVM: include/llvm/XRay/BlockPrinter.h Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13#ifndef LLVM_XRAY_BLOCKPRINTER_H
14#define LLVM_XRAY_BLOCKPRINTER_H
15
20
22
24 enum class State {
25 Start,
26 Preamble,
27 Metadata,
28 Function,
29 Arg,
30 CustomEvent,
31 End,
32 };
33
36 State CurrentState = State::Start;
37
38public:
40
53
54 void reset() { CurrentState = State::Start; }
55};
56
57}
58
59#endif
void visit(MachineFunction &MF, MachineBasicBlock &Start, std::function< void(MachineBasicBlock *)> op)
Lightweight error class with error context and mandatory checking.
This class implements an extremely fast bulk output stream that can only output to a stream.
BlockPrinter(raw_ostream &O, RecordPrinter &P)
Definition BlockPrinter.h:39
void reset()
Definition BlockPrinter.h:54