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


  1. Revert "[AMDGPU] Increase alignment of LDS globals if necessary before LDS lowering." (details)
  2. [AMDGPU] [IndirectCalls] Don't propagate attributes to address taken functions and their callees (details)
  3. Add LLDB in release binaries by default (details)
  4. [Sema][RISCV][SVE] Allow ?: to select Typedef BuiltinType in C (details)
  5. [Format] Fix incorrect pointer detection (details)
  6. [Debug-Info] handle DW_CC_pass_by_value/DW_CC_pass_by_reference under strict DWARF. (details)
  7. [flang] Change capitalization for Adjustl/r (details)
  8. AArch64: support atomic zext/sextloads (details)
  9. [mlir][linalg] Cleanup left over uses of deprecated LinalgOp methods. (details)
  10. [SelectionDAG] Extend FoldConstantVectorArithmetic to SPLAT_VECTOR (details)
  11. [libcxx] Don't use an undefined '+' in unsigned/octal/hexal print formats (details)
  12. [lldb][NFC] Remove a redundant call to weak_ptr::expired (details)
  13. [test] Fix accidental match in parent_recurse_depth.s (details)
  14. Re-land ae4303b42c, "Track PHI values through register coalescing" (details)
  15. Revert "[gn build] port d1d36f7ad (llvm-tapi-diff)" (details)
  16. [InstCombine] add tests for sext-of-trunc-of-lshr; NFC (details)
  17. [InstCombine] convert lshr to ashr to eliminate cast op (details)
  18. [mlir] Catch nonconvertible types in async conversion (details)
  19. [AArch64][SVE] Add support for using reverse forms of SVE2 shifts (details)
  20. [clang][AST] Set correct DeclContext in ASTImporter lookup table for ParmVarDecl. (details)
  21. [flang] Generate type info symbols outside of derived type scopes (details)
  22. [AMDGPU][MC][NFC] Fixed typos in parser (details)
  23. [clang][deps] Add argument for customizing PCM paths (details)
  24. [AMDGPU][GlobalISel] Legalize G_ABS (details)
  25. [flang][driver] Add support for `-module-suffix` (details)
  26. [clang][deps] Support object files (details)
  27. [InstCombine] add/adjust test comments; NFC (details)
  28. [HIP] Fix spack HIP device lib detection (details)
  29. [AArch64] Further enable UnrollAndJam (details)
  30. [OpenCL][NFC] Test commit: tidy up whitespace in comment (details)
  31. [libc++] Use the using_if_exists attribute when provided (details)
  32. Revert "[InstrProfiling] If no value profiling, make data variable private and (for Windows) use one comdat" (details)
  33. [clang-format] NFC, 2% improvement in overall clang-formatted status (now 50%) (details)
  34. Temporarily remove one of the tests added in effb87dfa810a (details)
  35. [InstCombine] add tests for pow() reassociation; NFC (details)
  36. [flang][driver] Add checks for missing option arguments (details)
  37. [mlir][openacc] Conversion of data operands in to LLVM IR dialect (details)
  38. [OPENMP]Fix PR49790: Constexpr values not handled in `omp declare mapper` clause. (details)
  39. [gn build] (manually) port de07b1e84d8de9 (details)
  40. [mlir] Mark VectorToSCF patterns as recursive (details)
  41. Revert test fixups after e9a9c850989e (which reverted a14fc74). (details)
  42. Temporarily remove another test added in one of the tests added in effb87d (details)
  43. [mlir][linalg] Refactor PadTensorOpVectorizationPattern (NFC) (details)
  44. [AArch64] Remove SETCC of CSEL when the latter's condition can be inverted (details)
  45. [OPENMP]Fix PR50129: omp cancel parallel not working as expected. (details)
  46. [ConstantFolding] add copysign tests for more FP types; NFC (details)
  47. [clangd] Run code completion on each token coverd by --check-lines (details)
  48. [clang] use a different name for generated test cdb (details)
  49. [RISCV] Teach vsetvli insertion pass that operations on masks don't care about SEW/LMUL. (details)
  50. [OpenMP] fix spelling error in (details)
Commit 753437fc1db357499109bf8a14fca2dc4d88eb11 by mahesha.comp
Revert "[AMDGPU] Increase alignment of LDS globals if necessary before LDS lowering."

This reverts commit d71ff907ef23eaef86ad66ba2d711e4986cd6cb2.
The file was modifiedllvm/test/CodeGen/AMDGPU/ds_read2_offset_order.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/promote-alloca-globals.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/ds_read2.ll
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
The file was removedllvm/test/CodeGen/AMDGPU/update-lds-alignment.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/lds-alignment.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/ds_write2.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/lds-global-value.ll
Commit 6a3beb1f68d6791a4cd0190f68b48510f754a00a by Madhur.Amilkanthwar
[AMDGPU] [IndirectCalls] Don't propagate attributes to address taken functions and their callees

Don't propagate launch bound related attributes to
address taken functions and their callees. The idea
is to do a traversal over the call graph starting at
address taken functions and erase the attributes
set by previous logic i.e. process().

This two phase approach makes sure that we don't
miss out on deep nested callees from address taken
functions as a function might be called directly as
well as indirectly.

This patch is also reattempt to D94585 as latent issues
are fixed in hasAddressTaken function in the recent

Reviewed By: arsenm

Differential Revision:
The file was addedllvm/test/CodeGen/AMDGPU/propagate-attributes-common-callees.ll
The file was addedllvm/test/CodeGen/AMDGPU/propagate-attributes-direct-indirect-common-callee.ll
The file was addedllvm/test/CodeGen/AMDGPU/propagate-attributes-launch-bounds.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/opt-pipeline.ll
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUPropagateAttributes.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/propagate-attributes-function-pointer-argument.ll
The file was addedllvm/test/CodeGen/AMDGPU/propagate-attributes-indirect.ll
Commit 3d8180cb2ffc2272b56e3445c74f2f3170562403 by omair.javaid
Add LLDB in release binaries by default

LLDB is currently not selected in LLVM release testing and thus it
doesnt make its way into prebuilt binaries which build with default
configuration. This patch enables LLDB by default in test-release

Assuming LLDB build by default was disabled back in 2016 LLDB support
for various architectures has a long way since then. It has buildbots
for most architectures and supports a case to be included by default.

Also lldb build can easily be disabled in case some release managers
choose to do so.

Reviewed By: tstellar

Differential Revision:
The file was modifiedllvm/utils/release/
Commit fcf8827a98beb1f8baea883451508d9cd91f57bc by shihpo.hung
[Sema][RISCV][SVE] Allow ?: to select Typedef BuiltinType in C

This patch solves an error such as:
  incompatible operand types ('vbool4_t' (aka '__rvv_bool4_t') and '__rvv_bool4_t')
when one of the value is a TypedefType of the other value in ?:.

Reviewed By: rjmccall

Differential Revision:
The file was modifiedclang/test/Sema/riscv-types.c
The file was modifiedclang/lib/Sema/SemaExpr.cpp
The file was modifiedclang/test/Sema/sizeless-1.c
Commit 21c18d5a04316891110cecc2bf37ce51533decba by
[Format] Fix incorrect pointer detection

    void f() { f(float(1), a *a); }

    void f() { f(float(1), a * a); }

Signed-off-by: Yilong Guo <>

Reviewed By: HazardyKnusperkeks, curdeius

Differential Revision:
The file was modifiedclang/lib/Format/TokenAnnotator.cpp
The file was modifiedclang/unittests/Format/FormatTest.cpp
Commit fbfd717197671769e92b1c00b08391a7cac62fed by esme.yi
[Debug-Info] handle DW_CC_pass_by_value/DW_CC_pass_by_reference under strict DWARF.

Summary: When -strict-dwarf=true is specified, the calling convention info
    DW_CC_pass_by_value or DW_CC_pass_by_reference can only be generated at DWARF5.

Reviewed By: shchenz, dblaikie

Differential Revision:
The file was modifiedllvm/test/DebugInfo/Generic/pass-by-value.ll
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
Commit 263a89c9b788b4c6bc174dc169dca2a3b729ea02 by diana.picus
[flang] Change capitalization for Adjustl/r

Rename the definitions of the character runtime functions Adjustl and
Adjustr (used to be AdjustL and AdjustR respectively).

Also add unit tests (and move some of the helpers to the top of the
file, since they're now used in more than one place).

Differential Revision:
The file was modifiedflang/runtime/character.cpp
The file was modifiedflang/unittests/RuntimeGTest/CharacterTest.cpp
Commit b16ddd03753df778181d500d0ea3e2400c35e6fe by Tim Northover
AArch64: support atomic zext/sextloads
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/arm64-atomic.ll
The file was modifiedllvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
The file was modifiedllvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
Commit 67b1c37d9fd1283d7015edb9c0fecb24362751f4 by gysit
[mlir][linalg] Cleanup left over uses of deprecated LinalgOp methods.

Replace all remaining uses of deprecated Structured Op Interface methods. This patch is based on

Differential Revision:
The file was modifiedmlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
The file was modifiedmlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-gen.cpp
The file was modifiedmlir/include/mlir/Dialect/Linalg/IR/
The file was modifiedmlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-yaml-gen.cpp
The file was modifiedmlir/include/mlir/Dialect/Linalg/IR/
The file was modifiedmlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp
Commit aec9cbbeb863dbd3ea362f99eb8b84dfbdb568a2 by fraser
[SelectionDAG] Extend FoldConstantVectorArithmetic to SPLAT_VECTOR

This patch extends the SelectionDAG's ability to constant-fold vector
arithmetic to include support for SPLAT_VECTOR. This is not only for
scalable-vector types but also for fixed-length vector types, which
helps Hexagon in a couple of cases.

The original RISC-V test case was in fact an infinite DAGCombine loop.
The pattern `and (truncate v1), (truncate v2)` can be combined to
`truncate (and v1, v2)` but the truncate can similarly be combined back
to `truncate (and v1, v2)` (but, crucially, only when one of `v1` or
`v2` is a constant vector).

It wasn't exposed in on fixed-length types because a TRUNCATE of a
constant BUILD_VECTOR was folded into the BUILD_VECTOR itself, whereas
this did not happen for the equivalent (scalable-vector) SPLAT_VECTOR.

Reviewed By: RKSimon, craig.topper

Differential Revision:
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
The file was addedllvm/test/CodeGen/RISCV/rvv/constant-folding.ll
The file was modifiedllvm/test/CodeGen/RISCV/rvv/setcc-integer-rv32.ll
The file was modifiedllvm/test/CodeGen/AArch64/sve-expand-div.ll
The file was modifiedllvm/test/CodeGen/RISCV/rvv/vdivu-sdnode-rv64.ll
The file was modifiedllvm/test/CodeGen/Hexagon/isel-memory-vNi1.ll
The file was modifiedllvm/test/CodeGen/RISCV/rvv/vdivu-sdnode-rv32.ll
The file was modifiedllvm/test/CodeGen/RISCV/rvv/vremu-sdnode-rv32.ll
The file was modifiedllvm/test/CodeGen/RISCV/rvv/vremu-sdnode-rv64.ll
Commit b0cc7b53a53f180c0b70b8b2f02999be78a32395 by martin
[libcxx] Don't use an undefined '+' in unsigned/octal/hexal print formats

If building code like this:

    unsigned long val = 1000;
    snprintf(buf, sizeof(buf), "%+lu", val);

with clang, clang warns

    warning: flag '+' results in undefined behavior with 'u' conversion specifier [-Wformat]

Therefore, don't construct such undefined format strings. (There's
no compiler warnings here, as the compiler can't inspect dynamically
assembled format strings.)

This fixes number formatting in mingw-w64 if built with
`__USE_MINGW_ANSI_STDIO` defined (there, the '+' flag causes a
leading plus to be printed when formatting unsigned numbers too,
while the '+' flag doesn't cause any extra leading plus in other
stdio implementations).

Differential Revision:
The file was modifiedlibcxx/src/locale.cpp
Commit 0a655c62eca878cd5f366c08a4a5fee1b8723ce8 by Raphael Isemann
[lldb][NFC] Remove a redundant call to weak_ptr::expired

The `lock` call directly will check for us if the `weak_ptr` is expired and
returns an invalid `shared_ptr` (which we correctly handle), so this check is

Reviewed By: JDevlieghere

Differential Revision:
The file was modifiedlldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
Commit d7e0948242b8b05c1ebc0f46bf7aa37273a1d521 by thomasp
[test] Fix accidental match in parent_recurse_depth.s

The CHECK-NOT directives in
tools/llvm-dwarfdump/X86/parent_recurse_depth.s can accidentally match
something in the path of the object file created by yaml2obj, for

error: ONE-NOT: excluded string found in input
<stdin>:1:22: note: found here
builds/llvm-projects/mainline/release/test/tools/llvm-dwarfdump/X86/Output/parent_recurse_depth.s.tmp.o: file format elf64-x86-64

This commit alleviate this issue by consuming the file name from the
output, forcing all the CHECK-NOT to match what comes after.

Reviewed By: Higuoxing

Differential Revision:
The file was modifiedllvm/test/tools/llvm-dwarfdump/X86/parent_recurse_depth.s
Commit 4501928eb2fdec9af1908e008fa748924db0f688 by jeremy.morse
Re-land ae4303b42c, "Track PHI values through register coalescing"

Was reverted in 0507fc2ffc9, in phi-coalesce-subreg.mir I'd explicitly named
some passes to run instead of specifying a range. As a result some
two-address-instrs weren't correctly rewritten and the verifier got upset.
Original commit message:

[DebugInstrRef][2/3] Track PHI values through register coalescing

In the instruction referencing variable location model, we store variable
locations that point at PHIs in MachineFunction during register allocation.
Unfortunately, register coalescing can substantially change the locations
of registers, and so that PHI-variable-location side table needs
maintenence during the pass.

This patch builds an index from the side table, and whenever a vreg gets
coalesced into another vreg, update the index to record the new vreg that
the PHI happens in. It also accepts a limited range of subregister
coalescing, for example merging a subregister into a larger class.

Differential Revision:
The file was addedllvm/test/DebugInfo/MIR/InstrRef/phi-coalescing.mir
The file was modifiedllvm/lib/CodeGen/RegisterCoalescer.cpp
The file was addedllvm/test/DebugInfo/MIR/InstrRef/phi-coalesce-subreg.mir
Commit d84ed15c649616a50abdd7fbd9b28ddebb9f432c by thakis
Revert "[gn build] port d1d36f7ad (llvm-tapi-diff)"

This reverts commit 13155138c1ce1e91032d467e20e557f9cdbf08f5.
d1d36f7ad was reverted in 5337c7550d.
The file was removedllvm/utils/gn/secondary/llvm/tools/llvm-tapi-diff/
The file was modifiedllvm/utils/gn/secondary/llvm/test/
Commit 8937450e8581a8a135c61ff083828e6603755ef5 by spatel
[InstCombine] add tests for sext-of-trunc-of-lshr; NFC
The file was modifiedllvm/test/Transforms/InstCombine/lshr-trunc-sext-to-ashr-sext.ll
Commit 23a116c8c446f82ec5e2d2337c3253d0dc9c75b5 by spatel
[InstCombine] convert lshr to ashr to eliminate cast op

This is similar to b865eead7657 ( D103617 ) and fixes:

41b71f718b94c6f12b did this and more (noted with TODO
comments in the tests), but it didn't handle the case
where the destination is narrower than the source, so
it got reverted.

This is a simple match-and-replace. If there's evidence
that the TODO cases are useful, we can revisit/extend.
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
The file was modifiedllvm/test/Transforms/InstCombine/lshr-trunc-sext-to-ashr-sext.ll
Commit fd3f2518a4fe3f9ee52d03eb519bd654c3ce4055 by csigg
[mlir] Catch nonconvertible types in async conversion

Reviewed By: ezhulenev, ftynse

Differential Revision:
The file was modifiedmlir/lib/Conversion/AsyncToLLVM/AsyncToLLVM.cpp
Commit e42ee2d50963eb12e4d2dc0a20f36b1cb2af8543 by bradley.smith
[AArch64][SVE] Add support for using reverse forms of SVE2 shifts

When using and ACLE intrinsic for an SVE2 shift, if the predicate passed
has all relevant lanes active, then use a reversed version of the
instruction if beneficial.
The file was modifiedllvm/lib/Target/AArch64/
The file was modifiedllvm/lib/Target/AArch64/
The file was modifiedllvm/test/CodeGen/AArch64/sve2-intrinsics-uniform-dsp.ll
Commit ceb62388f2d8bd8deed447ebfed77ac7d9be293d by 1.int32
[clang][AST] Set correct DeclContext in ASTImporter lookup table for ParmVarDecl.

ParmVarDecl is created with translation unit as the parent DeclContext
and later moved to the correct DeclContext. ASTImporterLookupTable
should be updated at this move.

Reviewed By: martong

Differential Revision:
The file was modifiedclang/include/clang/AST/ASTImporterLookupTable.h
The file was modifiedclang/lib/AST/ASTImporterLookupTable.cpp
The file was modifiedclang/unittests/AST/ASTImporterTest.cpp
The file was modifiedclang/lib/AST/ASTImporter.cpp
Commit 1971960a6fed78d250c66906c804c6c41c86e3ec by jperier
[flang] Generate type info symbols outside of derived type scopes

A recent change was made in to cope
with kind parameters. It had the side effect of generating some type
info symbols inside derived type scopes. Derived type scope symbols
are meant for components, and other/later compilation phases might
choke when finding compiler generated symbols there that are not

This patch preserves the fix from D101482 while still generating the
symbols outside of derived type scopes.

Differential Revision:
The file was modifiedflang/test/Semantics/typeinfo01.f90
The file was modifiedflang/lib/Semantics/runtime-type-info.cpp
Commit cd093cbb115a4fda1544a789e3b1355e5b155aea by dmitry.preobrazhensky
[AMDGPU][MC][NFC] Fixed typos in parser

Differential Revision:
The file was modifiedllvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
Commit 93a058190cc67c18bf4e0af9d871d56106b80a49 by Jan Svoboda
[clang][deps] Add argument for customizing PCM paths

Dependency scanning currently performs an implicit build. When testing that Clang can build modules with the command-lines generated by `clang-scan-deps`, the actual compilation would overwrite artifacts created during the scan, which makes debugging harder than it should be and can lead to errors in multi-step builds.

To prevent this, this patch adds new flag to `clang-scan-deps` that allows developers to customize the directory to use when generating module map paths, instead of always using the module cache. Moreover, the explicit context hash in now part of the PCM path, which will be useful in D102488, where the context hash can change due to command-line pruning.

Reviewed By: Bigcheese

Differential Revision:
The file was modifiedclang/test/ClangScanDeps/modules-full.cpp
The file was modifiedclang/tools/clang-scan-deps/ClangScanDeps.cpp
The file was modifiedclang/include/clang/Tooling/DependencyScanning/ModuleDepCollector.h
Commit 35ef4c940bea1e2b803f17f13a625b2126c62b82 by Mirko.Brkusanin
[AMDGPU][GlobalISel] Legalize G_ABS

Legalize and select G_ABS so that we can use llvm.abs intrinsic

Differential Revision:
The file was modifiedllvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
The file was addedllvm/test/CodeGen/AMDGPU/GlobalISel/llvm.abs.ll
The file was modifiedllvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
The file was modifiedllvm/lib/Target/AMDGPU/
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
Commit 20bd2142d46536f4ffd61f28a029d6bda68f1a7f by andrzej.warzynski
[flang][driver] Add support for `-module-suffix`

This option is supported in `f18`, but not yet available in `flang-new`.
It is required in order to call `flang-new` from the `flang` bash

Differential Revision:
The file was modifiedflang/include/flang/Frontend/CompilerInvocation.h
The file was modifiedflang/lib/Frontend/CompilerInvocation.cpp
The file was modifiedclang/include/clang/Driver/
The file was addedflang/test/Driver/module-suffix.f90
The file was modifiedflang/test/Driver/driver-help.f90
Commit de07b1e84d8de948304766df602fee2b845e9532 by Jan Svoboda
[clang][deps] Support object files

When a project uses PCH with explicit modules, the build will look like this:

1. scan PCH dependencies
2. explicitly build PCH
3. scan TU dependencies
4. explicitly build TU

Step 2 produces an object file for the PCH, which the dependency scanner needs to read in step 3. This patch adds support for this.

The `clang-scan-deps` invocation in the attached test would fail without this change.

Depends on D103516.

Reviewed By: Bigcheese

Differential Revision:
The file was addedclang/test/ClangScanDeps/Inputs/modules-pch/cdb_tu.json
The file was addedclang/test/ClangScanDeps/Inputs/modules-pch/mod_tu.h
The file was addedclang/test/ClangScanDeps/Inputs/modules-pch/pch.h
The file was addedclang/test/ClangScanDeps/modules-pch.c
The file was addedclang/test/ClangScanDeps/Inputs/modules-pch/tu.c
The file was modifiedclang/lib/Tooling/DependencyScanning/DependencyScanningService.cpp
The file was modifiedclang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
The file was addedclang/test/ClangScanDeps/Inputs/modules-pch/module.modulemap
The file was modifiedclang/lib/Tooling/DependencyScanning/CMakeLists.txt
Commit 1fc6027406c51fcbe0cb83c92c92e16ddd9aca43 by spatel
[InstCombine] add/adjust test comments; NFC

Follow-up to post-commit comment:
The file was modifiedllvm/test/Transforms/InstCombine/lshr-trunc-sext-to-ashr-sext.ll
Commit b5dea8701ba98425991d4f1ec3d87bdb98789e04 by Yaxun.Liu
[HIP] Fix spack HIP device lib detection

spack HIP device library is installed at amdgcn directory under llvm/clang

This patch fixes detection of HIP device library for spack.

Reviewed by: Artem Belevich, Harmen Stoppels

Differential Revision:
The file was addedclang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/oclc_daz_opt_off.bc
The file was addedclang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/oclc_daz_opt_on.bc
The file was removedclang/test/Driver/Inputs/rocm-spack/rocm-device-libs-4.0.0-6wnyzz4hgl3hr7uswasnagt7j2adctbs/amdgcn/bitcode/oclc_isa_version_908.bc
The file was removedclang/test/Driver/Inputs/rocm-spack/rocm-device-libs-4.0.0-6wnyzz4hgl3hr7uswasnagt7j2adctbs/amdgcn/bitcode/oclc_unsafe_math_on.bc
The file was addedclang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/oclc_finite_only_on.bc
The file was addedclang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/oclc_finite_only_off.bc
The file was removedclang/test/Driver/Inputs/rocm-spack/rocm-device-libs-4.0.0-6wnyzz4hgl3hr7uswasnagt7j2adctbs/amdgcn/bitcode/oclc_unsafe_math_off.bc
The file was addedclang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/oclc_wavefrontsize64_on.bc
The file was addedclang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/oclc_unsafe_math_on.bc
The file was addedclang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/oclc_isa_version_803.bc
The file was addedclang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/opencl.bc
The file was modifiedclang/test/Driver/rocm-detect.hip
The file was removedclang/test/Driver/Inputs/rocm-spack/rocm-device-libs-4.0.0-6wnyzz4hgl3hr7uswasnagt7j2adctbs/amdgcn/bitcode/oclc_finite_only_off.bc
The file was removedclang/test/Driver/Inputs/rocm-spack/rocm-device-libs-4.0.0-6wnyzz4hgl3hr7uswasnagt7j2adctbs/amdgcn/bitcode/oclc_finite_only_on.bc
The file was removedclang/test/Driver/Inputs/rocm-spack/rocm-device-libs-4.0.0-6wnyzz4hgl3hr7uswasnagt7j2adctbs/amdgcn/bitcode/oclc_daz_opt_on.bc
The file was removedclang/test/Driver/Inputs/rocm-spack/rocm-device-libs-4.0.0-6wnyzz4hgl3hr7uswasnagt7j2adctbs/amdgcn/bitcode/asanrtl.bc
The file was addedclang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/oclc_isa_version_900.bc
The file was removedclang/test/Driver/Inputs/rocm-spack/rocm-device-libs-4.0.0-6wnyzz4hgl3hr7uswasnagt7j2adctbs/amdgcn/bitcode/opencl.bc
The file was addedclang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/oclc_correctly_rounded_sqrt_off.bc
The file was addedclang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc
The file was removedclang/test/Driver/Inputs/rocm-spack/rocm-device-libs-4.0.0-6wnyzz4hgl3hr7uswasnagt7j2adctbs/amdgcn/bitcode/ocml.bc
The file was addedclang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/ockl.bc
The file was removedclang/test/Driver/Inputs/rocm-spack/rocm-device-libs-4.0.0-6wnyzz4hgl3hr7uswasnagt7j2adctbs/amdgcn/bitcode/oclc_isa_version_1010.bc
The file was removedclang/test/Driver/Inputs/rocm-spack/rocm-device-libs-4.0.0-6wnyzz4hgl3hr7uswasnagt7j2adctbs/amdgcn/bitcode/oclc_isa_version_900.bc
The file was removedclang/test/Driver/Inputs/rocm-spack/rocm-device-libs-4.0.0-6wnyzz4hgl3hr7uswasnagt7j2adctbs/amdgcn/bitcode/oclc_isa_version_1011.bc
The file was removedclang/test/Driver/Inputs/rocm-spack/rocm-device-libs-4.0.0-6wnyzz4hgl3hr7uswasnagt7j2adctbs/amdgcn/bitcode/oclc_isa_version_803.bc
The file was modifiedclang/lib/Driver/ToolChains/AMDGPU.cpp
The file was removedclang/test/Driver/Inputs/rocm-spack/rocm-device-libs-4.0.0-6wnyzz4hgl3hr7uswasnagt7j2adctbs/amdgcn/bitcode/oclc_wavefrontsize64_off.bc
The file was removedclang/test/Driver/Inputs/rocm-spack/rocm-device-libs-4.0.0-6wnyzz4hgl3hr7uswasnagt7j2adctbs/amdgcn/bitcode/hip.bc
The file was removedclang/test/Driver/Inputs/rocm-spack/rocm-device-libs-4.0.0-6wnyzz4hgl3hr7uswasnagt7j2adctbs/amdgcn/bitcode/oclc_daz_opt_off.bc
The file was addedclang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/oclc_isa_version_1011.bc
The file was addedclang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/asanrtl.bc
The file was addedclang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/oclc_isa_version_1010.bc
The file was addedclang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/oclc_wavefrontsize64_off.bc
The file was removedclang/test/Driver/Inputs/rocm-spack/rocm-device-libs-4.0.0-6wnyzz4hgl3hr7uswasnagt7j2adctbs/amdgcn/bitcode/ockl.bc
The file was addedclang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/oclc_unsafe_math_off.bc
The file was addedclang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/hip.bc
The file was removedclang/test/Driver/Inputs/rocm-spack/rocm-device-libs-4.0.0-6wnyzz4hgl3hr7uswasnagt7j2adctbs/amdgcn/bitcode/oclc_correctly_rounded_sqrt_off.bc
The file was removedclang/test/Driver/Inputs/rocm-spack/rocm-device-libs-4.0.0-6wnyzz4hgl3hr7uswasnagt7j2adctbs/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc
The file was addedclang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/ocml.bc
The file was removedclang/test/Driver/Inputs/rocm-spack/rocm-device-libs-4.0.0-6wnyzz4hgl3hr7uswasnagt7j2adctbs/amdgcn/bitcode/oclc_isa_version_1012.bc
The file was addedclang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/oclc_isa_version_1012.bc
The file was addedclang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/oclc_isa_version_908.bc
The file was removedclang/test/Driver/Inputs/rocm-spack/rocm-device-libs-4.0.0-6wnyzz4hgl3hr7uswasnagt7j2adctbs/amdgcn/bitcode/oclc_wavefrontsize64_on.bc
Commit 3043cbc4363ad16f897052a05ac364e5f8ef3770 by nicholas.guy
[AArch64] Further enable UnrollAndJam

