[GlobalISel][MachineRegisterInfo] Add a method to create generic vregs.
authorQuentin Colombet <qcolombet@apple.com>
Thu, 11 Feb 2016 00:19:17 +0000 (00:19 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Thu, 11 Feb 2016 00:19:17 +0000 (00:19 +0000)
commite1494c353a8f13b71a41ae21a4f1c4ab535b82dc
tree8b758e3aa447a688adb8b999a26eb10505fbb9da
parent89f3fbb9715fda3853701035f9876a707b43ce41
[GlobalISel][MachineRegisterInfo] Add a method to create generic vregs.
For now, generic virtual registers will not have a register class. We may want
to change that. For instance, if we want to use all the methods from
TargetRegisterInfo with generic virtual registers, we need to either have some
sort of generic register classes that do what we want, or teach those methods
how to deal with nullptr register class.

Although the latter seems easy enough to do, we may still want to differenciate
generic register classes from nullptr to catch cases where nullptr gets
introduced by a bug of some sort.

Anyway, I will file a PR to keep track of that.

llvm-svn: 260474
llvm/include/llvm/CodeGen/MachineRegisterInfo.h
llvm/lib/CodeGen/MachineInstr.cpp
llvm/lib/CodeGen/MachineRegisterInfo.cpp