[all-commits] [llvm/llvm-project] 8f90a5: [llvm-exegesis] Guard __builtin_thread_pointer use...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Mon Jul 17 16:42:24 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8f90a5cc45db3267dbc512d512dcb9e4e9193c9c
https://github.com/llvm/llvm-project/commit/8f90a5cc45db3267dbc512d512dcb9e4e9193c9c
Author: Fangrui Song <i at maskray.me>
Date: 2023-07-17 (Mon, 17 Jul 2023)
Changed paths:
M llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
Log Message:
-----------
[llvm-exegesis] Guard __builtin_thread_pointer use with __has_builtin
While Clang targets have supported __builtin_thread_pointer for a very
long time (e.g., 2007 for AArch32, 2015 for AArch64), for some GCC
ports, the support is very new (11.0 for x86[1], while we need to
support GCC 7), and many ports haven't implemented
__builtin_thread_pointer yet (m68k, powerpc, etc).
[1]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96955
More information about the All-commits
mailing list