LLVM: include/llvm/Support/Printable.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_SUPPORT_PRINTABLE_H
14#define LLVM_SUPPORT_PRINTABLE_H
15
16#include
17#include
18
19namespace llvm {
20
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
44
46 P.Print(OS);
47 return OS;
48}
49
50}
51
52#endif
Simple wrapper around std::function<void(raw_ostream&)>.
Definition Printable.h:38
Printable(std::function< void(raw_ostream &OS)> Print)
Definition Printable.h:41
std::function< void(raw_ostream &OS)> Print
Definition Printable.h:40
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.
raw_ostream & operator<<(raw_ostream &OS, const APFixedPoint &FX)
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Implement std::hash so that hash_code can be used in STL containers.