[PATCH] D143619: [llvm][codegen] Disallow default Emulated TLS for RISCV
Jessica Clarke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 9 08:55:18 PST 2023
jrtc27 added inline comments.
================
Comment at: llvm/include/llvm/TargetParser/Triple.h:955
bool hasDefaultEmulatedTLS() const {
- return isAndroid() || isOSOpenBSD() || isWindowsCygwinEnvironment();
+ return !isRISCV64() &&
+ (isAndroid() || isOSOpenBSD() || isWindowsCygwinEnvironment());
----------------
Hoisting this out to supportsEmulatedTLS() would seem useful, and would be reusable by Clang to diagnose -femulated-tls on such targets
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143619/new/
https://reviews.llvm.org/D143619
More information about the llvm-commits
mailing list