[libcxx-commits] [PATCH] D58272: Add .gitignore

Thomas Rodgers via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Feb 15 00:02:12 PST 2019


rodgert updated this revision to Diff 186970.
rodgert added a comment.

- Remove unused include


Repository:
  rPSTL pstl

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58272/new/

https://reviews.llvm.org/D58272

Files:
  .gitignore
  include/pstl/internal/algorithm_impl.h
  include/pstl/internal/numeric_impl.h


Index: include/pstl/internal/numeric_impl.h
===================================================================
--- include/pstl/internal/numeric_impl.h
+++ include/pstl/internal/numeric_impl.h
@@ -14,7 +14,6 @@
 #include <type_traits>
 #include <numeric>
 
-#include "pstl_config.h"
 #include "execution_impl.h"
 #include "unseq_backend_simd.h"
 
Index: include/pstl/internal/algorithm_impl.h
===================================================================
--- include/pstl/internal/algorithm_impl.h
+++ include/pstl/internal/algorithm_impl.h
@@ -2428,6 +2428,7 @@
     return internal::brick_fill_n(__first, __count, __value, __is_vector);
 }
 
+#if __PSTL_USE_PAR_POLICIES
 template <class _ExecutionPolicy, class _OutputIterator, class _Size, class _Tp, class _IsVector>
 _OutputIterator
 pattern_fill_n(_ExecutionPolicy&& __exec, _OutputIterator __first, _Size __count, const _Tp& __value,
@@ -2436,6 +2437,7 @@
     return internal::pattern_fill(std::forward<_ExecutionPolicy>(__exec), __first, __first + __count, __value,
                                   std::true_type(), __is_vector);
 }
+#endif
 
 //------------------------------------------------------------------------
 // generate, generate_n
@@ -2502,6 +2504,7 @@
     return internal::brick_generate_n(__first, __count, __g, __is_vector);
 }
 
+#if __PSTL_USE_PAR_POLICIES
 template <class _ExecutionPolicy, class _OutputIterator, class _Size, class _Generator, class _IsVector>
 _OutputIterator
 pattern_generate_n(_ExecutionPolicy&& __exec, _OutputIterator __first, _Size __count, _Generator __g,
@@ -2512,6 +2515,7 @@
     return internal::pattern_generate(std::forward<_ExecutionPolicy>(__exec), __first, __first + __count, __g,
                                       std::true_type(), __is_vector);
 }
+#endif
 
 //------------------------------------------------------------------------
 // remove
Index: .gitignore
===================================================================
--- /dev/null
+++ .gitignore
@@ -0,0 +1,2 @@
+build/*.exe
+build/*.o
\ No newline at end of file


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58272.186970.patch
Type: text/x-patch
Size: 2060 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190215/91b12817/attachment.bin>


More information about the libcxx-commits mailing list