-
Notifications
You must be signed in to change notification settings - Fork 15.5k
PowerPC: Add vec_malloc functions to AIX in RuntimeLibcalls #167089
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
arsenm
merged 1 commit into
main
from
users/arsenm/powerpc/add-vec-malloc-funcs-runtime-libcalls
Dec 5, 2025
Merged
PowerPC: Add vec_malloc functions to AIX in RuntimeLibcalls #167089
arsenm
merged 1 commit into
main
from
users/arsenm/powerpc/add-vec-malloc-funcs-runtime-libcalls
Dec 5, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Nov 8, 2025
Contributor
Author
This was referenced Nov 8, 2025
Member
|
@llvm/pr-subscribers-llvm-ir @llvm/pr-subscribers-llvm-transforms Author: Matt Arsenault (arsenm) ChangesFull diff: https://github.com/llvm/llvm-project/pull/167089.diff 2 Files Affected:
diff --git a/llvm/include/llvm/IR/RuntimeLibcalls.td b/llvm/include/llvm/IR/RuntimeLibcalls.td
index acc9a1bfc0f5b..0dd1460d15932 100644
--- a/llvm/include/llvm/IR/RuntimeLibcalls.td
+++ b/llvm/include/llvm/IR/RuntimeLibcalls.td
@@ -3158,6 +3158,10 @@ def PPCSystemLibrary
has__stack_smash_handler,
has___guard_local,
AvailableIf<__ssp_canary_word, isAIX>,
+ AvailableIf<vec_calloc, isAIX>,
+ AvailableIf<vec_malloc, isAIX>,
+ AvailableIf<vec_realloc, isAIX>,
+ AvailableIf<vec_free, isAIX>,
AvailableIf<__stack_chk_fail, isNotOSOpenBSD>,
AvailableIf<__stack_chk_guard, isNotOSAIXAndNotOSOpenBSD>)>;
diff --git a/llvm/test/Transforms/Util/DeclareRuntimeLibcalls/aix.ll b/llvm/test/Transforms/Util/DeclareRuntimeLibcalls/aix.ll
new file mode 100644
index 0000000000000..97a3d487ad0ee
--- /dev/null
+++ b/llvm/test/Transforms/Util/DeclareRuntimeLibcalls/aix.ll
@@ -0,0 +1,7 @@
+; REQUIRES: webassembly-registered-target
+; RUN: opt -S -passes=declare-runtime-libcalls -mtriple=powerpc64-ibm-aix < %s | FileCheck %s
+
+; CHECK: declare void @vec_calloc(...)
+; CHECK: declare void @vec_free(...)
+; CHECK: declare void @vec_malloc(...)
+; CHECK: declare void @vec_realloc(...)
|
d7558b9 to
5834169
Compare
41af6ea to
3f205fa
Compare
5834169 to
3438eeb
Compare
17a21fd to
9dc959e
Compare
3438eeb to
39d5c81
Compare
9dc959e to
c3a79e9
Compare
39d5c81 to
ea76847
Compare
ea76847 to
9eb0d92
Compare
010113e to
db96a80
Compare
9eb0d92 to
9d71ecc
Compare
db96a80 to
5c91bba
Compare
9d71ecc to
3d16bc8
Compare
Base automatically changed from
users/arsenm/xcore/add-iprintf-runtime-libcalls
to
main
November 27, 2025 13:45
3d16bc8 to
5c59c10
Compare
lei137
approved these changes
Dec 5, 2025
honeygoyal
pushed a commit
to honeygoyal/llvm-project
that referenced
this pull request
Dec 9, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

No description provided.