OSDN Git Service

[TLI] Add prototype checking for all remaining LibFuncs.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Tue, 17 Jan 2017 03:10:02 +0000 (03:10 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Tue, 17 Jan 2017 03:10:02 +0000 (03:10 +0000)
commitbe550d0c30da993b38340eb140b9d0f034b9da92
tree48f22c7a112b3154589104ad849cc00073917ae9
parent70b9507f8a529fc4245b45d4b720ad6a6c240596
[TLI] Add prototype checking for all remaining LibFuncs.

This is another step towards unifying all LibFunc prototype checks.
This work started in r267758 (D19469);  add the remaining checks.

Also add a unittest that checks each libfunc declared with a known-valid
and known-invalid prototype.  New libfuncs added in the future are
required to have prototype checking in place; the known-valid test will
fail otherwise.

Differential Revision: https://reviews.llvm.org/D28030

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292188 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/TargetLibraryInfo.cpp
unittests/Analysis/CMakeLists.txt
unittests/Analysis/TargetLibraryInfoTest.cpp [new file with mode: 0644]