[PATCH] D65833: [Tooling] Expose ExecutorConcurrency option.
This revision was automatically updated to reflect the committed changes. Closed by commit rL368196: [Tooling] Expose ExecutorConcurrency option. (authored by DiegoAstiazaran, committed by ). Herald added a project: LLVM. Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D65833?vs=213745=213959#toc Repository: rL LLVM CHANGES SINCE LAST ACTION https://reviews.llvm.org/D65833/new/ https://reviews.llvm.org/D65833 Files: cfe/trunk/include/clang/Tooling/AllTUsExecution.h cfe/trunk/lib/Tooling/AllTUsExecution.cpp Index: cfe/trunk/include/clang/Tooling/AllTUsExecution.h === --- cfe/trunk/include/clang/Tooling/AllTUsExecution.h +++ cfe/trunk/include/clang/Tooling/AllTUsExecution.h @@ -71,6 +71,7 @@ unsigned ThreadCount; }; +extern llvm::cl::opt ExecutorConcurrency; extern llvm::cl::opt Filter; } // end namespace tooling Index: cfe/trunk/lib/Tooling/AllTUsExecution.cpp === --- cfe/trunk/lib/Tooling/AllTUsExecution.cpp +++ cfe/trunk/lib/Tooling/AllTUsExecution.cpp @@ -147,7 +147,7 @@ return llvm::Error::success(); } -static llvm::cl::opt ExecutorConcurrency( +llvm::cl::opt ExecutorConcurrency( "execute-concurrency", llvm::cl::desc("The number of threads used to process all files in " "parallel. Set to 0 for hardware concurrency. " Index: cfe/trunk/include/clang/Tooling/AllTUsExecution.h === --- cfe/trunk/include/clang/Tooling/AllTUsExecution.h +++ cfe/trunk/include/clang/Tooling/AllTUsExecution.h @@ -71,6 +71,7 @@ unsigned ThreadCount; }; +extern llvm::cl::opt ExecutorConcurrency; extern llvm::cl::opt Filter; } // end namespace tooling Index: cfe/trunk/lib/Tooling/AllTUsExecution.cpp === --- cfe/trunk/lib/Tooling/AllTUsExecution.cpp +++ cfe/trunk/lib/Tooling/AllTUsExecution.cpp @@ -147,7 +147,7 @@ return llvm::Error::success(); } -static llvm::cl::opt ExecutorConcurrency( +llvm::cl::opt ExecutorConcurrency( "execute-concurrency", llvm::cl::desc("The number of threads used to process all files in " "parallel. Set to 0 for hardware concurrency. " ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D65833: [Tooling] Expose ExecutorConcurrency option.
sammccall accepted this revision. sammccall added a comment. This revision is now accepted and ready to land. Only hesitation is that AllTUsExecution is one executor of (potentially) many, so this is a weird place for a common flag. However it's already "global" in the sense that --help will show it, so we may as well reuse it. Maybe it should be moved to another file at some point. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D65833/new/ https://reviews.llvm.org/D65833 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D65833: [Tooling] Expose ExecutorConcurrency option.
DiegoAstiazaran created this revision. DiegoAstiazaran added a reviewer: juliehockett. https://reviews.llvm.org/D65833 Files: clang/include/clang/Tooling/AllTUsExecution.h clang/lib/Tooling/AllTUsExecution.cpp Index: clang/lib/Tooling/AllTUsExecution.cpp === --- clang/lib/Tooling/AllTUsExecution.cpp +++ clang/lib/Tooling/AllTUsExecution.cpp @@ -147,7 +147,7 @@ return llvm::Error::success(); } -static llvm::cl::opt ExecutorConcurrency( +llvm::cl::opt ExecutorConcurrency( "execute-concurrency", llvm::cl::desc("The number of threads used to process all files in " "parallel. Set to 0 for hardware concurrency. " Index: clang/include/clang/Tooling/AllTUsExecution.h === --- clang/include/clang/Tooling/AllTUsExecution.h +++ clang/include/clang/Tooling/AllTUsExecution.h @@ -71,6 +71,7 @@ unsigned ThreadCount; }; +extern llvm::cl::opt ExecutorConcurrency; extern llvm::cl::opt Filter; } // end namespace tooling Index: clang/lib/Tooling/AllTUsExecution.cpp === --- clang/lib/Tooling/AllTUsExecution.cpp +++ clang/lib/Tooling/AllTUsExecution.cpp @@ -147,7 +147,7 @@ return llvm::Error::success(); } -static llvm::cl::opt ExecutorConcurrency( +llvm::cl::opt ExecutorConcurrency( "execute-concurrency", llvm::cl::desc("The number of threads used to process all files in " "parallel. Set to 0 for hardware concurrency. " Index: clang/include/clang/Tooling/AllTUsExecution.h === --- clang/include/clang/Tooling/AllTUsExecution.h +++ clang/include/clang/Tooling/AllTUsExecution.h @@ -71,6 +71,7 @@ unsigned ThreadCount; }; +extern llvm::cl::opt ExecutorConcurrency; extern llvm::cl::opt Filter; } // end namespace tooling ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits