* Combines Alignment, AuxInfo, and TB_NOT_REVERSABLE flag into a
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 8 Sep 2011 18:35:57 +0000 (18:35 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 8 Sep 2011 18:35:57 +0000 (18:35 +0000)
commitcbf479df8abe5e208f1438092a9632a145551cbc
tree6c067baf5424f684aae149164e020a479be7c18f
parentcaa60f15e4bbbee63f2d1c5542bb6753c74f16ad
* Combines Alignment, AuxInfo, and TB_NOT_REVERSABLE flag into a
single field (Flags), which is a bitwise OR of items from the TB_*
enum. This makes it easier to add new information in the future.

* Gives every static array an equivalent layout: { RegOp, MemOp, Flags }

* Adds a helper function, AddTableEntry, to avoid duplication of the
insertion code.

* Renames TB_NOT_REVERSABLE to TB_NO_REVERSE.

* Adds TB_NO_FORWARD, which is analogous to TB_NO_REVERSE, except that
it prevents addition of the Reg->Mem entry. (This is going to be used
by Native Client, in the next CL).

Patch by David Meyer

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139311 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrInfo.h