diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-10-18 23:41:25 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-10-18 23:41:25 +0000 |
commit | 4216b993caf5a5bb24c5308eda32242fd06aaaca (patch) | |
tree | 3d559e4e155f2686ed3df5347900b135553ae993 /docs/LangRef.rst | |
parent | fe16848601bdde6e3a5e0860199169dd171222a4 (diff) | |
download | external_llvm-4216b993caf5a5bb24c5308eda32242fd06aaaca.zip external_llvm-4216b993caf5a5bb24c5308eda32242fd06aaaca.tar.gz external_llvm-4216b993caf5a5bb24c5308eda32242fd06aaaca.tar.bz2 |
Write a simple description of the 'target triple' directive. This should be expanded. PR8976.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193014 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/LangRef.rst')
-rw-r--r-- | docs/LangRef.rst | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/LangRef.rst b/docs/LangRef.rst index 2449e01..b75c6b1 100644 --- a/docs/LangRef.rst +++ b/docs/LangRef.rst @@ -1178,6 +1178,30 @@ don't have to specify the string. This will disable some optimizations that require precise layout information, but this also prevents those optimizations from introducing target specificity into the IR. +.. _langref_triple: + +Target Triple +------------- + +A module may specify a target triple string that describes the target +host. The syntax for the target triple is simply: + +.. code-block:: llvm + + target triple = "x86_64-apple-macosx10.7.0" + +The *target triple* string consists of a series of identifiers delimited +by the minus sign character ('-'). The canonical forms are: + +:: + + ARCHITECTURE-VENDOR-OPERATING_SYSTEM + ARCHITECTURE-VENDOR-OPERATING_SYSTEM-ENVIRONMENT + +This information is passed along to the backend so that it generates +code for the proper architecture. It's possible to override this on the +command line with the ``-mtriple`` command line option. + .. _pointeraliasing: Pointer Aliasing Rules |