]> granicus.if.org Git - llvm/commit
TargetLibraryInfo: Introduce wcslen
authorMatthias Braun <matze@braunis.de>
Fri, 5 May 2017 20:25:50 +0000 (20:25 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 5 May 2017 20:25:50 +0000 (20:25 +0000)
commit738a26c4e23e6af7160a78a713ccc68a9e70e62c
treeec47e1a5322b5fa51fd7116883725bfa9a0166e8
parentd2ff9194d607d89f9b90e2dc929508e7462eec37
TargetLibraryInfo: Introduce wcslen

wcslen is part of the C99 and C++98 standards.

- This introduces the function to TargetLibraryInfo.
- Also set attributes for wcslen in llvm::inferLibFuncAttributes().

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302278 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/TargetLibraryInfo.def
lib/Analysis/TargetLibraryInfo.cpp
lib/Transforms/Utils/BuildLibCalls.cpp
unittests/Analysis/TargetLibraryInfoTest.cpp