[PATCH] D149848: [AArch64, compiler-rt] Implement trampoline intrinsics
Lou via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 4 06:52:04 PDT 2023
iamlouk created this revision.
Herald added subscribers: Enna1, steven.zhang, hiraditya, kristof.beyls, krytarowski, dberris.
Herald added a project: All.
iamlouk requested review of this revision.
Herald added projects: Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers.
The llvm.init.trampoline intrinsic is custom lowered to a call of
__trampoline_setup in the AArch64 instruction selection. As these
trampolines require an executable stack, a fatal error is reported
on Android or AArch64 Darwin platforms instead.
The function __trampoline_setup is implemented in the compiler-rt
for the AArch64 architecture.
This patch is inspired by the implementation of the same
intrinsics on the PowerPC architecture.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D149848
Files:
compiler-rt/lib/builtins/trampoline_setup.c
compiler-rt/test/builtins/Unit/trampoline_setup_test.c
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.h
llvm/test/CodeGen/AArch64/trampoline.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149848.519474.patch
Type: text/x-patch
Size: 6528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230504/8cb035eb/attachment.bin>
More information about the llvm-commits
mailing list