[llvm-tblgen] Avoid StringMatcher for GCC and MS builtin names
authorReid Kleckner <rnk@google.com>
Wed, 27 Jan 2016 01:43:12 +0000 (01:43 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 27 Jan 2016 01:43:12 +0000 (01:43 +0000)
commit5b4637141eb4f1e1d01e58699f90541a480b5a96
treeb0625bbd2ce32dcc287a89f2e2746207a2f7785b
parent3075134739edc9cd16d5ca7b9a78d8b4d5fbff3e
[llvm-tblgen] Avoid StringMatcher for GCC and MS builtin names

This brings the compile time of Function.cpp from ~40s down to ~4s for
me locally. It also shaves off about 400KB of object file size in a
release+asserts build.

I also realized that the AMDGPU backend does not have any GCC builtin
names to match, so the extra lookup was a no-op. I removed it to silence
a zero-length string table array warning. There should be no functional
change here.

This change really ends the story of PR11951.

llvm-svn: 258897
llvm/include/llvm/TableGen/StringToOffsetTable.h
llvm/lib/Target/AMDGPU/AMDGPUIntrinsicInfo.cpp
llvm/utils/TableGen/IntrinsicEmitter.cpp