mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
e67bd6c248
MIOperands/ConstMIOperands are classes iterating over the MachineOperand of a MachineInstr, however MachineInstr::mop_iterator does the same thing. I assume these two iterators exist to have a uniform interface to iterate over the operands of a machine instruction bundle and a single machine instruction. However in practice I find it more confusing to have 2 different iterator classes, so this patch transforms (nearly all) the code to use mop_iterators. The only exception being MIOperands::anlayzePhysReg() and MIOperands::analyzeVirtReg() still needing an equivalent, I leave that as an exercise for the next patch. Differential Revision: http://reviews.llvm.org/D9932 This version is slightly modified from the proposed revision in that it introduces MachineInstr::getOperandNo to avoid the extra counting variable in the few loops that previously used MIOperands::getOperandNo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238539 91177308-0d34-0410-b5e6-96231b3b80d8 |
||
---|---|---|
.. | ||
Disassembler | ||
MCTargetDesc | ||
TargetInfo | ||
CMakeLists.txt | ||
Hexagon.h | ||
Hexagon.td | ||
HexagonAsmPrinter.cpp | ||
HexagonAsmPrinter.h | ||
HexagonCallingConv.td | ||
HexagonCFGOptimizer.cpp | ||
HexagonCopyToCombine.cpp | ||
HexagonExpandCondsets.cpp | ||
HexagonExpandPredSpillCode.cpp | ||
HexagonFixupHwLoops.cpp | ||
HexagonFrameLowering.cpp | ||
HexagonFrameLowering.h | ||
HexagonHardwareLoops.cpp | ||
HexagonInstrFormats.td | ||
HexagonInstrFormatsV4.td | ||
HexagonInstrInfo.cpp | ||
HexagonInstrInfo.h | ||
HexagonInstrInfo.td | ||
HexagonInstrInfoV3.td | ||
HexagonInstrInfoV4.td | ||
HexagonInstrInfoV5.td | ||
HexagonInstrInfoVector.td | ||
HexagonIntrinsics.td | ||
HexagonIntrinsicsDerived.td | ||
HexagonIntrinsicsV3.td | ||
HexagonIntrinsicsV4.td | ||
HexagonIntrinsicsV5.td | ||
HexagonISelDAGToDAG.cpp | ||
HexagonISelLowering.cpp | ||
HexagonISelLowering.h | ||
HexagonMachineFunctionInfo.cpp | ||
HexagonMachineFunctionInfo.h | ||
HexagonMachineScheduler.cpp | ||
HexagonMachineScheduler.h | ||
HexagonMCInstLower.cpp | ||
HexagonNewValueJump.cpp | ||
HexagonOperands.td | ||
HexagonPeephole.cpp | ||
HexagonRegisterInfo.cpp | ||
HexagonRegisterInfo.h | ||
HexagonRegisterInfo.td | ||
HexagonRemoveSZExtArgs.cpp | ||
HexagonSchedule.td | ||
HexagonScheduleV4.td | ||
HexagonSelectCCInfo.td | ||
HexagonSelectionDAGInfo.cpp | ||
HexagonSelectionDAGInfo.h | ||
HexagonSplitConst32AndConst64.cpp | ||
HexagonSubtarget.cpp | ||
HexagonSubtarget.h | ||
HexagonTargetMachine.cpp | ||
HexagonTargetMachine.h | ||
HexagonTargetObjectFile.cpp | ||
HexagonTargetObjectFile.h | ||
HexagonVLIWPacketizer.cpp | ||
LLVMBuild.txt | ||
Makefile |