SuccessChanges

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

Summary

  1. GlobPattern.h - remove unnecessary StringRef.h include. NFC (details)
  2. [AMDGPU] Add more VMEM to SALU WAR hazard tests. NFC (details)
  3. [MLIR, OpenMP] Support for flush operation, and translating the same to LLVM IR (details)
  4. [clangd] Complete filenames after < / ". (details)
  5. [clangd] Add CSV export for trace metrics (details)
  6. [MLIR] Add helper functions for common integer types (details)
  7. [clangd] Squash GCC error with StringRef + gtest MatchesRegex() (details)
  8. Unrank mcuMemHostRegister tensor argument. (details)
  9. [analyzer][MallocChecker] When modeling realloc-like functions, don't early return if the argument is symbolic (details)
Commit 69c8f8548d7686901a66f177f0246b063502562f by llvm-dev
GlobPattern.h - remove unnecessary StringRef.h include. NFC

Use forward declaration instead.

Remove unnecessary BitVector forward declaration while we're here - we need to include BitVector.h.
The file was modifiedllvm/include/llvm/Support/GlobPattern.h
Commit eeece6dbe686fb91572098b87542de5c2d5887bf by carl.ritson
[AMDGPU] Add more VMEM to SALU WAR hazard tests. NFC
The file was modifiedllvm/test/CodeGen/AMDGPU/vmem-to-salu-hazard.mir
Commit fa8fc9ffcc9b5f97360e99481ef2fc6df24fe01e by kirankumar.tp
[MLIR, OpenMP] Support for flush operation, and translating the same to LLVM IR

Summary:
This patch adds support for flush operation in OpenMP dialect and translation of this construct to LLVM IR.
The OpenMP IRBuilder is used for this translation.
The patch includes code changes and testcase modifications.

Reviewed By: ftynse, kiranchandramohan

Differential Revision: https://reviews.llvm.org/D79937
The file was modifiedmlir/test/Dialect/OpenMP/ops.mlir
The file was modifiedmlir/test/Target/openmp-llvm.mlir
The file was modifiedmlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
The file was modifiedmlir/lib/Target/LLVMIR/ModuleTranslation.cpp
Commit 032727f4f839a28ae449d2f38814857780c7453d by sam.mccall
[clangd] Complete filenames after < / ".

Summary:
Extract prefix filters to CodeComplete so it can be easily tested.

Fixes https://github.com/clangd/clangd/issues/366

Reviewers: adamcz

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D79456
The file was modifiedclang-tools-extra/clangd/CodeComplete.h
The file was modifiedclang-tools-extra/clangd/CodeComplete.cpp
The file was modifiedclang-tools-extra/clangd/test/initialize-params.test
The file was modifiedclang-tools-extra/clangd/ClangdLSPServer.cpp
The file was modifiedclang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
Commit 9b88a190b42a03753b9c49ccea34514cb40ba4ab by sam.mccall
[clangd] Add CSV export for trace metrics

Summary: Example: https://docs.google.com/spreadsheets/d/1VZKGetSUTTDe9p4ooIETmdcwUod1_aE3vgD0E9x7HhI/edit

Reviewers: kadircet

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, jfb, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D79678
The file was modifiedclang-tools-extra/clangd/tool/ClangdMain.cpp
The file was addedclang-tools-extra/clangd/test/metrics.test
The file was modifiedclang-tools-extra/clangd/support/Trace.h
The file was modifiedclang-tools-extra/clangd/support/Trace.cpp
The file was modifiedclang-tools-extra/clangd/unittests/support/TraceTests.cpp
Commit 5afd86b0de729b78f1aa1b2fb4faf755e1de90de by frgossen
[MLIR] Add helper functions for common integer types

Add helper functions for 32-bit and 64-bit integer types.

Differential Revision: https://reviews.llvm.org/D80111
The file was modifiedmlir/include/mlir/IR/Builders.h
The file was modifiedmlir/lib/IR/Builders.cpp
Commit 61559d045868e3980deca6cf5d30ad8816951960 by sam.mccall
[clangd] Squash GCC error with StringRef + gtest MatchesRegex()
The file was modifiedclang-tools-extra/clangd/unittests/support/TraceTests.cpp
Commit 62adfed30a125b0057d28b570b353bce4d23df83 by csigg
Unrank mcuMemHostRegister tensor argument.

Reviewers: herhut

Reviewed By: herhut

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

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D80118
The file was modifiedmlir/test/mlir-cuda-runner/all-reduce-or.mlir
The file was modifiedmlir/test/mlir-cuda-runner/multiple-all-reduce.mlir
The file was modifiedmlir/test/mlir-cuda-runner/two-modules.mlir
The file was modifiedmlir/test/mlir-cuda-runner/all-reduce-max.mlir
The file was modifiedmlir/test/mlir-cuda-runner/all-reduce-xor.mlir
The file was modifiedmlir/test/mlir-cuda-runner/shuffle.mlir
The file was modifiedmlir/test/mlir-cuda-runner/gpu-to-cubin.mlir
The file was modifiedmlir/test/mlir-cuda-runner/all-reduce-region.mlir
The file was modifiedmlir/test/mlir-cuda-runner/all-reduce-and.mlir
The file was modifiedmlir/test/mlir-cuda-runner/all-reduce-min.mlir
The file was modifiedmlir/test/mlir-cuda-runner/all-reduce-op.mlir
The file was modifiedmlir/tools/mlir-cuda-runner/cuda-runtime-wrappers.cpp
Commit 2e5e42d4aeab98636346db558e89ab9b122c9dc3 by dkszelethus
[analyzer][MallocChecker] When modeling realloc-like functions, don't early return if the argument is symbolic

The very essence of MallocChecker lies in 2 overload sets: the FreeMemAux
functions and the MallocMemAux functions. The former houses most of the error
checking as well (aside from leaks), such as incorrect deallocation. There, we
check whether the argument's MemSpaceRegion is the heap or unknown, and if it
isn't, we know we encountered a bug (aside from a corner case patched by
@balazske in D76830), as specified by MEM34-C.

In ReallocMemAux, which really is the combination of  FreeMemAux and
MallocMemAux, we incorrectly early returned if the memory argument of realloc is
non-symbolic. The problem is, one of the cases where this happens when we know
precisely what the region is, like an array, as demonstrated in the test file.
So, lets get rid of this false negative :^)

Side note, I dislike the warning message and the associated checker name, but
I'll address it in a later patch.

Differential Revision: https://reviews.llvm.org/D79415
The file was modifiedclang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
The file was modifiedclang/test/Analysis/malloc.c