SuccessChanges

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

Summary

  1. [clang-format] Set of unit test to begin to validate that we don't change defaults (details)
  2. Give microsoftDemangle() an outparam for how many input bytes were consumed. (details)
  3. [clang-format] Added new option IndentExternBlock (details)
  4. [lit] GoogleTest framework should report failures if test binary crashes (details)
  5. [mlir] NFC - Appease GCC 5 again.. (details)
  6. [lldb/Test] Support arbitrary file extensions in TestPositionalArgs.test (details)
  7. [mlir][gpu] Refactor ConvertGpuLaunchFuncToCudaCalls pass. (details)
  8. [mlir][gpu] Refactor functions for workgroup and private buffer attributions. (details)
  9. [mlir] NFC - Appease GCC 5 again.. (details)
Commit 166ebefd27ac71e3f911f3d7ba0e168464d372af by mydeveloperday
[clang-format] Set of unit test to begin to validate that we don't change defaults

Summary:
This revision is to complement {D75791} so we can be sure that we don't change any default behavior.

For now just add rules to cover AfterExternBlock, but in the future we should add cases to cover the other BraceWrapping rules for each style. This will help guard us when we change code inside of the various getXXXStyle() functions to ensure we are not breaking everyone.

Reviewed By: MarcusJohnson91

Subscribers: cfe-commits

Tags: #clang, #clang-format

Differential Revision: https:
The file was modifiedclang/unittests/Format/FormatTest.cpp
Commit bc1c3655bfd67a0b4ccece465729c39d769e9707 by thakis
Give microsoftDemangle() an outparam for how many input bytes were consumed.

Demangling Itanium symbols either consumes the whole input or fails,
but Microsoft symbols can be successfully demangled with just some
of the input.

Add an outparam that enables clients to know how much of the input was
consumed, and use this flag to give llvm-undname an opt-in warning
on partially consumed symbols.

Differential Revision: https://reviews.llvm.org/D80173
The file was modifiedllvm/tools/llvm-objdump/COFFDump.cpp
The file was addedllvm/test/Demangle/warn-trailing.test
The file was modifiedllvm/lib/Demangle/Demangle.cpp
The file was modifiedlldb/source/Core/Mangled.cpp
The file was modifiedllvm/include/llvm/Demangle/Demangle.h
The file was modifiedllvm/lib/DebugInfo/Symbolize/Symbolize.cpp
The file was modifiedllvm/tools/llvm-microsoft-demangle-fuzzer/llvm-microsoft-demangle-fuzzer.cpp
The file was modifiedllvm/tools/llvm-undname/llvm-undname.cpp
The file was modifiedllvm/lib/Demangle/MicrosoftDemangle.cpp
Commit 6ef45b0426a8c7b9764e102fb1a49561a3a2c118 by mydeveloperday
[clang-format] Added new option IndentExternBlock

Reviewers: MyDeveloperDay, krasimir, klimek, mitchell-stellar, Abpostelnicu

Patch By: MarcusJohnson91

Reviewed By: MyDeveloperDay, Abpostelnicu

Subscribers: sylvestre.ledru, Abpostelnicu, cfe-commits

Tags: #clang, #clang-format, #clang-tools-extra

Differential Revision: https://reviews.llvm.org/D75791
The file was modifiedclang/lib/Format/UnwrappedLineParser.cpp
The file was modifiedclang/lib/Format/Format.cpp
The file was modifiedclang/docs/ClangFormatStyleOptions.rst
The file was modifiedclang/unittests/Format/FormatTest.cpp
The file was modifiedclang/docs/ReleaseNotes.rst
The file was modifiedclang/include/clang/Format/Format.h
Commit ef2103182244c96f5206b02164b62b9c9e0cbce8 by stephen.neuendorffer
[lit] GoogleTest framework should report failures if test binary crashes

lit runs a gtest executable multiple times. First it runs it to
discover tests, then later it runs the executable again for each test.
However, if the discovery fails (perhaps because of a broken
executable), then no tests were previously run and no failures were
reported.  This patch creates a dummy test if discovery fails, which
will later fail when test are run and be reported as a failure.

