Skip to content

Commit d7558b9

Browse files
committed
PowerPC: Add vec_malloc functions to AIX in RuntimeLibcalls
1 parent 41af6ea commit d7558b9

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

llvm/include/llvm/IR/RuntimeLibcalls.td

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3158,6 +3158,10 @@ def PPCSystemLibrary
31583158
has__stack_smash_handler,
31593159
has___guard_local,
31603160
AvailableIf<__ssp_canary_word, isAIX>,
3161+
AvailableIf<vec_calloc, isAIX>,
3162+
AvailableIf<vec_malloc, isAIX>,
3163+
AvailableIf<vec_realloc, isAIX>,
3164+
AvailableIf<vec_free, isAIX>,
31613165
AvailableIf<__stack_chk_fail, isNotOSOpenBSD>,
31623166
AvailableIf<__stack_chk_guard, isNotOSAIXAndNotOSOpenBSD>)>;
31633167

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
; REQUIRES: webassembly-registered-target
2+
; RUN: opt -S -passes=declare-runtime-libcalls -mtriple=powerpc64-ibm-aix < %s | FileCheck %s
3+
4+
; CHECK: declare void @vec_calloc(...)
5+
; CHECK: declare void @vec_free(...)
6+
; CHECK: declare void @vec_malloc(...)
7+
; CHECK: declare void @vec_realloc(...)

0 commit comments

Comments
 (0)