[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcInternals.h

Misha Brukman brukman at cs.uiuc.edu
Wed Nov 12 18:18:06 PST 2003


Changes in directory llvm/lib/Target/Sparc:

SparcInternals.h updated: 1.107 -> 1.108

---
Log message:

The functions to create new instances of passes are no longer methods in the
UltraSparc class. Comments are also doxygen-compatible now.


---
Diffs of the changes:  (+16 -15)

Index: llvm/lib/Target/Sparc/SparcInternals.h
diff -u llvm/lib/Target/Sparc/SparcInternals.h:1.107 llvm/lib/Target/Sparc/SparcInternals.h:1.108
--- llvm/lib/Target/Sparc/SparcInternals.h:1.107	Tue Nov 11 16:41:33 2003
+++ llvm/lib/Target/Sparc/SparcInternals.h	Wed Nov 12 18:17:20 2003
@@ -641,15 +641,28 @@
 
 /// createStackSlotsPass - External interface to stack-slots pass that enters 2
 /// empty slots at the top of each function stack
+///
 Pass *createStackSlotsPass(const TargetMachine &TM);
 
-// Interface to pre-selection pass that specializes LLVM code for a target
-// machine.
+/// Specializes LLVM code for a target machine.
+///
 FunctionPass *createPreSelectionPass(const TargetMachine &TM);
 
-// External interface to peephole optimization pass operating on machine code.
+/// Peephole optimization pass operating on machine code
+///
 FunctionPass *createPeepholeOptsPass(const TargetMachine &TM);
 
+/// Writes out assembly code for the module, one function at a time
+///
+FunctionPass *createAsmPrinterPass(std::ostream &Out, const TargetMachine &TM);
+
+/// getPrologEpilogInsertionPass - Inserts prolog/epilog code.
+///
+FunctionPass* createPrologEpilogInsertionPass();
+
+/// getBytecodeAsmPrinterPass - Emits final LLVM bytecode to assembly file.
+///
+Pass* createBytecodeAsmPrinterPass(std::ostream &Out);
 
 //---------------------------------------------------------------------------
 // class UltraSparc 
@@ -681,18 +694,6 @@
   virtual bool addPassesToEmitMachineCode(FunctionPassManager &PM,
                                           MachineCodeEmitter &MCE);
   virtual void replaceMachineCodeForFunction(void *Old, void *New);
-
-  // getPrologEpilogInsertionPass - Inserts prolog/epilog code.
-  FunctionPass* getPrologEpilogInsertionPass();
-
-  // getFunctionAsmPrinterPass - Writes out machine code for a single function
-  Pass* getFunctionAsmPrinterPass(std::ostream &Out);
-
-  // getModuleAsmPrinterPass - Writes generated machine code to assembly file.
-  Pass* getModuleAsmPrinterPass(std::ostream &Out);
-
-  // getBytecodeAsmPrinterPass - Emits final LLVM bytecode to assembly file.
-  Pass* getBytecodeAsmPrinterPass(std::ostream &Out);
 };
 
 } // End llvm namespace





More information about the llvm-commits mailing list