Due to the dependency on runtime unrolling, UnJ is only
enabled by default on in-order scheduling models,
and if a cpu is specified through -mcpu.

Differential Revision:
The file was addedllvm/test/CodeGen/AArch64/aarch64-unroll-and-jam.ll
The file was modifiedllvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
Commit 86c24493ea666a0ef91b7af884d616b0a181e849 by stuart.brady
[OpenCL][NFC] Test commit: tidy up whitespace in comment
The file was modifiedclang/lib/Headers/opencl-c.h
Commit a9c9183ca42629fa83cdda297d1d30c7bc1d7c91 by Louis Dionne
[libc++] Use the using_if_exists attribute when provided

As discussed on cfe-dev [1], use the using_if_exists Clang attribute when
the compiler supports it. This makes it easier to port libc++ on top of
new platforms that don't fully support the C Standard library.

Previously, libc++ would fail to build when trying to import a missing
declaration in a <cXXXX> header. With the attribute, the declaration will
simply not be imported into namespace std, and hence it won't be available
for libc++ to use. In many cases, the declarations were *not* actually
required for libc++ to work (they were only surfaced for users to use
them as std::XXXX), so not importing them into namespace std is acceptable.

The same thing could be achieved by conscious usage of `#ifdef` along
with platform detection, however that quickly creates a maintenance
problem as libc++ is ported to new platforms. Furthermore, this problem
is exacerbated when mixed with vendor internal-only platforms, which can
lead to difficulties maintaining a downstream fork of the library.

For the time being, we only use the using_if_exists attribute when it
is supported. At some point in the future, we will start removing #ifdef
paths that are unnecessary when the attribute is supported, and folks
who need those #ifdef paths will be required to use a compiler that
supports the attribute.


Differential Revision:
The file was modifiedlibcxx/include/cinttypes
The file was modifiedlibcxx/include/cwchar
The file was modifiedlibcxx/include/__config
The file was modifiedlibcxx/include/csignal
The file was modifiedlibcxx/include/cstdarg
The file was modifiedlibcxx/include/cfenv
The file was modifiedlibcxx/include/cctype
The file was modifiedlibcxx/include/cstdio
The file was modifiedlibcxx/include/cwctype
The file was modifiedlibcxx/include/clocale
The file was modifiedlibcxx/include/cstdint
The file was modifiedlibcxx/include/cmath
The file was modifiedlibcxx/include/ctime
The file was modifiedlibcxx/include/cstdlib
The file was modifiedlibcxx/include/cstddef
The file was modifiedlibcxx/include/csetjmp
The file was modifiedlibcxx/include/cstring
Commit e9a9c850989e2392b7f16dea2449312c15bd0240 by thakis
Revert "[InstrProfiling] If no value profiling, make data variable private and (for Windows) use one comdat"

This reverts commit a14fc749aab2c8e1a45d19d512255ebfc69357c3.
Breaks check-profile on macOS. See for details.
The file was modifiedllvm/test/Instrumentation/InstrProfiling/comdat.ll
The file was modifiedllvm/test/Instrumentation/InstrProfiling/icall.ll
The file was modifiedllvm/test/Transforms/PGOProfile/comdat_internal.ll
The file was modifiedllvm/test/Instrumentation/InstrProfiling/profiling.ll
The file was modifiedllvm/test/Instrumentation/InstrProfiling/platform.ll
The file was modifiedllvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
The file was modifiedllvm/test/Instrumentation/InstrProfiling/linkage.ll
Commit b5f0a14fc7b40cec36fa001ea708f290f2f3ce37 by mydeveloperday
[clang-format] NFC, 2% improvement in overall clang-formatted status (now 50%)
The file was modifiedclang/docs/ClangFormattedStatus.rst
Commit db3e4faa4d2cadf204e67f42bccd98957496a87a by thakis
Temporarily remove one of the tests added in effb87dfa810a

It fails on some Linux systems. Remove the test until we've figured
out what's going on. See for details.
The file was removedcompiler-rt/test/profile/Linux/coverage-linkage.cpp
Commit f03f4944cf829c86bc2c080b9a564bbc59aad277 by spatel
[InstCombine] add tests for pow() reassociation; NFC

Baseline tests for D102574
The file was modifiedllvm/test/Transforms/InstCombine/fmul-pow.ll
Commit 2b4c9bc4d489a4be1c5aa1924fba542dc80ab0c9 by andrzej.warzynski
[flang][driver] Add checks for missing option arguments

With this patch, the following invocation of the frontend driver will
return an error:
flang-new -fc1 input-file.f90 -o
Similar logic applies to other options that require arguments.

