[llvm] r193014 - Write a simple description of the 'target triple' directive. This should be expanded. PR8976.

David Tweed david.tweed at arm.com
Sat Oct 19 05:19:09 PDT 2013


Hi,

It's helpful to have this in the langref. One thing to include in the
expanded text is that on some
Platforms, eg, some ARM platforms, OPERATINGSYSTEM can be referring to the
system libraries ABI
as much as the kernel component of the operating system.

Cheers,
Dave

-----Original Message-----
From: llvm-commits-bounces at cs.uiuc.edu
[mailto:llvm-commits-bounces at cs.uiuc.edu] On Behalf Of Bill Wendling
Sent: 19 October 2013 00:41
To: llvm-commits at cs.uiuc.edu
Subject: [llvm] r193014 - Write a simple description of the 'target triple'
directive. This should be expanded. PR8976.

Author: void
Date: Fri Oct 18 18:41:25 2013
New Revision: 193014

URL: http://llvm.org/viewvc/llvm-project?rev=193014&view=rev
Log:
Write a simple description of the 'target triple' directive. This should be
expanded. PR8976.

Modified:
    llvm/trunk/docs/LangRef.rst

Modified: llvm/trunk/docs/LangRef.rst
URL:
http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LangRef.rst?rev=193014&r
1=193013&r2=193014&view=diff
============================================================================
==
--- llvm/trunk/docs/LangRef.rst (original)
+++ llvm/trunk/docs/LangRef.rst Fri Oct 18 18:41:25 2013
@@ -1178,6 +1178,30 @@ don't have to specify the string. This w
 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


_______________________________________________
llvm-commits mailing list
llvm-commits at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits








More information about the llvm-commits mailing list