|
18 | 18 | #include "llvm/Support/DOTGraphTraits.h" |
19 | 19 |
|
20 | 20 | namespace llvm { |
21 | | - class FunctionPass; |
22 | | - class Function; |
23 | | - class RegionInfo; |
24 | | - class RegionNode; |
| 21 | +class FunctionPass; |
| 22 | +class Function; |
| 23 | +class RegionInfo; |
| 24 | +class RegionNode; |
25 | 25 |
|
26 | | - LLVM_ABI FunctionPass *createRegionViewerPass(); |
27 | | - LLVM_ABI FunctionPass *createRegionOnlyViewerPass(); |
28 | | - LLVM_ABI FunctionPass *createRegionPrinterPass(); |
29 | | - LLVM_ABI FunctionPass *createRegionOnlyPrinterPass(); |
| 26 | +LLVM_ABI FunctionPass *createRegionViewerPass(); |
| 27 | +LLVM_ABI FunctionPass *createRegionOnlyViewerPass(); |
| 28 | +LLVM_ABI FunctionPass *createRegionPrinterPass(); |
| 29 | +LLVM_ABI FunctionPass *createRegionOnlyPrinterPass(); |
30 | 30 |
|
31 | | - template <> |
32 | | - struct DOTGraphTraits<RegionNode *> : public DefaultDOTGraphTraits { |
33 | | - DOTGraphTraits(bool isSimple = false) : DefaultDOTGraphTraits(isSimple) {} |
| 31 | +template <> struct DOTGraphTraits<RegionNode *> : public DefaultDOTGraphTraits { |
| 32 | + DOTGraphTraits(bool isSimple = false) : DefaultDOTGraphTraits(isSimple) {} |
34 | 33 |
|
35 | | - LLVM_ABI std::string getNodeLabel(RegionNode *Node, RegionNode *Graph); |
36 | | - }; |
| 34 | + LLVM_ABI std::string getNodeLabel(RegionNode *Node, RegionNode *Graph); |
| 35 | +}; |
37 | 36 |
|
38 | 37 | #ifndef NDEBUG |
39 | | - /// Open a viewer to display the GraphViz vizualization of the analysis |
40 | | - /// result. |
41 | | - /// |
42 | | - /// Practical to call in the debugger. |
43 | | - /// Includes the instructions in each BasicBlock. |
44 | | - /// |
45 | | - /// @param RI The analysis to display. |
46 | | - void viewRegion(llvm::RegionInfo *RI); |
| 38 | +/// Open a viewer to display the GraphViz vizualization of the analysis |
| 39 | +/// result. |
| 40 | +/// |
| 41 | +/// Practical to call in the debugger. |
| 42 | +/// Includes the instructions in each BasicBlock. |
| 43 | +/// |
| 44 | +/// @param RI The analysis to display. |
| 45 | +void viewRegion(llvm::RegionInfo *RI); |
47 | 46 |
|
48 | | - /// Analyze the regions of a function and open its GraphViz |
49 | | - /// visualization in a viewer. |
50 | | - /// |
51 | | - /// Useful to call in the debugger. |
52 | | - /// Includes the instructions in each BasicBlock. |
53 | | - /// The result of a new analysis may differ from the RegionInfo the pass |
54 | | - /// manager currently holds. |
55 | | - /// |
56 | | - /// @param F Function to analyze. |
57 | | - void viewRegion(const llvm::Function *F); |
| 47 | +/// Analyze the regions of a function and open its GraphViz |
| 48 | +/// visualization in a viewer. |
| 49 | +/// |
| 50 | +/// Useful to call in the debugger. |
| 51 | +/// Includes the instructions in each BasicBlock. |
| 52 | +/// The result of a new analysis may differ from the RegionInfo the pass |
| 53 | +/// manager currently holds. |
| 54 | +/// |
| 55 | +/// @param F Function to analyze. |
| 56 | +void viewRegion(const llvm::Function *F); |
58 | 57 |
|
59 | | - /// Open a viewer to display the GraphViz vizualization of the analysis |
60 | | - /// result. |
61 | | - /// |
62 | | - /// Useful to call in the debugger. |
63 | | - /// Shows only the BasicBlock names without their instructions. |
64 | | - /// |
65 | | - /// @param RI The analysis to display. |
66 | | - void viewRegionOnly(llvm::RegionInfo *RI); |
| 58 | +/// Open a viewer to display the GraphViz vizualization of the analysis |
| 59 | +/// result. |
| 60 | +/// |
| 61 | +/// Useful to call in the debugger. |
| 62 | +/// Shows only the BasicBlock names without their instructions. |
| 63 | +/// |
| 64 | +/// @param RI The analysis to display. |
| 65 | +void viewRegionOnly(llvm::RegionInfo *RI); |
67 | 66 |
|
68 | | - /// Analyze the regions of a function and open its GraphViz |
69 | | - /// visualization in a viewer. |
70 | | - /// |
71 | | - /// Useful to call in the debugger. |
72 | | - /// Shows only the BasicBlock names without their instructions. |
73 | | - /// The result of a new analysis may differ from the RegionInfo the pass |
74 | | - /// manager currently holds. |
75 | | - /// |
76 | | - /// @param F Function to analyze. |
77 | | - void viewRegionOnly(const llvm::Function *F); |
78 | | -#endif |
79 | | -} // End llvm namespace |
| 67 | +/// Analyze the regions of a function and open its GraphViz |
| 68 | +/// visualization in a viewer. |
| 69 | +/// |
| 70 | +/// Useful to call in the debugger. |
| 71 | +/// Shows only the BasicBlock names without their instructions. |
| 72 | +/// The result of a new analysis may differ from the RegionInfo the pass |
| 73 | +/// manager currently holds. |
| 74 | +/// |
| 75 | +/// @param F Function to analyze. |
| 76 | +void viewRegionOnly(const llvm::Function *F); |
| 77 | +#endif // NDEBUG |
80 | 78 |
|
81 | | -#endif |
| 79 | +} // namespace llvm |
| 80 | + |
| 81 | +#endif // LLVM_ANALYSIS_REGIONPRINTER_H |
0 commit comments