Store CodeGenRegisters as pointers so they won't be reallocated.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 18 Jun 2011 04:26:06 +0000 (04:26 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 18 Jun 2011 04:26:06 +0000 (04:26 +0000)
commitabdbc84b4ed4276ed3def50f554e3ba156325717
tree0a8118fb468d1b1082af23704e254bf94de424c6
parent54c47c1ce94b9e549ef768e80fd004788d13ce85
Store CodeGenRegisters as pointers so they won't be reallocated.

Reuse the CodeGenRegBank DenseMap in a few places that would build their
own or use linear search.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133333 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/AsmMatcherEmitter.cpp
utils/TableGen/AsmWriterEmitter.cpp
utils/TableGen/CodeGenRegisters.cpp
utils/TableGen/CodeGenRegisters.h
utils/TableGen/CodeGenTarget.cpp
utils/TableGen/CodeGenTarget.h
utils/TableGen/DAGISelMatcherGen.cpp
utils/TableGen/FastISelEmitter.cpp
utils/TableGen/RegisterInfoEmitter.cpp