Similar checks are already available in the compiler driver, flang-new
(that's implemented in clangDriver).

Differential Revision:
The file was addedflang/test/Driver/missing-arg.f90
The file was modifiedflang/lib/Frontend/CompilerInvocation.cpp
Commit fcb1547229454fcc814a58784495a7ef9ad991d2 by clementval
[mlir][openacc] Conversion of data operands in to LLVM IR dialect

Convert data operands from the operation using the same conversion pattern than D102170.

Reviewed By: ftynse

Differential Revision:
The file was modifiedmlir/lib/Conversion/OpenACCToLLVM/OpenACCToLLVM.cpp
The file was modifiedmlir/include/mlir/Dialect/OpenACC/
The file was modifiedmlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
The file was removedmlir/test/Conversion/OpenACCToLLVM/convert-standalone-data-to-llvmir.mlir
The file was addedmlir/test/Conversion/OpenACCToLLVM/convert-data-operands-to-llvmir.mlir
Commit 827b5c21545aaa820403e9b5cced8c0181349ee2 by a.bataev
[OPENMP]Fix PR49790: Constexpr values not handled in `omp declare mapper` clause.

Patch allows using of constexpr vars evaluatable to constant calue to be
used in declare mapper construct.

Differential Revision:
The file was modifiedclang/lib/Sema/SemaOpenMP.cpp
The file was modifiedclang/test/OpenMP/declare_mapper_ast_print.cpp
Commit 1928bcd8bdcd17c8345e51487e3b8ae0e70596a1 by thakis
[gn build] (manually) port de07b1e84d8de9
The file was modifiedllvm/utils/gn/secondary/clang/lib/Tooling/DependencyScanning/
Commit 700b64dc54d43e9ea544dd14e0bb344101567423 by springerm
[mlir] Mark VectorToSCF patterns as recursive

Differential Revision:
The file was modifiedmlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
Commit f917c5b8d40b7894d52d56052bb18f8e989bad9e by thakis
Revert test fixups after e9a9c850989e (which reverted a14fc74).

This reverts commit da3ed58b97c1cc1356b7732d5dcbb6e4de3057da.
This reverts commit ba1fb0ff8c9f9ef7f9b7d1fe43cb95c8d1363f78.
The file was modifiedclang/test/Profile/c-linkage.c
The file was modifiedclang/test/Profile/c-linkage-available_externally.c
The file was modifiedclang/test/Profile/cxx-linkage.cpp
Commit 50c0aaed47b518beea550a6858c2967eaeaef7eb by thakis
Temporarily remove another test added in one of the tests added in effb87d

This test reads the test file removed in db3e4faa4d2ca.
The file was removedcompiler-rt/test/profile/Linux/coverage-linkage-lld.cpp
Commit e789efc92a5aa6495a22bd3a93a03f640dc2f32a by springerm
[mlir][linalg] Refactor PadTensorOpVectorizationPattern (NFC)

* Rename PadTensorOpVectorizationPattern to GenericPadTensorOpVectorizationPattern.
* Make GenericPadTensorOpVectorizationPattern a private pattern, to be instantiated via populatePadTensorOpVectorizationPatterns.
* Factor out parts of PadTensorOpVectorizationPattern into helper functions.

This commit prepares PadTensorOpVectorizationPattern for a series of subsequent commits that add more specialized PadTensorOp vectorization patterns.

Differential Revision:
The file was modifiedmlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
The file was modifiedmlir/test/lib/Dialect/Linalg/TestLinalgTransforms.cpp
Commit a85f5874e2a4d4bad8c53d277e9df183122793ae by bradley.smith
[AArch64] Remove SETCC of CSEL when the latter's condition can be inverted

  setcc (csel 0, 1, cond, X), 1, ne ==> csel 0, 1, !cond, X

Where X is a condition code setting instruction.

Co-authored-by: Paul Walker <>

Differential Revision:
The file was modifiedllvm/test/CodeGen/AArch64/sve-setcc.ll
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Commit c84a5448b5ac3212303c553866e8d42a5a75ce30 by a.bataev
[OPENMP]Fix PR50129: omp cancel parallel not working as expected.

Need to emit a call for __kmpc_cancel_barrier in the exit block for
__kmpc_cancel function call if cancellation of the parallel block is

Differential Revision:
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntime.cpp
The file was modifiedclang/test/OpenMP/target_parallel_codegen.cpp
The file was modifiedclang/test/OpenMP/cancellation_point_codegen.cpp
The file was modifiedllvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_parallel_for_codegen.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_codegen.cpp
The file was modifiedclang/test/OpenMP/target_parallel_for_codegen.cpp
The file was modifiedllvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_codegen.cpp
The file was modifiedllvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
The file was modifiedclang/test/OpenMP/parallel_master_taskloop_codegen.cpp
The file was modifiedclang/test/OpenMP/cancel_codegen.cpp
Commit 8a4d05ddb3ff25c53299ff440032547d68b36397 by spatel
[ConstantFolding] add copysign tests for more FP types; NFC

D102673 proposes to ease the current type check, but
there doesn't appear to be any test coverage for that.
The file was modifiedllvm/test/Transforms/InstSimplify/ConstProp/copysign.ll
Commit eba3ee04d450230f7ac1f88b1abd7b09c600c82d by adamcz
[clangd] Run code completion on each token coverd by --check-lines

In --check mode we do not run code completion because it is too slow,
especially on larger files. With the introducation of --check-lines we
can narrow down the scope and thus we can afford to do code completion.

We vlog() the top completion result, but that's not really the point.
The most value will come from being able to reproduce crashes that occur
during code completion and require preamble build or index (and thus are
more difficult to reproduce with -code-complete-at).

Differential Revision:
The file was modifiedclang-tools-extra/clangd/tool/Check.cpp
The file was modifiedclang-tools-extra/clangd/tool/ClangdMain.cpp
Commit b109172d993edacd9853a8bbb8128a94da014399 by goncharov.mikhail
[clang] use a different name for generated test cdb

if build system copied source files as readonly, then override of db_tu.json
will fail
The file was modifiedclang/test/ClangScanDeps/modules-pch.c
Commit c653711fd3a9ac8399a435f02054ef42cddc4db7 by craig.topper
[RISCV] Teach vsetvli insertion pass that operations on masks don't care about SEW/LMUL.

All that really matters is that the VLMAX of the preceding
instructions is the same as the VLMAX required by the mask

Also update the vmsge(u) handling to use the SEW/LMUL we use for
other mask register operations. We were matching it to the compare
before. Some cases will be improve if we fix masked compares to
use tail agnostic policy. I think they ignore the tail policy

Reviewed By: frasercrmck

Differential Revision:
The file was modifiedllvm/test/CodeGen/RISCV/rvv/fixed-vectors-fp-setcc.ll
The file was modifiedllvm/test/CodeGen/RISCV/rvv/setcc-fp-rv64.ll
The file was modifiedllvm/test/CodeGen/RISCV/rvv/vmsge-rv64.ll
The file was modifiedllvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
The file was modifiedllvm/test/CodeGen/RISCV/rvv/vmsgeu-rv32.ll
The file was modifiedllvm/test/CodeGen/RISCV/rvv/vmsgeu-rv64.ll
The file was modifiedllvm/test/CodeGen/RISCV/rvv/fixed-vectors-vselect.ll
The file was modifiedllvm/test/CodeGen/RISCV/rvv/vmsge-rv32.ll
The file was modifiedllvm/lib/Target/RISCV/
The file was modifiedllvm/test/CodeGen/RISCV/rvv/saddo-sdnode.ll
The file was modifiedllvm/test/CodeGen/RISCV/rvv/setcc-fp-rv32.ll
The file was modifiedllvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
Commit 56dd158c329c424491485dd3c48616b64cdc13b1 by jonathan.l.peyton
[OpenMP] fix spelling error in
The file was modifiedopenmp/runtime/tools/