llvm.org GIT mirror llvm / 8a5351f
[PM] Rename the IR printing pass header to a more generic and correct name to match the source file which I got earlier. Update the include sites. Also modernize the comments in the header to use the more recommended doxygen style. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199041 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 6 years ago
17 changed file(s) with 67 addition(s) and 66 deletion(s). Raw diff Collapse all Expand all
0 //===- IRPrintingPasses.h - Passes to print out IR constructs ---*- C++ -*-===//
1 //
2 // The LLVM Compiler Infrastructure
3 //
4 // This file is distributed under the University of Illinois Open Source
5 // License. See LICENSE.TXT for details.
6 //
7 //===----------------------------------------------------------------------===//
8 /// \file
9 ///
10 /// This file defines passes to print out IR in various granularities. The
11 /// PrintModulePass pass simply prints out the entire module when it is
12 /// executed. The PrintFunctionPass class is designed to be pipelined with
13 /// other FunctionPass's, and prints out the functions of the module as they
14 /// are processed.
15 ///
16 //===----------------------------------------------------------------------===//
17
18 #ifndef LLVM_IR_PRINTMODULEPASS_H
19 #define LLVM_IR_PRINTMODULEPASS_H
20
21 #include
22
23 namespace llvm {
24 class FunctionPass;
25 class ModulePass;
26 class BasicBlockPass;
27 class raw_ostream;
28
29 /// \brief Create and return a pass that writes the module to the specified
30 /// \c raw_ostream.
31 ModulePass *createPrintModulePass(raw_ostream *OS, bool DeleteStream = false,
32 const std::string &Banner = "");
33
34 /// \brief Create and return a pass that prints functions to the specified
35 /// \c raw_ostream as they are processed.
36 FunctionPass *createPrintFunctionPass(const std::string &Banner,
37 raw_ostream *OS,
38 bool DeleteStream = false);
39
40 /// \brief Create and return a pass that writes the BB to the specified
41 /// \c raw_ostream.
42 BasicBlockPass *createPrintBasicBlockPass(raw_ostream *OS,
43 bool DeleteStream = false,
44 const std::string &Banner = "");
45
46 } // End llvm namespace
47
48 #endif
+0
-48
include/llvm/IR/PrintModulePass.h less more
None //===- PrintModulePass.h - IR Printing Passes -------------------*- C++ -*-===//
1 //
2 // The LLVM Compiler Infrastructure
3 //
4 // This file is distributed under the University of Illinois Open Source
5 // License. See LICENSE.TXT for details.
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file defines two passes to print out a module. The PrintModulePass pass
10 // simply prints out the entire module when it is executed. The
11 // PrintFunctionPass class is designed to be pipelined with other
12 // FunctionPass's, and prints out the functions of the module as they are
13 // processed.
14 //
15 //===----------------------------------------------------------------------===//
16
17 #ifndef LLVM_IR_PRINTMODULEPASS_H
18 #define LLVM_IR_PRINTMODULEPASS_H
19
20 #include
21
22 namespace llvm {
23 class FunctionPass;
24 class ModulePass;
25 class BasicBlockPass;
26 class raw_ostream;
27
28 /// createPrintModulePass - Create and return a pass that writes the
29 /// module to the specified raw_ostream.
30 ModulePass *createPrintModulePass(raw_ostream *OS, bool DeleteStream = false,
31 const std::string &Banner = "");
32
33 /// createPrintFunctionPass - Create and return a pass that prints
34 /// functions to the specified raw_ostream as they are processed.
35 FunctionPass *createPrintFunctionPass(const std::string &Banner,
36 raw_ostream *OS,
37 bool DeleteStream = false);
38
39 /// createPrintBasicBlockPass - Create and return a pass that writes the
40 /// BB to the specified raw_ostream.
41 BasicBlockPass *createPrintBasicBlockPass(raw_ostream *OS,
42 bool DeleteStream = false,
43 const std::string &Banner = "");
44
45 } // End llvm namespace
46
47 #endif
2727 #include "llvm/Analysis/ScalarEvolution.h"
2828 #include "llvm/CodeGen/Passes.h"
2929 #include "llvm/IR/Function.h"
30 #include "llvm/IR/PrintModulePass.h"
30 #include "llvm/IR/IRPrintingPasses.h"
3131 #include "llvm/Transforms/IPO.h"
3232 #include "llvm/Transforms/Instrumentation.h"
3333 #include "llvm/Transforms/ObjCARC.h"
1313 //===----------------------------------------------------------------------===//
1414
1515 #include "llvm/Analysis/LoopPass.h"
16 #include "llvm/IR/PrintModulePass.h"
16 #include "llvm/IR/IRPrintingPasses.h"
1717 #include "llvm/Support/Debug.h"
1818 #include "llvm/Support/Timer.h"
1919 using namespace llvm;
1616 #include "llvm/CodeGen/MachineFunctionAnalysis.h"
1717 #include "llvm/CodeGen/MachineModuleInfo.h"
1818 #include "llvm/CodeGen/Passes.h"
19 #include "llvm/IR/PrintModulePass.h"
19 #include "llvm/IR/IRPrintingPasses.h"
2020 #include "llvm/MC/MCAsmInfo.h"
2121 #include "llvm/MC/MCContext.h"
2222 #include "llvm/MC/MCInstrInfo.h"
1717 #include "llvm/CodeGen/GCStrategy.h"
1818 #include "llvm/CodeGen/MachineFunctionPass.h"
1919 #include "llvm/CodeGen/RegAllocRegistry.h"
20 #include "llvm/IR/PrintModulePass.h"
20 #include "llvm/IR/IRPrintingPasses.h"
2121 #include "llvm/MC/MCAsmInfo.h"
2222 #include "llvm/PassManager.h"
2323 #include "llvm/Support/CommandLine.h"
2323 #include "llvm/IR/CallingConv.h"
2424 #include "llvm/IR/Constants.h"
2525 #include "llvm/IR/DerivedTypes.h"
26 #include "llvm/IR/IRPrintingPasses.h"
2627 #include "llvm/IR/InlineAsm.h"
2728 #include "llvm/IR/IntrinsicInst.h"
2829 #include "llvm/IR/LLVMContext.h"
2930 #include "llvm/IR/Module.h"
3031 #include "llvm/IR/Operator.h"
31 #include "llvm/IR/PrintModulePass.h"
3232 #include "llvm/IR/TypeFinder.h"
3333 #include "llvm/IR/ValueSymbolTable.h"
3434 #include "llvm/Support/CFG.h"
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "llvm/IR/PrintModulePass.h"
13 #include "llvm/IR/IRPrintingPasses.h"
1414 #include "llvm/IR/Function.h"
1515 #include "llvm/IR/Module.h"
1616 #include "llvm/Pass.h"
1111 //===----------------------------------------------------------------------===//
1212
1313
14 #include "llvm/IR/PrintModulePass.h"
14 #include "llvm/IR/IRPrintingPasses.h"
1515 #include "llvm/IR/LegacyPassManager.h"
1616 #include "llvm/IR/LegacyPassManagers.h"
1717 #include "llvm/IR/Module.h"
1313 //===----------------------------------------------------------------------===//
1414
1515 #include "llvm/Pass.h"
16 #include "llvm/IR/PrintModulePass.h"
16 #include "llvm/IR/IRPrintingPasses.h"
1717 #include "llvm/PassRegistry.h"
1818 #include "llvm/Support/Debug.h"
1919 #include "llvm/Support/PassNameParser.h"
19231923 Out << "#include \n";
19241924 Out << "#include \n";
19251925 Out << "#include \n";
1926 Out << "#include \n";
19261927 Out << "#include \n";
19271928 Out << "#include \n";
19281929 Out << "#include \n";
19291930 Out << "#include \n";
1930 Out << "#include \n";
19311931 Out << "#include \n";
19321932 Out << "#include \n";
19331933 Out << "#include \n";
2424 #include "llvm/CodeGen/MachineModuleInfo.h"
2525 #include "llvm/CodeGen/Passes.h"
2626 #include "llvm/IR/DataLayout.h"
27 #include "llvm/IR/PrintModulePass.h"
27 #include "llvm/IR/IRPrintingPasses.h"
2828 #include "llvm/MC/MCAsmInfo.h"
2929 #include "llvm/MC/MCInstrInfo.h"
3030 #include "llvm/MC/MCStreamer.h"
1313 //===----------------------------------------------------------------------===//
1414
1515
16 #include "llvm/ADT/Triple.h"
17 #include "llvm/IR/IRPrintingPasses.h"
1618 #include "llvm/IR/LLVMContext.h"
17 #include "llvm/ADT/Triple.h"
18 #include "llvm/IR/PrintModulePass.h"
1919 #include "llvm/CodeGen/CommandFlags.h"
2020 #include "llvm/CodeGen/LinkAllAsmWriterComponents.h"
2121 #include "llvm/CodeGen/LinkAllCodegenComponents.h"
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #include "llvm/IR/LLVMContext.h"
1514 #include "llvm/ADT/SetVector.h"
1615 #include "llvm/ADT/SmallPtrSet.h"
17 #include "llvm/IR/PrintModulePass.h"
1816 #include "llvm/Bitcode/ReaderWriter.h"
1917 #include "llvm/IR/DataLayout.h"
18 #include "llvm/IR/IRPrintingPasses.h"
19 #include "llvm/IR/LLVMContext.h"
2020 #include "llvm/IR/Module.h"
2121 #include "llvm/IRReader/IRReader.h"
2222 #include "llvm/PassManager.h"
1010 // different components in LLVM.
1111 //
1212 //===----------------------------------------------------------------------===//
13 #include "llvm/IR/LLVMContext.h"
1413 #include "llvm/ADT/OwningPtr.h"
1514 #include "llvm/Analysis/CallGraphSCCPass.h"
1615 #include "llvm/Analysis/Verifier.h"
17 #include "llvm/IR/PrintModulePass.h"
1816 #include "llvm/IR/Constants.h"
17 #include "llvm/IR/IRPrintingPasses.h"
1918 #include "llvm/IR/Instruction.h"
19 #include "llvm/IR/LLVMContext.h"
2020 #include "llvm/IR/Module.h"
2121 #include "llvm/PassManager.h"
2222 #include "llvm/Support/Debug.h"
2323 #include "llvm/CodeGen/CommandFlags.h"
2424 #include "llvm/DebugInfo.h"
2525 #include "llvm/IR/DataLayout.h"
26 #include "llvm/IR/IRPrintingPasses.h"
2627 #include "llvm/IR/LLVMContext.h"
2728 #include "llvm/IR/Module.h"
28 #include "llvm/IR/PrintModulePass.h"
2929 #include "llvm/IRReader/IRReader.h"
3030 #include "llvm/LinkAllIR.h"
3131 #include "llvm/LinkAllPasses.h"
2626 #include "llvm/IR/DerivedTypes.h"
2727 #include "llvm/IR/Function.h"
2828 #include "llvm/IR/GlobalVariable.h"
29 #include "llvm/IR/IRPrintingPasses.h"
2930 #include "llvm/IR/InlineAsm.h"
3031 #include "llvm/IR/Instructions.h"
3132 #include "llvm/IR/LLVMContext.h"
3233 #include "llvm/IR/Module.h"
33 #include "llvm/IR/PrintModulePass.h"
3434 #include "llvm/Pass.h"
3535 #include "llvm/Support/MathExtras.h"
3636 #include "llvm/Support/raw_ostream.h"