[llvm] r255537 - [Packetizer] Make endPacket virtual

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 14 12:12:24 PST 2015


Author: kparzysz
Date: Mon Dec 14 14:12:24 2015
New Revision: 255537

URL: http://llvm.org/viewvc/llvm-project?rev=255537&view=rev
Log:
[Packetizer] Make endPacket virtual

This will allow custom handling of packet finalization. The current
definition of endPacket will still perform the default finalization.

Modified:
    llvm/trunk/include/llvm/CodeGen/DFAPacketizer.h

Modified: llvm/trunk/include/llvm/CodeGen/DFAPacketizer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/DFAPacketizer.h?rev=255537&r1=255536&r2=255537&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/DFAPacketizer.h (original)
+++ llvm/trunk/include/llvm/CodeGen/DFAPacketizer.h Mon Dec 14 14:12:24 2015
@@ -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




More information about the llvm-commits mailing list