[Packetizer] Make endPacket virtual
[oota-llvm.git] / include / llvm / CodeGen / DFAPacketizer.h
index 711bf9a713155ce603f04a4c070098a0c8e491c6..9daec9859ed87e33d89ca2543058b265bdbb34b3 100644 (file)
@@ -161,8 +161,10 @@ public:
     return MII;
   }
 
-  // endPacket - End the current packet.
-  void endPacket(MachineBasicBlock *MBB, MachineInstr *MI);
+  // End the current packet and reset the state of the packetizer.
+  // Overriding this function allows the target-specific packetizer
+  // to perform custom finalization.
+  virtual void endPacket(MachineBasicBlock *MBB, MachineInstr *MI);
 
   // initPacketizerState - perform initialization before packetizing
   // an instruction. This function is supposed to be overrided by