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

Brian Gaeke gaeke at cs.uiuc.edu
Mon Feb 2 13:06:04 PST 2004


Changes in directory llvm/lib/Target/PowerPC:

PowerPC.h updated: 1.1 -> 1.2

---
Log message:

Add comments describing how you would add prototypes for factory methods for
PowerPC-specific passes here.


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

Index: llvm/lib/Target/PowerPC/PowerPC.h
diff -u llvm/lib/Target/PowerPC/PowerPC.h:1.1 llvm/lib/Target/PowerPC/PowerPC.h:1.2
--- llvm/lib/Target/PowerPC/PowerPC.h:1.1	Wed Jan 21 15:13:19 2004
+++ llvm/lib/Target/PowerPC/PowerPC.h	Mon Feb  2 13:05:28 2004
@@ -15,6 +15,21 @@
 #ifndef TARGET_POWERPC_H
 #define TARGET_POWERPC_H
 
+#include <iosfwd>
+
+namespace llvm {
+
+class FunctionPass;
+class TargetMachine;
+
+// Here is where you would define factory methods for powerpc-specific
+// passes. For example:
+// FunctionPass *createPowerPCSimpleInstructionSelector (TargetMachine &TM);
+// FunctionPass *createPowerPCCodePrinterPass(std::ostream &OS,
+//                                            TargetMachine &TM);
+
+} // end namespace llvm;
+
 // Defines symbolic names for PowerPC registers.  This defines a mapping from
 // register name to register number.
 //





More information about the llvm-commits mailing list