Teach TableGen to put chains on more instructions
authorTim Northover <Tim.Northover@arm.com>
Tue, 26 Jun 2012 18:46:28 +0000 (18:46 +0000)
committerTim Northover <Tim.Northover@arm.com>
Tue, 26 Jun 2012 18:46:28 +0000 (18:46 +0000)
commitca578e7ba6b1e4ce955134e3fb1d5014942e5248
treec14b547a238fe8ba65c1f36da3d605c8e773a9d4
parentda72dd2a01a9f3e686699d01f4d40b936a52eab6
Teach TableGen to put chains on more instructions

When generating selection tables for Pat instances, TableGen relied on
an output Instruction's Pattern field being set to infer whether a
chain should be added.

This patch adds additional logic to check various flag fields so that
correct code can be generated even if Pattern is unset.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159217 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/DAGISelMatcherGen.cpp