Skip to content

Conversation

@arsenm
Copy link
Contributor

@arsenm arsenm commented Nov 8, 2025

No description provided.

Copy link
Contributor Author

arsenm commented Nov 8, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@arsenm arsenm marked this pull request as ready for review November 8, 2025 04:10
@llvmbot
Copy link
Member

llvmbot commented Nov 8, 2025

@llvm/pr-subscribers-llvm-ir
@llvm/pr-subscribers-llvm-selectiondag

@llvm/pr-subscribers-llvm-transforms

Author: Matt Arsenault (arsenm)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/167089.diff

2 Files Affected:

  • (modified) llvm/include/llvm/IR/RuntimeLibcalls.td (+4)
  • (added) llvm/test/Transforms/Util/DeclareRuntimeLibcalls/aix.ll (+7)
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(...)

@arsenm arsenm force-pushed the users/arsenm/powerpc/add-vec-malloc-funcs-runtime-libcalls branch 2 times, most recently from d7558b9 to 5834169 Compare November 10, 2025 19:22
@arsenm arsenm force-pushed the users/arsenm/xcore/add-iprintf-runtime-libcalls branch from 41af6ea to 3f205fa Compare November 10, 2025 19:22
@arsenm arsenm force-pushed the users/arsenm/powerpc/add-vec-malloc-funcs-runtime-libcalls branch from 5834169 to 3438eeb Compare November 12, 2025 00:57
@arsenm arsenm force-pushed the users/arsenm/xcore/add-iprintf-runtime-libcalls branch 2 times, most recently from 17a21fd to 9dc959e Compare November 12, 2025 02:11
@arsenm arsenm force-pushed the users/arsenm/powerpc/add-vec-malloc-funcs-runtime-libcalls branch from 3438eeb to 39d5c81 Compare November 12, 2025 02:11
@arsenm arsenm force-pushed the users/arsenm/xcore/add-iprintf-runtime-libcalls branch from 9dc959e to c3a79e9 Compare November 12, 2025 03:24
@arsenm arsenm force-pushed the users/arsenm/powerpc/add-vec-malloc-funcs-runtime-libcalls branch from 39d5c81 to ea76847 Compare November 12, 2025 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants