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

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

@arsenm arsenm requested a review from topperc November 8, 2025 04:10
@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
@arsenm arsenm force-pushed the users/arsenm/powerpc/add-vec-malloc-funcs-runtime-libcalls branch from ea76847 to 9eb0d92 Compare November 25, 2025 13:43
@arsenm arsenm force-pushed the users/arsenm/xcore/add-iprintf-runtime-libcalls branch 2 times, most recently from 010113e to db96a80 Compare November 25, 2025 16:18
@arsenm arsenm force-pushed the users/arsenm/powerpc/add-vec-malloc-funcs-runtime-libcalls branch from 9eb0d92 to 9d71ecc Compare November 25, 2025 16:18
@arsenm arsenm force-pushed the users/arsenm/xcore/add-iprintf-runtime-libcalls branch from db96a80 to 5c91bba Compare November 26, 2025 15:43
@arsenm arsenm force-pushed the users/arsenm/powerpc/add-vec-malloc-funcs-runtime-libcalls branch from 9d71ecc to 3d16bc8 Compare November 26, 2025 15:43
Base automatically changed from users/arsenm/xcore/add-iprintf-runtime-libcalls to main November 27, 2025 13:45
@arsenm arsenm force-pushed the users/arsenm/powerpc/add-vec-malloc-funcs-runtime-libcalls branch from 3d16bc8 to 5c59c10 Compare December 2, 2025 12:11
@arsenm arsenm requested review from amy-kwan, diggerlin, lei137 and mandlebug and removed request for efriedma-quic December 3, 2025 21:17
@arsenm arsenm merged commit 716fffe into main Dec 5, 2025
10 checks passed
@arsenm arsenm deleted the users/arsenm/powerpc/add-vec-malloc-funcs-runtime-libcalls branch December 5, 2025 15:54
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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants