[PATCH] D16464: Clarify the difference between ISD::BITCAST and the bitcast instruction from LLVM-IR.

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Tue May 10 02:08:00 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL269031: Clarify the difference between ISD::BITCAST and the bitcast instruction from… (authored by dsanders).

Changed prior to commit:
  http://reviews.llvm.org/D16464?vs=45682&id=56679#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D16464

Files:
  llvm/trunk/include/llvm/CodeGen/ISDOpcodes.h

Index: llvm/trunk/include/llvm/CodeGen/ISDOpcodes.h
===================================================================
--- llvm/trunk/include/llvm/CodeGen/ISDOpcodes.h
+++ llvm/trunk/include/llvm/CodeGen/ISDOpcodes.h
@@ -486,6 +486,12 @@
     /// the same bit size (e.g.  f32 <-> i32).  This can also be used for
     /// int-to-int or fp-to-fp conversions, but that is a noop, deleted by
     /// getNode().
+    ///
+    /// This operator is subtly different from the bitcast instruction from
+    /// LLVM-IR since this node may change the bits in the register. For
+    /// example, this occurs on big-endian NEON and big-endian MSA where the
+    /// layout of the bits in the register depends on the vector type and this
+    /// operator acts as a shuffle operation for some vector type combinations.
     BITCAST,
 
     /// ADDRSPACECAST - This operator converts between pointers of different


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16464.56679.patch
Type: text/x-patch
Size: 903 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160510/79f2c4a6/attachment.bin>


More information about the llvm-commits mailing list