[TableGen] Properly calculate the minimum size needed or ConvertFn in GenAsmmatcher...
authorCraig Topper <craig.topper@intel.com>
Tue, 2 Apr 2019 20:52:04 +0000 (20:52 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 2 Apr 2019 20:52:04 +0000 (20:52 +0000)
commitb64f915ae0fdd3b6d0a46f17b2d30367f2d56c0b
treef02b5e41cb4d34faaa120fe8d67c74a64a19c94c
parent8129521318accc44c2a009647572f6ebd3fc56dd
[TableGen] Properly calculate the minimum size needed or ConvertFn in GenAsmmatcher.inc files

We were using the number of Matchables rather than the number of rows in the converter table.

This only matters for a few of the targets where the number of matchables is more than 255, but the number of converters is less than 255. Many of the targets have more than 256 converters. So already required a uint16_t.

llvm-svn: 357527
llvm/utils/TableGen/AsmMatcherEmitter.cpp