r363776 - [RISCV] Mark TLS as supported
Lewis Revill via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 19 01:53:46 PDT 2019
Author: lewis-revill
Date: Wed Jun 19 01:53:46 2019
New Revision: 363776
URL: http://llvm.org/viewvc/llvm-project?rev=363776&view=rev
Log:
[RISCV] Mark TLS as supported
Inform Clang that TLS is implemented by LLVM for RISC-V
Differential Revision: https://reviews.llvm.org/D57055
Modified:
cfe/trunk/lib/Basic/Targets/RISCV.h
cfe/trunk/test/CodeGen/thread-specifier.c
Modified: cfe/trunk/lib/Basic/Targets/RISCV.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets/RISCV.h?rev=363776&r1=363775&r2=363776&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets/RISCV.h (original)
+++ cfe/trunk/lib/Basic/Targets/RISCV.h Wed Jun 19 01:53:46 2019
@@ -35,7 +35,6 @@ public:
RISCVTargetInfo(const llvm::Triple &Triple, const TargetOptions &)
: TargetInfo(Triple), HasM(false), HasA(false), HasF(false),
HasD(false), HasC(false) {
- TLSSupported = false;
LongDoubleWidth = 128;
LongDoubleAlign = 128;
LongDoubleFormat = &llvm::APFloat::IEEEquad();
Modified: cfe/trunk/test/CodeGen/thread-specifier.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/thread-specifier.c?rev=363776&r1=363775&r2=363776&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/thread-specifier.c (original)
+++ cfe/trunk/test/CodeGen/thread-specifier.c Wed Jun 19 01:53:46 2019
@@ -1,4 +1,6 @@
// RUN: %clang_cc1 -triple i686-pc-linux-gnu -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -triple riscv32 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -triple riscv64 -emit-llvm -o - %s | FileCheck %s
// CHECK: @b = external thread_local global
// CHECK: @d.e = internal thread_local global
More information about the cfe-commits
mailing list