[PATCH] clang-modernize: Introduce process-based parallelism
Edwin Vane
revane at gmail.com
Wed Oct 16 08:19:06 PDT 2013
Hi Sarcasm, klimek, tareqsiraj, arielbernal,
NOTE: This patch is in progress and is provided only to provide context for
D1877.
This patch introduces a new argument '-j' for transforming sources in
parallel. It defaults to 1. If there are >1 transforms to apply or >1
sources to transform clang-modernize will spawn sub-processes to
transform them.
FIXME: -perf and -summary don't work with this mode of operation as the
sub-processes don't communicate information back to the driver process
yet.
Added tests.
http://llvm-reviews.chandlerc.com/D1950
Files:
clang-modernize/AddOverride/AddOverride.cpp
clang-modernize/AddOverride/AddOverride.h
clang-modernize/Core/CMakeLists.txt
clang-modernize/Core/IncludeExcludeInfo.cpp
clang-modernize/Core/JobDispatcher.cpp
clang-modernize/Core/JobDispatcher.h
clang-modernize/Core/ReplacementHandling.h
clang-modernize/Core/Transforms.h
clang-modernize/LoopConvert/LoopConvert.cpp
clang-modernize/LoopConvert/LoopConvert.h
clang-modernize/PassByValue/PassByValue.cpp
clang-modernize/PassByValue/PassByValue.h
clang-modernize/ReplaceAutoPtr/ReplaceAutoPtr.cpp
clang-modernize/ReplaceAutoPtr/ReplaceAutoPtr.h
clang-modernize/UseAuto/UseAuto.cpp
clang-modernize/UseAuto/UseAuto.h
clang-modernize/UseNullptr/UseNullptr.cpp
clang-modernize/UseNullptr/UseNullptr.h
clang-modernize/tool/CMakeLists.txt
clang-modernize/tool/ClangModernize.cpp
test/clang-modernize/Driver/Inputs/case1/compile_commands.json
test/clang-modernize/Driver/Inputs/case1/file1.cpp
test/clang-modernize/Driver/Inputs/case1/file2.cpp
test/clang-modernize/Driver/Inputs/case2/compile_commands.json
test/clang-modernize/Driver/Inputs/case2/file1.cpp
test/clang-modernize/Driver/Inputs/case2/file2.cpp
test/clang-modernize/Driver/Inputs/case3/compile_commands.json
test/clang-modernize/Driver/Inputs/case3/file1.cpp
test/clang-modernize/Driver/Inputs/case3/file2.cpp
test/clang-modernize/Driver/case1.cpp
test/clang-modernize/Driver/case2.cpp
test/clang-modernize/Driver/case3.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1950.1.patch
Type: text/x-patch
Size: 44084 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131016/d6d6d5a6/attachment.bin>
More information about the cfe-commits
mailing list