[libc-commits] [PATCH] D72102: [libc] Add __attribute__((always_inline)) to x86_64 syscall functions.
Siva Chandra via Phabricator via libc-commits
libc-commits at lists.llvm.org
Mon Jan 6 21:46:20 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG6598af4a54b0: [libc] Add __attribute__((always_inline)) to x86_64 syscall functions. (authored by sivachandra).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72102/new/
https://reviews.llvm.org/D72102
Files:
libc/config/linux/x86_64/syscall.h.inc
Index: libc/config/linux/x86_64/syscall.h.inc
===================================================================
--- libc/config/linux/x86_64/syscall.h.inc
+++ libc/config/linux/x86_64/syscall.h.inc
@@ -1,4 +1,4 @@
-//===------------ inline implementation of x86_64 syscalls --------------*-===//
+//===------------ inline implementation of x86_64 syscalls ----------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -14,7 +14,7 @@
namespace __llvm_libc {
-inline long syscall(long __number) {
+__attribute__((always_inline)) inline long syscall(long __number) {
long retcode;
LIBC_INLINE_ASM("syscall" :
"=a"(retcode) :
@@ -23,7 +23,7 @@
return retcode;
}
-inline long syscall(long __number, long __arg1) {
+__attribute__((always_inline)) inline long syscall(long __number, long __arg1) {
long retcode;
LIBC_INLINE_ASM("syscall" :
"=a"(retcode) :
@@ -32,7 +32,8 @@
return retcode;
}
-inline long syscall(long __number, long __arg1, long __arg2) {
+__attribute__((always_inline)) inline long syscall(
+ long __number, long __arg1, long __arg2) {
long retcode;
LIBC_INLINE_ASM("syscall" :
"=a"(retcode) :
@@ -41,7 +42,8 @@
return retcode;
}
-inline long syscall(long __number, long __arg1, long __arg2, long __arg3) {
+__attribute__((always_inline)) inline long syscall(
+ long __number, long __arg1, long __arg2, long __arg3) {
long retcode;
LIBC_INLINE_ASM("syscall" :
"=a"(retcode) :
@@ -50,7 +52,7 @@
return retcode;
}
-inline long syscall(
+__attribute__((always_inline)) inline long syscall(
long __number, long __arg1, long __arg2, long __arg3, long __arg4) {
long retcode;
register long r10 __asm__("r10") = __arg4;
@@ -61,8 +63,9 @@
return retcode;
}
-inline long syscall(long __number, long __arg1, long __arg2, long __arg3,
- long __arg4, long __arg5) {
+__attribute__((always_inline)) inline long syscall(
+ long __number, long __arg1, long __arg2, long __arg3, long __arg4,
+ long __arg5) {
long retcode;
register long r10 __asm__("r10") = __arg4;
register long r8 __asm__("r8") = __arg5;
@@ -74,8 +77,9 @@
return retcode;
}
-inline long syscall(long __number, long __arg1, long __arg2, long __arg3,
- long __arg4, long __arg5, long __arg6) {
+__attribute__((always_inline)) inline long syscall(
+ long __number, long __arg1, long __arg2, long __arg3, long __arg4,
+ long __arg5, long __arg6) {
long retcode;
register long r10 __asm__("r10") = __arg4;
register long r8 __asm__("r8") = __arg5;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72102.236516.patch
Type: text/x-patch
Size: 2725 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20200107/0de80213/attachment.bin>
More information about the libc-commits
mailing list