[NFC][MC] Use MCRegister in LiveRangeMatrix
authorMircea Trofin <mtrofin@google.com>
Fri, 9 Oct 2020 17:04:29 +0000 (10:04 -0700)
committerMircea Trofin <mtrofin@google.com>
Mon, 12 Oct 2020 15:54:36 +0000 (08:54 -0700)
commit43d347995c33a5f48f0b4d9cf3d541a1f6ba66c6
tree1bf070d81846ff598efd7eb78c7a1ec9b546814c
parentea058d289cbf54e5b33aac7f7a13d0d58625f1b9
[NFC][MC] Use MCRegister in LiveRangeMatrix

The change starts from LiveRangeMatrix and also checks the users of the
APIs are typed accordingly.

Differential Revision: https://reviews.llvm.org/D89145
llvm/include/llvm/CodeGen/LiveRegMatrix.h
llvm/lib/CodeGen/LiveRegMatrix.cpp
llvm/lib/CodeGen/RegAllocBase.cpp
llvm/lib/CodeGen/RegAllocBase.h
llvm/lib/CodeGen/RegAllocBasic.cpp
llvm/lib/CodeGen/RegAllocGreedy.cpp
llvm/lib/Target/AMDGPU/GCNNSAReassign.cpp
llvm/lib/Target/AMDGPU/GCNRegBankReassign.cpp
llvm/lib/Target/AMDGPU/SIPreAllocateWWMRegs.cpp