LLVM/project 3f4eb81clang-tools-extra/docs/clang-tidy/checks/modernize make-shared.rst

[cland-tidy][NFC] Fixed documentation for modernize-make-shared check (#158421)

I was surprised to see a different value for the
`MakeSmartPtrFunctionHeader` option of the `modernize-make-unique` and
`modernize-make-shared` clang-tidy checks. See, respectively:
[modernize-make-unique](https://github.com/llvm/llvm-project/blob/86397f55d5b3ac2ebefc91bbf1a7a6a23b44a3e2/clang-tools-extra/docs/clang-tidy/checks/modernize/make-unique.rst?plain=1#L40)
and
[modernize-make-shared](https://github.com/llvm/llvm-project/blob/86397f55d5b3ac2ebefc91bbf1a7a6a23b44a3e2/clang-tools-extra/docs/clang-tidy/checks/modernize/make-shared.rst?plain=1#L40).

From what I've read in the codebase, I believe both checks use the same
default value for the `MakeSmartPtrFunctionHeader`: `<memory>` (from
[here](https://github.com/llvm/llvm-project/blob/d976be0bb4f706a7f8d446cd5639651db66bf7a9/clang-tools-extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp#L45-L46)).
DeltaFile
+1-1clang-tools-extra/docs/clang-tidy/checks/modernize/make-shared.rst
+1-11 files

LLVM/project d594a00llvm/include/llvm/ADT PointerIntPair.h

[ADT] Simplify IntMask (NFC) (#158410)

We can do the shift in uintptr_t without going through intptr_t.
DeltaFile
+1-1llvm/include/llvm/ADT/PointerIntPair.h
+1-11 files

LLVM/project d976be0mlir/include/mlir/Transforms Passes.td DialectConversion.h

[mlir] Documentation typo fixes (#135732)

DeltaFile
+2-2mlir/include/mlir/Transforms/Passes.td
+1-1mlir/include/mlir/Transforms/DialectConversion.h
+3-32 files

LLVM/project de04d42clang-tools-extra/clang-tidy/bugprone EasilySwappableParametersCheck.cpp, clang-tools-extra/docs ReleaseNotes.rst

[clang-tidy] Fixed typo for bugprone-easily-swappable-parameters clang-tidy check (#158282)

I came across this little typo mistake while reading the docs, so I've
fixed it :)
DeltaFile
+6-6clang-tools-extra/clang-tidy/bugprone/EasilySwappableParametersCheck.cpp
+8-3clang-tools-extra/docs/ReleaseNotes.rst
+2-2clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters.c
+2-2clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters-relatedness.c
+1-1clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters-ignore.cpp
+1-1clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters-implicit-qualifiers.cpp
+20-159 files not shown
+29-2415 files

LLVM/project ee2a225mlir/include/mlir/ExecutionEngine MemRefUtils.h, mlir/unittests/ExecutionEngine Invoke.cpp

[mlir] Fix correct memset range in `OwningMemRef` zero-init (#158200)

`OwningMemref` allocates with overprovision + manual alignment.
This is fixing the zero-initialization of the data, the existing code
was potentially overrunning the allocation:

```cpp
memset(descriptor.data, 0, size + desiredAlignment); // ❌ may overrun
```

This is invalid because `descriptor.data` (the aligned pointer) **does
not point to the full allocated block** (`size + desiredAlignment`).
Zeroing that much from the aligned start can write past the end of the
allocation.

Instead we only initialize the data from the aligned pointer for the expected
buffer size. The padding from [allocatedPtr, alignedDataPtr] is left untouched.
DeltaFile
+18-0mlir/unittests/ExecutionEngine/Invoke.cpp
+4-6mlir/include/mlir/ExecutionEngine/MemRefUtils.h
+22-62 files

LLVM/project bafa23dllvm/lib/Frontend/OpenMP OMPIRBuilder.cpp

review comments
DeltaFile
+2-2llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+2-21 files

LLVM/project 7f6d6fellvm/lib/Frontend/OpenMP OMPIRBuilder.cpp, mlir/test/Target/LLVMIR omptarget-multi-block-reduction.mlir

[flang][OpenMP] Support multi-block reduction combiner  regions on the GPU

Fixes a bug related to insertion points when inlining multi-block
combiner reduction regions. The IP at the end of the inlined region was
not used resulting in emitting BBs with multiple terminators.
DeltaFile
+85-0mlir/test/Target/LLVMIR/omptarget-multi-block-reduction.mlir
+3-0llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+88-02 files

LLVM/project 6dbc285flang/lib/Optimizer/OpenMP DoConcurrentConversion.cpp, flang/test/Transforms/DoConcurrent reduce_device.mlir

[flang][OpenMP] `do concurrent`: support `reduce` on device

Extends `do concurrent` to OpenMP device mapping by adding support for
mapping `reduce` specifiers to omp `reduction` clauses. The changes
attach 2 `reduction` clauses to the mapped OpenMP construct: one on the
`teams` part of the construct and one on the `wloop` part.
DeltaFile
+68-49flang/lib/Optimizer/OpenMP/DoConcurrentConversion.cpp
+53-0flang/test/Transforms/DoConcurrent/reduce_device.mlir
+121-492 files

LLVM/project 983b97dflang/include/flang/Optimizer/Dialect FIROps.td, flang/lib/Optimizer/OpenMP DoConcurrentConversion.cpp

[flang][OpenMP] `do concurrent`: support `local` on device

Extends support for mapping `do concurrent` on the device by adding
support for `local` specifiers. The changes in this PR map the local
variable to the `omp.target` op and uses the mapped value as the
`private` clause operand in the nested `omp.parallel` op.
DeltaFile
+114-78flang/lib/Optimizer/OpenMP/DoConcurrentConversion.cpp
+49-0flang/test/Transforms/DoConcurrent/local_device.mlir
+12-0flang/include/flang/Optimizer/Dialect/FIROps.td
+175-783 files

LLVM/project 2177cccoffload/test/offloading/fortran do-concurrent-to-omp-saxpy-2d.f90 do-concurrent-to-omp-saxpy.f90

[flang][do concurent] Add saxpy offload tests for OpenMP mapping

Adds end-to-end tests for `do concurrent` offloading to the device.
DeltaFile
+53-0offload/test/offloading/fortran/do-concurrent-to-omp-saxpy-2d.f90
+53-0offload/test/offloading/fortran/do-concurrent-to-omp-saxpy.f90
+106-02 files

LLVM/project 5dad6c9flang/test/Transforms/DoConcurrent multiple_iteration_ranges.f90 map_shape_info.f90

[flang][OpenMP] `do concurrent` to device mapping lit tests

Adds more lit tests for `do concurrent` device mapping.
DeltaFile
+65-41flang/test/Transforms/DoConcurrent/multiple_iteration_ranges.f90
+104-0flang/test/Transforms/DoConcurrent/map_shape_info.f90
+68-0flang/test/Transforms/DoConcurrent/skip_all_nested_loops.f90
+45-21flang/test/Transforms/DoConcurrent/not_perfectly_nested.f90
+63-0flang/test/Transforms/DoConcurrent/host_eval.f90
+28-15flang/test/Transforms/DoConcurrent/locally_destroyed_temp.f90
+373-773 files not shown
+478-779 files

LLVM/project 86397f5llvm/lib/Target/M68k CMakeLists.txt

[M68k] Add missing dependency on TargetParser

Became necessary after f3efbce4.
DeltaFile
+1-0llvm/lib/Target/M68k/CMakeLists.txt
+1-01 files

LLVM/project a4993a2llvm/lib/Target/AArch64 AArch64ISelLowering.cpp, llvm/test/CodeGen/AArch64 abdu-neg.ll abds-neg.ll

[AArch64] Combine ADDS and SUBS nodes with the non-flag setting versions (#157563)

We do that with the other flag setting nodes. We should do this with all
flag setting and non-flag setting nodes.
DeltaFile
+12-13llvm/test/CodeGen/AArch64/abdu-neg.ll
+12-13llvm/test/CodeGen/AArch64/abds-neg.ll
+2-4llvm/test/CodeGen/AArch64/adds_cmn.ll
+4-0llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+1-2llvm/test/CodeGen/AArch64/abdu.ll
+1-2llvm/test/CodeGen/AArch64/abds.ll
+32-346 files

LLVM/project 9ac2924clang/docs ReleaseNotes.rst, clang/lib/Sema SemaTemplateDeduction.cpp

[Clang] Fix the source location of default template arguments in placeholder constraints (#158414)

We discovered this issue while working on the concept normalization
refactoring. We missed the source location when diagnosing the
instantiation point of the placeholder constraints, which is involved by
the substitution of default template arguments that happens before
constraint evaluation.

See the issue alive: https://godbolt.org/z/cWr9qP3E8
DeltaFile
+21-0clang/test/SemaTemplate/concepts.cpp
+3-0clang/docs/ReleaseNotes.rst
+1-1clang/lib/Sema/SemaTemplateDeduction.cpp
+25-13 files

LLVM/project b31f8cblldb/test CMakeLists.txt, lldb/test/Shell lit.cfg.py lit.site.cfg.py.in

[LLDB] Require DIA SDK for testing the PDB plugin-selection setting (#158284)

If LLDB is built without the DIA SDK enabled, then the native plugin is
used regardless of `plugin.symbol-file.pdb.reader` or
`LLDB_USE_NATIVE_PDB_READER`. This made the test fail on Windows when
the DIA SDK was disabled
(https://github.com/llvm/llvm-project/issues/114906#issuecomment-3241796062).

This PR changes the requirement for the test from `target-windows` to
`diasdk` (only used in this test).
DeltaFile
+3-0lldb/test/Shell/lit.cfg.py
+1-1lldb/test/Shell/SymbolFile/PDB/native-setting.cpp
+1-0lldb/test/CMakeLists.txt
+1-0lldb/test/Shell/lit.site.cfg.py.in
+6-14 files

LLVM/project cf9576dclang/include/clang/CIR/Dialect/IR CIROps.td, clang/lib/CIR/CodeGen CIRGenBuiltin.cpp

[CIR] Upstream FPToFPBuiltin CosOp (#158342)

Upstream support for FPToFPBuiltin CosOp
DeltaFile
+27-0clang/test/CIR/CodeGen/builtins-elementwise.c
+20-0clang/test/CIR/CodeGen/builtins-floating-point.c
+13-0clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp
+10-0clang/include/clang/CIR/Dialect/IR/CIROps.td
+9-0clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+9-0clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.h
+88-06 files

LLVM/project 2a3c9f9clang/lib/CIR/CodeGen CIRGenExpr.cpp CIRGenExprComplex.cpp, clang/test/CIR/CodeGen opaque.cpp

[CIR] Upstream VisitOpaqueValueExpr support for Complex & Scalar (#157331)

This change adds support for the OpaqueValueExpr for Complex & Scalar


Issue: https://github.com/llvm/llvm-project/issues/141365
DeltaFile
+156-0clang/test/CIR/CodeGen/opaque.cpp
+24-0clang/lib/CIR/CodeGen/CIRGenExpr.cpp
+18-4clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp
+9-0clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
+8-0clang/lib/CIR/CodeGen/CIRGenFunction.h
+215-45 files

LLVM/project 1dc4db8llvm/lib/Target/AMDGPU SIInstrInfo.cpp

AMDGPU: Relax verifier for agpr/vgpr loads and stores (#158391)

DeltaFile
+1-1llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+1-11 files

LLVM/project c642e2aclang/include/clang/Interpreter Interpreter.h, clang/lib/Interpreter IncrementalExecutor.cpp IncrementalExecutor.h

[clang-repl] Add support for running custom code in Remote JIT executor (#157358)

Introduce a custom lambda mechanism that allows injecting user-defined
code into the Remote JIT’s executor.

---------

Co-authored-by: kr-2003 <kumar.kr.abhinav at gmail.com>
DeltaFile
+203-0clang/unittests/Interpreter/OutOfProcessInterpreterTests.cpp
+22-1clang/unittests/Interpreter/CMakeLists.txt
+5-1clang/lib/Interpreter/IncrementalExecutor.cpp
+3-1clang/include/clang/Interpreter/Interpreter.h
+2-1clang/lib/Interpreter/IncrementalExecutor.h
+2-1clang/lib/Interpreter/Interpreter.cpp
+237-56 files

LLVM/project 0c3cf20llvm/include/llvm/Transforms/Utils SimplifyLibCalls.h, llvm/lib/Transforms/Utils SimplifyLibCalls.cpp

[MemProf] Optionally allow transformation of nobuiltin operator new (#158396)

For cases where we can guarantee the application does not override
operator new.
DeltaFile
+37-23llvm/test/Transforms/InstCombine/simplify-libcalls-new.ll
+32-11llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+1-1llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
+70-353 files

LLVM/project 9584057mlir/lib/Bindings/Python IRCore.cpp IRAttributes.cpp

fix types
DeltaFile
+154-93mlir/lib/Bindings/Python/IRCore.cpp
+42-27mlir/lib/Bindings/Python/IRAttributes.cpp
+24-11mlir/lib/Bindings/Python/IRModule.h
+20-10mlir/lib/Bindings/Python/IRTypes.cpp
+5-1mlir/lib/Bindings/Python/Rewrite.cpp
+1-1mlir/lib/Bindings/Python/DialectPDL.cpp
+246-1431 files not shown
+247-1437 files

LLVM/project a066d8emlir/lib/Bindings/Python IRCore.cpp

fix types
DeltaFile
+42-28mlir/lib/Bindings/Python/IRCore.cpp
+42-281 files

LLVM/project 2610007lldb/docs/use python-reference.rst python.rst, lldb/docs/use/tutorials script-driven-debugging.md writing-custom-commands.md

[lldb/docs] Breakdown python reference into multiple files (#158331)

This pages improve the LLDB website documentation readability and
discoverability by breaking down the very long python-reference page
into multiple subpages each explaining a specific topic.

The long term goal is to have tutorials for every scripting extension.

This also converts the pages to markdown, since it's easier to write.

Signed-off-by: Med Ismail Bennani <ismail at bennani.ma>
DeltaFile
+15-1,120lldb/docs/use/python-reference.rst
+0-799lldb/docs/use/python.rst
+492-0lldb/docs/use/tutorials/script-driven-debugging.md
+429-0lldb/docs/use/tutorials/writing-custom-commands.md
+134-0lldb/docs/use/tutorials/implementing-standalone-scripts.md
+128-0lldb/docs/use/tutorials/creating-custom-breakpoints.md
+1,198-1,9197 files not shown
+1,530-1,91913 files

LLVM/project 4cbf440llvm/lib/CodeGen/SelectionDAG LegalizeDAG.cpp LegalizeIntegerTypes.cpp

[SelectionDAG] Use getShiftAmountConstant. (#158395)

Many of the shifts in LegalizeIntegerTypes.cpp were using getPointerTy.
DeltaFile
+24-43llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+20-24llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
+1-3llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
+1-2llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
+46-724 files

LLVM/project 4ebd202llvm/lib/CodeGen/SelectionDAG LegalizeIntegerTypes.cpp, llvm/lib/Target/X86 X86ISelLowering.cpp

[LegalizeTypes][X86] Use getShiftAmountConstant in ExpandIntRes_SIGN_EXTEND. (#158388)

This ensures we don't need to fixup the shift amount later.

Unfortunately, this enabled the
(SRA (SHL X, ShlConst), SraConst) -> (SRA (sext_in_reg X), SraConst -
ShlConst) combine in combineShiftRightArithmetic for some cases in
is_fpclass-fp80.ll. So we need to also update checkSignTestSetCCCombine
to look through sign_extend_inreg to prevent a regression.
DeltaFile
+4-5llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
+6-2llvm/lib/Target/X86/X86ISelLowering.cpp
+10-72 files

LLVM/project 004f209clang/lib/CodeGen CodeGenModule.cpp, clang/test/CodeGen kcfi-normalize.c kcfi-generalize.c

[CodeGen][CFI] Generalize transparent union parameters (#158193)

According GCC documentation transparent union
calling convention is the same as the type of the
first member of the union.

C++ ignores attribute.

Note, it does not generalize args of function pointer args.
It's unnecessary with pointer generalization.
It will be fixed in followup patch.

---------

Co-authored-by: lntue <lntue at google.com>
DeltaFile
+14-1clang/lib/CodeGen/CodeGenModule.cpp
+6-5clang/test/CodeGen/kcfi-normalize.c
+4-5clang/test/CodeGen/kcfi-generalize.c
+4-4clang/test/CodeGen/cfi-icall-generalize.c
+2-2clang/test/CodeGen/cfi-icall-normalize2.c
+30-175 files

LLVM/project 0ca54d7llvm/lib/CodeGen/SelectionDAG LegalizeTypes.cpp

[LegalizeTypes] Use getShiftAmountConstant in SplitInteger. (#158392)

This function contained old code for handling the case that the type
returned getScalarShiftAmountTy can't hold the shift amount.

These days this is handled by getShiftAmountTy which is used by
getShiftAmountConstant.
DeltaFile
+3-8llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
+3-81 files

LLVM/project 01eaf4aclang/test/CodeGen/LoongArch/lasx builtin-alias.c builtin.c, clang/test/Headers __clang_hip_math.hip wasm.c

rebase

Created using spr 1.3.6
DeltaFile
+5,387-4,202clang/test/Headers/__clang_hip_math.hip
+4,201-3,457clang/test/CodeGen/LoongArch/lasx/builtin-alias.c
+4,198-3,457clang/test/CodeGen/LoongArch/lasx/builtin.c
+1,339-1,056clang/test/Headers/wasm.c
+1,155-1,155llvm/test/Transforms/OpenMP/spmdization.ll
+943-941llvm/test/Transforms/Attributor/value-simplify-pointer-info.ll
+17,223-14,268716 files not shown
+42,917-26,931722 files

LLVM/project 2166ce8clang/test/CodeGen/LoongArch/lasx builtin-alias.c builtin.c, clang/test/Headers __clang_hip_math.hip wasm.c

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.6

[skip ci]
DeltaFile
+5,387-4,202clang/test/Headers/__clang_hip_math.hip
+4,201-3,457clang/test/CodeGen/LoongArch/lasx/builtin-alias.c
+4,198-3,457clang/test/CodeGen/LoongArch/lasx/builtin.c
+1,339-1,056clang/test/Headers/wasm.c
+1,155-1,155llvm/test/Transforms/OpenMP/spmdization.ll
+943-941llvm/test/Transforms/Attributor/value-simplify-pointer-info.ll
+17,223-14,268716 files not shown
+42,917-26,931722 files

LLVM/project 7aad383libc/src/__support endian_internal.h, libc/src/__support/macros config.h

[libc] Some MSVC compatibility changes for src/string/memory_utils. (#158393)

DeltaFile
+7-5libc/src/__support/endian_internal.h
+11-0libc/src/string/memory_utils/op_generic.h
+10-0libc/src/string/memory_utils/op_x86.h
+5-0libc/src/string/memory_utils/utils.h
+5-0libc/test/UnitTest/LibcTest.h
+2-0libc/src/__support/macros/config.h
+40-53 files not shown
+43-59 files