llvm.org GIT mirror llvm / fe9f74e
Add "const" to function arguments in DFAPacketizer git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255526 91177308-0d34-0410-b5e6-96231b3b80d8 Krzysztof Parzyszek 4 years ago
3 changed file(s) with 13 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
169169 virtual void initPacketizerState() { return; }
170170
171171 // ignorePseudoInstruction - Ignore bundling of pseudo instructions.
172 virtual bool ignorePseudoInstruction(MachineInstr *I,
173 MachineBasicBlock *MBB) {
172 virtual bool ignorePseudoInstruction(const MachineInstr *I,
173 const MachineBasicBlock *MBB) {
174174 return false;
175175 }
176176
177177 // isSoloInstruction - return true if instruction MI can not be packetized
178178 // with any other instruction, which means that MI itself is a packet.
179 virtual bool isSoloInstruction(MachineInstr *MI) {
179 virtual bool isSoloInstruction(const MachineInstr *MI) {
180180 return true;
181181 }
182182
160160 }
161161
162162 // ignorePseudoInstruction - Ignore bundling of pseudo instructions.
163 bool ignorePseudoInstruction(MachineInstr *MI,
164 MachineBasicBlock *MBB) override {
163 bool ignorePseudoInstruction(const MachineInstr *MI,
164 const MachineBasicBlock *MBB) override {
165165 return false;
166166 }
167167
168168 // isSoloInstruction - return true if instruction MI can not be packetized
169169 // with any other instruction, which means that MI itself is a packet.
170 bool isSoloInstruction(MachineInstr *MI) override {
170 bool isSoloInstruction(const MachineInstr *MI) override {
171171 if (TII->isVector(*MI))
172172 return true;
173173 if (!TII->isALUInstr(MI->getOpcode()))
124124 void initPacketizerState() override;
125125
126126 // ignorePseudoInstruction - Ignore bundling of pseudo instructions.
127 bool ignorePseudoInstruction(MachineInstr *MI,
128 MachineBasicBlock *MBB) override;
127 bool ignorePseudoInstruction(const MachineInstr *MI,
128 const MachineBasicBlock *MBB) override;
129129
130130 // isSoloInstruction - return true if instruction MI can not be packetized
131131 // with any other instruction, which means that MI itself is a packet.
132 bool isSoloInstruction(MachineInstr *MI) override;
132 bool isSoloInstruction(const MachineInstr *MI) override;
133133
134134 // isLegalToPacketizeTogether - Is it legal to packetize SUI and SUJ
135135 // together.
365365 return (MI->getOpcode() == Hexagon::J2_jump);
366366 }
367367
368 static bool IsSchedBarrier(MachineInstr* MI) {
368 static bool IsSchedBarrier(const MachineInstr* MI) {
369369 switch (MI->getOpcode()) {
370370 case Hexagon::Y2_barrier:
371371 return true;
942942 }
943943
944944 // ignorePseudoInstruction - Ignore bundling of pseudo instructions.
945 bool HexagonPacketizerList::ignorePseudoInstruction(MachineInstr *MI,
946 MachineBasicBlock *MBB) {
945 bool HexagonPacketizerList::ignorePseudoInstruction(const MachineInstr *MI,
946 const MachineBasicBlock *MBB) {
947947 if (MI->isDebugValue())
948948 return true;
949949
966966
967967 // isSoloInstruction: - Returns true for instructions that must be
968968 // scheduled in their own packet.
969 bool HexagonPacketizerList::isSoloInstruction(MachineInstr *MI) {
969 bool HexagonPacketizerList::isSoloInstruction(const MachineInstr *MI) {
970970 if (MI->isEHLabel() || MI->isCFIInstruction())
971971 return true;
972972