public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Marcus Shawcroft <marcus.shawcroft@gmail.com>
To: Jiong Wang <jiong.wang@arm.com>
Cc: gcc-patches <gcc-patches@gnu.org>
Subject: Re: [AArch64][TLSLE][5/N] Recognize -mtls-size
Date: Fri, 26 Jun 2015 15:25:00 -0000	[thread overview]
Message-ID: <CAFqB+PwyZqp1OMcoY751Nk7atqt1GNZ1F9Ef5S6A6jq_wfMSsA@mail.gmail.com> (raw)
In-Reply-To: <n99ioblooz5.fsf@arm.com>

On 21 May 2015 at 17:44, Jiong Wang <jiong.wang@arm.com> wrote:
>
> This patch add -mtls-size option for AArch64. This option let user to do
> finer control on code generation for various TLS model on AArch64.
>
> For example, for TLS LE, user can specify smaller tls-size, for example
> 4K which is quite usual, to let AArch64 backend generate more efficient
> instruction sequences.
>
> Currently, -mtls-size accept all integer, then will translate it into
> 12(4K), 24(16M), 32(4G), 48(256TB) based on the value.
>
> no functional change.
>
> ok for trunk?
>
> 2015-05-20  Jiong Wang  <jiong.wang@arm.com>
>
> gcc/
>   * config/aarch64/aarch64.opt (mtls-size): New entry.
>   * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
>   * doc/invoke.texi (AArch64 Options): Document -mtls-size.

+mtls-size=
+Target RejectNegative Joined UInteger Var(aarch64_tls_size) Init(24)
+Specifies size of the TLS data area, default size is 16M. Accept any
integer, but the value
+will be transformed into 12(4K), 24(16M), 32(4G), 48(256TB)
+

Can we follow the mechanism used by rs6000 and limit the accepted
values here using an Enum to just the valid values: 12, 24, 32, 48?

+@item -mtls-size=@var{size}
+@opindex mtls-size
+Specify the size of TLS area. You can specify smaller value to get better code
+generation for TLS variable access. Currently, we accept any integer, but will
+turn them into 12(4K), 24(16M), 32(4G), 48(256TB) according to the integer
+value.
+

How about:
"Specify bit size of immediate TLS offsets.  Valid values are 12, 24, 32, 48."

Thanks
/Marcus

  parent reply	other threads:[~2015-06-26 15:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-21 16:53 Jiong Wang
2015-05-21 18:14 ` [AArch64][TLSLE][4/N] " Jiong Wang
2015-06-26 15:25 ` Marcus Shawcroft [this message]
2015-08-19 14:30   ` [AArch64][TLSLE][1/3] Add the option "-mtls-size" for AArch64 Jiong Wang
2015-08-19 14:37     ` [AArch64][TLSLE][2/3] " Jiong Wang
2015-08-19 16:34       ` [AArch64][TLSLE][2/3] Rename SYMBOL_TLSLE to SYMBOL_TLSLE24 Jiong Wang
2015-08-25  9:46       ` [AArch64][TLSLE][2/3] Add the option "-mtls-size" for AArch64 Marcus Shawcroft
2015-08-25 10:26     ` [AArch64][TLSLE][1/3] " Marcus Shawcroft
2015-08-25 14:19       ` Jiong Wang
2015-08-26 12:39         ` Marcus Shawcroft

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFqB+PwyZqp1OMcoY751Nk7atqt1GNZ1F9Ef5S6A6jq_wfMSsA@mail.gmail.com \
    --to=marcus.shawcroft@gmail.com \
    --cc=gcc-patches@gnu.org \
    --cc=jiong.wang@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).