Differential Revision: https://reviews.llvm.org/D80096
The file was addedllvm/utils/lit/tests/googletest-discovery-failed.py
The file was addedllvm/utils/lit/tests/Inputs/googletest-discovery-failed/subdir/OneTest.py
The file was modifiedllvm/utils/lit/lit/formats/googletest.py
The file was addedllvm/utils/lit/tests/Inputs/googletest-discovery-failed/lit.cfg
Commit ebf14d9b6d8bd33a1f684e9c74bf7eebc00b6ff1 by ntv
[mlir] NFC - Appease GCC 5 again..
The file was modifiedmlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
Commit 8723f841aad8815c6d4ab199ad591f6eafdaad83 by Jonas Devlieghere
[lldb/Test] Support arbitrary file extensions in TestPositionalArgs.test

On Windows the line must match:

  Use 'lldb.exe --help' for a complete list of options.
The file was modifiedlldb/test/Shell/Driver/TestPositionalArgs.test
Commit cdb6f05e2d5f0132956020e6b4990af0206c066f by whchung
[mlir][gpu] Refactor ConvertGpuLaunchFuncToCudaCalls pass.

Due to similar APIs between CUDA and ROCm (HIP),
ConvertGpuLaunchFuncToCudaCalls pass could be used on both platforms with some
refactoring.

In this commit:

- Migrate ConvertLaunchFuncToCudaCalls from GPUToCUDA to GPUCommon, and rename.
- Rename runtime wrapper APIs be platform-neutral.
- Let GPU binary annotation attribute be specifiable as a PassOption.
- Naming changes within the implementation and tests.

Subsequent patches would introduce ROCm-specific tests and runtime wrapper
APIs.

Differential Revision: https://reviews.llvm.org/D80167
The file was removedmlir/lib/Conversion/GPUToCUDA/ConvertLaunchFuncToCudaCalls.cpp
The file was removedmlir/test/Conversion/GPUToCUDA/lower-launch-func-to-cuda.mlir
The file was modifiedmlir/lib/Conversion/GPUToCUDA/CMakeLists.txt
The file was addedmlir/lib/Conversion/GPUCommon/ConvertLaunchFuncToRuntimeCalls.cpp
The file was modifiedmlir/include/mlir/InitAllPasses.h
The file was addedmlir/test/Conversion/GPUCommon/lower-launch-func-to-gpu-runtime-calls.mlir
The file was modifiedmlir/tools/mlir-cuda-runner/cuda-runtime-wrappers.cpp
The file was modifiedmlir/include/mlir/Conversion/Passes.td
The file was addedmlir/lib/Conversion/GPUCommon/CMakeLists.txt
The file was modifiedmlir/lib/Conversion/CMakeLists.txt
The file was modifiedmlir/tools/mlir-cuda-runner/mlir-cuda-runner.cpp
The file was addedmlir/include/mlir/Conversion/GPUCommon/GPUCommonPass.h
The file was modifiedmlir/include/mlir/Conversion/GPUToCUDA/GPUToCUDAPass.h
Commit ad398164bac0e4a63588005e7061537518557eab by whchung
[mlir][gpu] Refactor functions for workgroup and private buffer attributions.

Summary:

Consolidate interfaces adding workgroup and private buffer attributions in GPU
dialect.

Note all private buffer attributions must follow workgroup buffer attributions.

Reviewers: herhut

Subscribers: mehdi_amini, rriddle, jpienaar, shauheen, antiagainst, nicolasvasilache, csigg, arpith-jacob, mgester, lucyrfox, liufengdb, stephenneuendorffer, Joonsoo, grosul1, frgossen, Kayjukh, llvm-commits

Tags: #llvm, #mlir

Differential Revision: https://reviews.llvm.org/D79508
The file was modifiedmlir/lib/Dialect/GPU/IR/GPUDialect.cpp
The file was modifiedmlir/lib/Dialect/GPU/Transforms/MemoryPromotion.cpp
The file was modifiedmlir/include/mlir/Dialect/GPU/GPUOps.td
The file was modifiedmlir/lib/Dialect/GPU/Transforms/AllReduceLowering.cpp
Commit 3393cc4cebf9969db94dc424b7a2b6195589c33b by ntv
[mlir] NFC - Appease GCC 5 again..
The file was modifiedmlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp