[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineFunction.h
Brian Gaeke
gaeke at cs.uiuc.edu
Wed May 12 16:35:14 PDT 2004
Changes in directory llvm/include/llvm/CodeGen:
MachineFunction.h updated: 1.32 -> 1.33
---
Log message:
Add a NextMBBNumber field w/ incrementing accessor method, for
function-level unique numbering of MBBs.
---
Diffs of the changes: (+7 -0)
Index: llvm/include/llvm/CodeGen/MachineFunction.h
diff -u llvm/include/llvm/CodeGen/MachineFunction.h:1.32 llvm/include/llvm/CodeGen/MachineFunction.h:1.33
--- llvm/include/llvm/CodeGen/MachineFunction.h:1.32 Wed Feb 11 20:27:10 2004
+++ llvm/include/llvm/CodeGen/MachineFunction.h Wed May 12 16:35:21 2004
@@ -49,6 +49,9 @@
// Keep track of constants which are spilled to memory
MachineConstantPool *ConstantPool;
+ // Function-level unique numbering for MachineBasicBlocks
+ int NextMBBNumber;
+
public:
MachineFunction(const Function *Fn, const TargetMachine &TM);
~MachineFunction();
@@ -82,6 +85,10 @@
///
MachineFunctionInfo *getInfo() const { return MFInfo; }
+ /// getNextMBBNumber - Returns the next unique number to be assigned
+ /// to a MachineBasicBlock in this MachineFunction.
+ ///
+ int getNextMBBNumber() { return NextMBBNumber++; }
/// print - Print out the MachineFunction in a format suitable for debugging
/// to the specified stream.
More information about the llvm-commits
mailing list