[llvm-commits] [llvm] r170791 - /llvm/trunk/docs/Vectorizers.rst
Sean Silva
silvas at purdue.edu
Thu Dec 20 14:47:41 PST 2012
Author: silvas
Date: Thu Dec 20 16:47:41 2012
New Revision: 170791
URL: http://llvm.org/viewvc/llvm-project?rev=170791&view=rev
Log:
docs: Indent consistently in code examples.
Modified:
llvm/trunk/docs/Vectorizers.rst
Modified: llvm/trunk/docs/Vectorizers.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/Vectorizers.rst?rev=170791&r1=170790&r2=170791&view=diff
==============================================================================
--- llvm/trunk/docs/Vectorizers.rst (original)
+++ llvm/trunk/docs/Vectorizers.rst Thu Dec 20 16:47:41 2012
@@ -54,8 +54,8 @@
.. code-block:: c++
void bar(float *A, float* B, float K, int start, int end) {
- for (int i = start; i < end; ++i)
- A[i] *= B[i] + K;
+ for (int i = start; i < end; ++i)
+ A[i] *= B[i] + K;
}
Runtime Checks of Pointers
@@ -75,8 +75,8 @@
.. code-block:: c++
void bar(float *A, float* B, float K, int n) {
- for (int i = 0; i < n; ++i)
- A[i] *= B[i] + K;
+ for (int i = 0; i < n; ++i)
+ A[i] *= B[i] + K;
}
@@ -108,8 +108,8 @@
.. code-block:: c++
void bar(float *A, float* B, float K, int n) {
- for (int i = 0; i < n; ++i)
- A[i] = i;
+ for (int i = 0; i < n; ++i)
+ A[i] = i;
}
If Conversion
@@ -165,8 +165,8 @@
.. code-block:: c++
int foo(int *A, int *B, int n, int k) {
- for (int i = 0; i < n; ++i)
- A[i*7] += B[i*k];
+ for (int i = 0; i < n; ++i)
+ A[i*7] += B[i*k];
}
Vectorization of Mixed Types
@@ -179,8 +179,8 @@
.. code-block:: c++
int foo(int *A, char *B, int n, int k) {
- for (int i = 0; i < n; ++i)
- A[i] += 4 * B[i];
+ for (int i = 0; i < n; ++i)
+ A[i] += 4 * B[i];
}
Vectorization of function calls
More information about the llvm-commits
mailing list