1. Introduce a new TargetOperandInfo::getRegClass() helper method
authorChris Lattner <sabre@nondot.org>
Wed, 29 Jul 2009 21:10:12 +0000 (21:10 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 29 Jul 2009 21:10:12 +0000 (21:10 +0000)
commitf3239532cc909b61ed069346cf524a46f1ce9f2f
tree9abf506ec60e5dc1a8a4c9b9f24bd7f8cdc4327e
parent426bc7c0ae1d03841d7de80ef71de189b115afe3
1. Introduce a new TargetOperandInfo::getRegClass() helper method
   and convert code to using it, instead of having lots of things
   poke the isLookupPtrRegClass() method directly.

2. Make PointerLikeRegClass contain a 'kind' int, and store it in
   the existing regclass field of TargetOperandInfo when the
   isLookupPtrRegClass() predicate is set.  Make getRegClass pass
   this into TargetRegisterInfo::getPointerRegClass(), allowing
   targets to have multiple ptr_rc things.

llvm-svn: 77504
llvm/include/llvm/Target/Target.td
llvm/include/llvm/Target/TargetInstrDesc.h
llvm/lib/CodeGen/MachineVerifier.cpp
llvm/lib/Target/TargetInstrInfo.cpp
llvm/lib/Target/X86/X86InstrInfo.cpp
llvm/utils/TableGen/InstrInfoEmitter.cpp