CodeGen: convert CCState interface to using ArrayRefs
authorTim Northover <tnorthover@apple.com>
Sat, 21 Feb 2015 02:11:17 +0000 (02:11 +0000)
committerTim Northover <tnorthover@apple.com>
Sat, 21 Feb 2015 02:11:17 +0000 (02:11 +0000)
commit3b6b7ca2bc6e0ea188bc3501f25384eaf97eb55a
tree5de33f3a5e5e001d1fba1769d37605cd98efe584
parent6b0d0464a8654619ab9e14f0f1096b398f9819c2
CodeGen: convert CCState interface to using ArrayRefs

Everyone except R600 was manually passing the length of a static array
at each callsite, calculated in a variety of interesting ways. Far
easier to let ArrayRef handle that.

There should be no functional change, but out of tree targets may have
to tweak their calls as with these examples.

llvm-svn: 230118
14 files changed:
llvm/include/llvm/CodeGen/CallingConvLower.h
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/ARM/ARMCallingConv.h
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
llvm/lib/Target/MSP430/MSP430ISelLowering.cpp
llvm/lib/Target/Mips/MipsISelLowering.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/R600/SIISelLowering.cpp
llvm/lib/Target/Sparc/SparcISelLowering.cpp
llvm/lib/Target/X86/X86FastISel.cpp
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/lib/Target/XCore/XCoreISelLowering.cpp
llvm/utils/TableGen/CallingConvEmitter.cpp