[Doc] Document "Splat" in the lexicon
authorSanjay Patel <spatel@rotateright.com>
Fri, 12 May 2017 21:30:31 +0000 (21:30 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 12 May 2017 21:30:31 +0000 (21:30 +0000)
Patch by Wei-Ren Chen (陳韋任)!

Differential Revision: https://reviews.llvm.org/D32964

llvm-svn: 302950

llvm/docs/Lexicon.rst

index 35687e2..ebc3fb7 100644 (file)
@@ -249,6 +249,14 @@ S
     Superword-Level Parallelism, same as :ref:`Basic-Block Vectorization
     <lexicon-bb-vectorization>`.
 
+**Splat**
+    Splat refers to a vector of identical scalar elements.
+
+    The term is based on the PowerPC Altivec instructions that provided
+    this functionality in hardware. For example, "vsplth" and the corresponding
+    software intrinsic "vec_splat()". Examples of other hardware names for this
+    action include "duplicate" (ARM) and "broadcast" (x86).
+
 **SRoA**
     Scalar Replacement of Aggregates