[RegisterBank] Provide a way to check if a register bank is valid.
authorQuentin Colombet <qcolombet@apple.com>
Tue, 5 Apr 2016 20:48:32 +0000 (20:48 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Tue, 5 Apr 2016 20:48:32 +0000 (20:48 +0000)
commitc4db2ad5b87de895e74c86536ddd6b754ad48afe
treeebe13f37c5e34dd3c7d494bacc41f1dacee4a3a4
parent91d3cfed785b46723ebbf8197f70aa0f854c05d7
[RegisterBank] Provide a way to check if a register bank is valid.
Change the default constructor to create invalid object.
The target will have to properly initialize the register banks before
using them.

llvm-svn: 265460
llvm/include/llvm/CodeGen/GlobalISel/RegisterBank.h
llvm/lib/CodeGen/GlobalISel/RegisterBank.cpp