]> granicus.if.org Git - llvm/commit
[TableGen] Fix crash when using HwModes in CodeEmitterGen
authorJames Molloy <jmolloy@google.com>
Wed, 9 Oct 2019 09:15:34 +0000 (09:15 +0000)
committerJames Molloy <jmolloy@google.com>
Wed, 9 Oct 2019 09:15:34 +0000 (09:15 +0000)
commit102de6b935c4595e14e0f56bb7307962915b3f72
tree14f1e0240218c3ff5aac9bc169f8502d884b29c7
parentd0f842f84bf4e0b6973a572faeaf3847c4d7e244
[TableGen] Fix crash when using HwModes in CodeEmitterGen

When an instruction has an encoding definition for only a subset of
the available HwModes, ensure we just avoid generating an encoding
rather than crash.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374150 91177308-0d34-0410-b5e6-96231b3b80d8
test/TableGen/HwModeEncodeDecode.td
utils/TableGen/CodeEmitterGen.cpp