summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-09-08 16:45:59 +0000
committerDan Gohman <gohman@apple.com>2008-09-08 16:45:59 +0000
commit500233aef94a5ea910efcd171ddf54e59b939ace (patch)
tree33e8ab3b4ceb564a61534e4af746613311fb7289 /docs
parentf91570c264344532e456feec232155e969caf82f (diff)
downloadllvm-500233aef94a5ea910efcd171ddf54e59b939ace.tar.gz
llvm-500233aef94a5ea910efcd171ddf54e59b939ace.tar.bz2
llvm-500233aef94a5ea910efcd171ddf54e59b939ace.tar.xz
Bitcasting two or from aggregate types is not permitted. Update
LangRef.html, and teach the verifier to check bitcast instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55921 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/LangRef.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html
index 8994a3559f..1beb670765 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -1729,7 +1729,8 @@ following is the syntax for constant expressions:</p>
was stored to memory and read back as TYPE. In other words, no bits change
with this operator, just the type. This can be used for conversion of
vector types to any other type, as long as they have the same bit width. For
- pointers it is only valid to cast to another pointer type.
+ pointers it is only valid to cast to another pointer type. It is not valid
+ to bitcast to or from an aggregate type.
</dd>
<dt><b><tt>getelementptr ( CSTPTR, IDX0, IDX1, ... )</tt></b></dt>
@@ -3808,8 +3809,9 @@ nothing is done (<i>no-op cast</i>).</p>
<h5>Arguments:</h5>
<p>The '<tt>bitcast</tt>' instruction takes a value to cast, which must be
-a first class value, and a type to cast it to, which must also be a <a
- href="#t_firstclass">first class</a> type. The bit sizes of <tt>value</tt>
+a non-aggregate first class value, and a type to cast it to, which must also be
+a non-aggregate <a href="#t_firstclass">first class</a> type. The bit sizes of
+<tt>value</tt>
and the destination type, <tt>ty2</tt>, must be identical. If the source
type is a pointer, the destination type must also be a pointer. This
instruction supports bitwise conversion of vectors to integers and to vectors