Chih-Hung Hsieh 1e859582d6 Implement target independent TLS compatible with glibc's emutls.c.
The 'common' section TLS is not implemented.
Current C/C++ TLS variables are not placed in common section.
DWARF debug info to get the address of TLS variables is not generated yet.

clang and driver changes in http://reviews.llvm.org/D10524

  Added -femulated-tls flag to select the emulated TLS model,
  which will be used for old targets like Android that do not
  support ELF TLS models.

Added TargetLowering::LowerToTLSEmulatedModel as a target-independent
function to convert a SDNode of TLS variable address to a function call
to __emutls_get_address.

Added into lib/Target/*/*ISelLowering.cpp to call LowerToTLSEmulatedModel
for TLSModel::Emulated. Although all targets supporting ELF TLS models are
enhanced, emulated TLS model has been tested only for Android ELF targets.
Modified AsmPrinter.cpp to print the emutls_v.* and emutls_t.* variables for
emulated TLS variables.
Modified DwarfCompileUnit.cpp to skip some DIE for emulated TLS variabls.

TODO: Add proper DIE for emulated TLS variables.
      Added new unit tests with emulated TLS.

Differential Revision: http://reviews.llvm.org/D10522

llvm-svn: 243438
2015-07-28 16:24:05 +00:00
..
2013-10-15 23:33:07 +00:00
2014-10-16 20:00:02 +00:00
2014-12-15 22:34:58 +00:00
2014-01-16 06:31:20 +00:00
2014-04-19 13:47:43 +00:00
2015-06-05 10:29:55 +00:00
2015-04-06 22:29:07 +00:00
2015-04-06 22:29:07 +00:00
2014-10-21 23:01:01 +00:00
2014-10-21 23:01:01 +00:00
2015-03-06 20:51:25 +00:00
2015-03-06 21:50:27 +00:00
2015-01-08 07:57:27 +00:00
2014-05-06 01:20:42 +00:00
2013-11-14 06:05:49 +00:00
2014-02-25 20:01:08 +00:00
2013-10-15 23:33:07 +00:00
2013-10-15 17:51:02 +00:00
2013-10-15 17:51:58 +00:00
2013-12-03 09:17:32 +00:00
2013-11-02 00:10:02 +00:00
2013-11-22 17:56:57 +00:00
2013-11-26 20:31:31 +00:00
2015-06-02 22:33:30 +00:00
2015-05-28 22:12:27 +00:00
2015-06-22 01:29:24 +00:00
2014-12-03 02:08:38 +00:00
2014-12-03 02:08:38 +00:00
2013-10-15 23:33:07 +00:00
2013-10-31 17:50:45 +00:00
2015-02-05 23:52:12 +00:00
2015-01-26 21:28:32 +00:00
2015-04-30 21:22:28 +00:00
2015-05-02 11:50:47 +00:00
2015-06-30 08:49:35 +00:00
2013-10-15 23:33:07 +00:00
2013-10-15 23:33:07 +00:00
2013-11-17 10:53:19 +00:00
2015-01-26 21:28:32 +00:00
2015-02-11 15:00:19 +00:00
2015-03-06 21:30:18 +00:00
2014-01-11 21:06:00 +00:00
2015-03-06 20:38:55 +00:00
2015-03-06 20:46:16 +00:00
2015-02-11 14:58:25 +00:00
2015-06-07 16:09:48 +00:00
2015-06-07 16:09:48 +00:00
2014-06-07 21:23:09 +00:00
2013-03-26 22:47:01 +00:00
2013-10-15 23:33:07 +00:00