[TargetLibraryInfo] Refactor size_t checks in isValidProtoForLibFunc. NFC
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Tue, 28 Sep 2021 08:26:25 +0000 (10:26 +0200)
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Mon, 4 Oct 2021 13:46:39 +0000 (15:46 +0200)
commit7f84fa4ad41aafc8a20b2ea792c98bf991ed3d53
treed11c6dc3cf8cf00aca43ff82f18444deae25c894
parentf074a6a041936cc5a93f0ca4fb6c2f6ed9895350
[TargetLibraryInfo] Refactor size_t checks in isValidProtoForLibFunc. NFC

In TargetLibraryInfoImpl::isValidProtoForLibFunc we no longer
need the IsSizeTTy lambda function and the SizeTTy object. Instead
we just follow the regular structure of checking for integer types
given an exepected number of bits.
llvm/include/llvm/Analysis/TargetLibraryInfo.h
llvm/lib/Analysis/TargetLibraryInfo.cpp
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp