OSDN Git Service

[TableGen] Generate offsets into a flat array for getOperandType
authorJustin Bogner <mail@justinbogner.com>
Tue, 16 Jul 2019 22:39:18 +0000 (22:39 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 16 Jul 2019 22:39:18 +0000 (22:39 +0000)
commitc50b9820018d7f71ac6985455dbbfdad96020f43
treeef74c629dccf75f7f6cf434f7f1908c10da93fb6
parent9eb4a3996776f8b6a94be0a656c516852aa51cbe
[TableGen] Generate offsets into a flat array for getOperandType

Rather than an array of std::initializer_list, generate a table of
offsets and a flat array of the operands for getOperandType. This is a
bit more efficient on platforms that don't manage to get the array of
inintializer_lists initialized at link time (I'm looking at you
macOS). It's also quite quite a bit faster to compile.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366278 91177308-0d34-0410-b5e6-96231b3b80d8
test/TableGen/get-operand-type.td
utils/TableGen/InstrInfoEmitter.cpp