[PATCH] D83851: [Docs] remove unused arguments in documentation examples on vectorization passes
Afanasyev Ivan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 14 22:58:24 PDT 2020
ivafanas created this revision.
ivafanas added reviewers: nadav, tyler.nowicki.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Unused function arguments in documentation examples seems like a copy-paste issues.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D83851
Files:
llvm/docs/Vectorizers.rst
Index: llvm/docs/Vectorizers.rst
===================================================================
--- llvm/docs/Vectorizers.rst
+++ llvm/docs/Vectorizers.rst
@@ -193,7 +193,7 @@
.. code-block:: c++
- int foo(int *A, int *B, int n) {
+ int foo(int *A, int n) {
unsigned sum = 0;
for (int i = 0; i < n; ++i)
sum += A[i] + 5;
@@ -210,7 +210,7 @@
.. code-block:: c++
- void bar(float *A, float* B, float K, int n) {
+ void bar(float *A, int n) {
for (int i = 0; i < n; ++i)
A[i] = i;
}
@@ -254,7 +254,7 @@
.. code-block:: c++
- int foo(int *A, int *B, int n) {
+ int foo(int *A, int n) {
for (int i = n; i > 0; --i)
A[i] +=1;
}
@@ -284,7 +284,7 @@
.. code-block:: c++
- int foo(int *A, char *B, int n, int k) {
+ int foo(int *A, char *B, int n) {
for (int i = 0; i < n; ++i)
A[i] += 4 * B[i];
}
@@ -360,7 +360,7 @@
.. code-block:: c++
- int foo(int *A, int *B, int n) {
+ int foo(int *A, int n) {
unsigned sum = 0;
for (int i = 0; i < n; ++i)
sum += A[i];
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83851.278074.patch
Type: text/x-patch
Size: 1071 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200715/1df5af4a/attachment.bin>
More information about the llvm-commits
mailing list