diff options
author | Marco Elver <elver@google.com> | 2025-06-23 12:03:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-23 12:03:35 +0200 |
commit | 0662045bdf6ca2186511dd84f3b2248bedece690 (patch) | |
tree | 708097960ed9aeed2b2c8dc63247e5d769d5a50e /llvm/unittests/Analysis | |
parent | 714b2fdf3a385e5b9a95c435f56b1696ec3ec9e8 (diff) | |
download | llvm-0662045bdf6ca2186511dd84f3b2248bedece690.zip llvm-0662045bdf6ca2186511dd84f3b2248bedece690.tar.gz llvm-0662045bdf6ca2186511dd84f3b2248bedece690.tar.bz2 |
[TLI] Add support for pvalloc() (#144949)
While pvalloc() is a legacy POSIX function, it remains widely available
in common C libraries like glibc.
Model pvalloc() in TargetLibraryInfo, allowing LLVM to correctly infer
its attributes.
Diffstat (limited to 'llvm/unittests/Analysis')
-rw-r--r-- | llvm/unittests/Analysis/TargetLibraryInfoTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp b/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp index 9772248..2f1bcba 100644 --- a/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp +++ b/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp @@ -315,6 +315,7 @@ TEST_F(TargetLibraryInfoTest, ValidProto) { "declare i32 @putchar(i32)\n" "declare i32 @putchar_unlocked(i32)\n" "declare i32 @puts(i8*)\n" + "declare i8* @pvalloc(i64)\n" "declare void @qsort(i8*, i64, i64, i32 (i8*, i8*)*)\n" "declare i64 @readlink(i8*, i8*, i64)\n" "declare i8* @realloc(i8*, i64)\n" |