Changes from Git (git http://labmaster3.local/git/llvm-project.git)


  1. [Clang][Driver] Re-use the calling process instead of creating a new (details)
  2. [mlir][Linalg] Update ReshapeOp::build to be more idiomatic (details)
Commit b4a99a061f517e60985667e39519f60186cbb469 by alexandre.ganea
[Clang][Driver] Re-use the calling process instead of creating a new
process for the cc1 invocation
With this patch, the clang tool will now call the -cc1 invocation
directly inside the same process. Previously, the -cc1 invocation was
creating, and waiting for, a new process. This patch therefore reduces
the number of created processes during a build, thus it reduces build
times on platforms where process creation can be costly (Windows) and/or
impacted by a antivirus. It also makes debugging a bit easier, as
there's no need to attach to the secondary -cc1 process anymore,
breakpoints will be hit inside the same process.
Crashes or signaling inside the -cc1 invocation will have the same
side-effect as before, and will be reported through the same means.
This behavior can be controlled at compile-time through the
CLANG_SPAWN_CC1 cmake flag, which defaults to OFF. Setting it to ON will
revert to the previous behavior, where any -cc1 invocation will
create/fork a secondary process. At run-time, it is also possible to
tweak the CLANG_SPAWN_CC1 environment variable. Setting it and will
override the compile-time setting. A value of 0 calls -cc1 inside the
calling process; a value of 1 will create a secondary process, as
Differential Revision:
The file was modifiedclang/test/Driver/clang_f_opts.c
The file was modifiedclang/test/Driver/warning-options_pedantic.cpp
The file was modifiedclang/include/clang/Config/config.h.cmake
The file was modifiedclang/lib/Driver/Job.cpp
The file was modifiedclang/test/CMakeLists.txt
The file was modifiedclang/test/Driver/unknown-arg.c
The file was modifiedclang/CMakeLists.txt
The file was modifiedclang/tools/driver/driver.cpp
The file was modifiedclang/include/clang/Driver/Job.h
The file was modifiedclang/test/Driver/fsanitize-blacklist.c
The file was addedclang/test/Driver/cc1-spawnprocess.c
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was modifiedclang/include/clang/Driver/Driver.h
Commit e653d306ce90e5612796d8adce9eb34b1c10e85a by ntv
[mlir][Linalg] Update ReshapeOp::build to be more idiomatic
Summary: This diff makes it easier to create a `linalg.reshape` op and
adds an EDSC builder api test to exercise the new builders.
Reviewers: ftynse, jpienaar
Subscribers: mehdi_amini, rriddle, burmako, shauheen, antiagainst,
arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, llvm-commits
Tags: #llvm
Differential Revision:
The file was modifiedmlir/include/mlir/Dialect/Linalg/IR/
The file was modifiedmlir/test/EDSC/builder-api-test.cpp
The file was modifiedmlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
The file was modifiedmlir/include/mlir/Dialect/Linalg/EDSC/Intrinsics.h