summaryrefslogtreecommitdiffstats
path: root/llvm/docs/LangRef.html
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-07 09:35:34 +0000
committerChris Lattner <sabre@nondot.org>2009-11-07 09:35:34 +0000
commita381effe724b60a048846b7104a35f2d8c6e6dd5 (patch)
tree1fefcd66752693b6de686c261b1c965902299797 /llvm/docs/LangRef.html
parent91f9582fe1a41ae814df1668687698d8de21c07c (diff)
downloadbcm5719-llvm-a381effe724b60a048846b7104a35f2d8c6e6dd5.tar.gz
bcm5719-llvm-a381effe724b60a048846b7104a35f2d8c6e6dd5.zip
add the ability for TargetData to return information about legal integer
datatypes on a given CPU. This is intended to allow instcombine and other transformations to avoid converting big sequences of operations to an inconvenient width, and will help clean up after SRoA. See also "Adding legal integer sizes to TargetData" on Feb 1, 2009 on llvmdev, and PR3451. Comments welcome. llvm-svn: 86370
Diffstat (limited to 'llvm/docs/LangRef.html')
-rw-r--r--llvm/docs/LangRef.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html
index 7032a198141..eea1f030609 100644
--- a/llvm/docs/LangRef.html
+++ b/llvm/docs/LangRef.html
@@ -1215,6 +1215,13 @@ target datalayout = "<i>layout specification</i>"
<dt><tt>s<i>size</i>:<i>abi</i>:<i>pref</i></tt></dt>
<dd>This specifies the alignment for a stack object of a given bit
<i>size</i>.</dd>
+
+ <dt><tt>n<i>size1</i>:<i>size2</i>:<i>size3</i>...</tt></dt>
+ <dd>This specifies a set of native integer widths for the target CPU
+ in bits. For example, it might contain "n32" for 32-bit PowerPC,
+ "n32:64" for PowerPC 64, or "n8:16:32:64" for X86-64. Elements of
+ this set are considered to support most general arithmetic
+ operations efficiently.</dd>
</dl>
<p>When constructing the data layout for a given target, LLVM starts with a
OpenPOWER on IntegriCloud