Add "const" to function arguments in DFAPacketizer
[oota-llvm.git] / lib / Target / Hexagon / HexagonVLIWPacketizer.cpp
index 0abb7ddc77477c4d22273e309df44618cbf97f53..71dc362d5174a71fe33dd1a7467303b0a696397e 100644 (file)
@@ -125,12 +125,12 @@ namespace {
     void initPacketizerState() override;
 
     // ignorePseudoInstruction - Ignore bundling of pseudo instructions.
-    bool ignorePseudoInstruction(MachineInstr *MI,
-                                 MachineBasicBlock *MBB) override;
+    bool ignorePseudoInstruction(const MachineInstr *MI,
+                                 const MachineBasicBlock *MBB) override;
 
     // isSoloInstruction - return true if instruction MI can not be packetized
     // with any other instruction, which means that MI itself is a packet.
-    bool isSoloInstruction(MachineInstr *MI) override;
+    bool isSoloInstruction(const MachineInstr *MI) override;
 
     // isLegalToPacketizeTogether - Is it legal to packetize SUI and SUJ
     // together.
@@ -366,7 +366,7 @@ static bool IsDirectJump(MachineInstr* MI) {
   return (MI->getOpcode() == Hexagon::J2_jump);
 }
 
-static bool IsSchedBarrier(MachineInstr* MI) {
+static bool IsSchedBarrier(const MachineInstr* MI) {
   switch (MI->getOpcode()) {
   case Hexagon::Y2_barrier:
     return true;
@@ -943,8 +943,8 @@ void HexagonPacketizerList::initPacketizerState() {
 }
 
 // ignorePseudoInstruction - Ignore bundling of pseudo instructions.
-bool HexagonPacketizerList::ignorePseudoInstruction(MachineInstr *MI,
-                                                    MachineBasicBlock *MBB) {
+bool HexagonPacketizerList::ignorePseudoInstruction(const MachineInstr *MI,
+      const MachineBasicBlock *MBB) {
   if (MI->isDebugValue())
     return true;
 
@@ -967,7 +967,7 @@ bool HexagonPacketizerList::ignorePseudoInstruction(MachineInstr *MI,
 
 // isSoloInstruction: - Returns true for instructions that must be
 // scheduled in their own packet.
-bool HexagonPacketizerList::isSoloInstruction(MachineInstr *MI) {
+bool HexagonPacketizerList::isSoloInstruction(const MachineInstr *MI) {
   if (MI->isEHLabel() || MI->isCFIInstruction())
     return true;