LLVM/project ca8d74blldb/include/lldb/Interpreter CommandReturnObject.h, lldb/source/Commands CommandObjectProtocolServer.cpp CommandObjectProcess.cpp

Revert "[lldb] Assert that CommandObject::DoExecute sets a return status (#19…"

This reverts commit 78d124eb16aa62e02a465b0fd6c3c2cab0a26dd8.
DeltaFile
+0-38lldb/unittests/Interpreter/TestCommandReturnObject.cpp
+1-24lldb/source/Interpreter/CommandObject.cpp
+1-4lldb/include/lldb/Interpreter/CommandReturnObject.h
+2-2lldb/test/API/commands/command/script/TestCommandScript.py
+1-2lldb/source/Commands/CommandObjectProtocolServer.cpp
+0-2lldb/source/Commands/CommandObjectProcess.cpp
+5-722 files not shown
+6-748 files

LLVM/project b88008cllvm/lib/Transforms/InstCombine InstCombineMulDivRem.cpp, llvm/test/Transforms/InstCombine powi.ll powi-mul-overflow.ll

address review comments
DeltaFile
+61-5llvm/test/Transforms/InstCombine/powi.ll
+0-45llvm/test/Transforms/InstCombine/powi-mul-overflow.ll
+4-12llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
+65-623 files

LLVM/project 45c1414llvm/docs AMDGPUUsage.rst

fixed a runaway sed replacement
DeltaFile
+1-1llvm/docs/AMDGPUUsage.rst
+1-11 files

LLVM/project 46e07d3llvm/test/CodeGen/RISCV callee-saved-gprs.ll vararg.ll, llvm/test/CodeGen/RISCV/GlobalISel vararg.ll

[RISCV] Prefer SP over FP for frame index access when offset fits within compressed immediate range. (#193962)

Before this change, we would use fp/s0/x8 for most stack accesses when
frame pointers were present. This is an over-approximation when a
stack slot is reachable from both SP and FP with no scalable offset.

This patch replaces the unconditional getFrameRegister() call in
getFrameIndexReference with an explicit register selection decision
tree.

When both SP and FP are available (no stack realignment, no RVV objects,
no variable-sized objects), prefer SP if the SP-relative offset fits in
the compressed instruction immediate range (<=252 for RV32, <=504 for RV64).
This enables compression for sp-relative instructions to c.swsp/c.lwsp
(RV32) and c.sdsp/c.ldsp (RV64) thereby reducing code size.
DeltaFile
+316-316llvm/test/CodeGen/RISCV/callee-saved-gprs.ll
+295-303llvm/test/CodeGen/RISCV/vararg.ll
+226-230llvm/test/CodeGen/RISCV/GlobalISel/vararg.ll
+224-224llvm/test/CodeGen/RISCV/qci-interrupt-attr.ll
+128-128llvm/test/CodeGen/RISCV/xqccmp-callee-saved-gprs.ll
+75-75llvm/test/CodeGen/RISCV/xqccmp-push-pop-popret.ll
+1,264-1,27618 files not shown
+1,465-1,45824 files

LLVM/project 1a6fa34mlir/lib/Conversion/ComplexToLLVM ComplexToLLVM.cpp, mlir/lib/Conversion/ComplexToStandard ComplexToStandard.cpp

[mlir][complex] Emit complex.mul multiplications before add/sub lowering (#196231)

[mlir][complex] Emit complex.mul multiplications before add/sub lowering
This changes the lowering of complex.mul in both ComplexToStandard and
ComplexToLLVM to emit the four independent multiplications before
creating the
final add/sub operations.

The lowered computation is unchanged:

  real = lhs.real * rhs.real - lhs.imag * rhs.imag
  imag = lhs.imag * rhs.real + lhs.real * rhs.imag

but the generated operation order changes from:

  mul, mul, sub, mul, mul, add

to:


    [6 lines not shown]
DeltaFile
+13-6mlir/lib/Conversion/ComplexToLLVM/ComplexToLLVM.cpp
+6-7mlir/test/Conversion/ComplexToStandard/convert-to-standard.mlir
+5-6mlir/test/Conversion/ComplexToLLVM/convert-to-llvm.mlir
+3-2mlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp
+1-2mlir/test/Conversion/ComplexToLLVM/full-conversion.mlir
+28-235 files

LLVM/project a1e9d82libc/src/__support big_int.h, libc/src/__support/FPUtil bfloat16.h NormalFloat.h

[libc][NFC] Propagate LIBC_CONSTEXPR qualifier for those depending on bitt_cast. (#197355)

This should fix the LLVM APFloat build with gcc pre-11.
DeltaFile
+128-122libc/src/__support/big_int.h
+16-16libc/src/__support/math/atan2f128.h
+15-15libc/src/__support/FPUtil/bfloat16.h
+13-10libc/src/__support/math/sqrtf128.h
+12-10libc/src/__support/FPUtil/NormalFloat.h
+10-7libc/src/__support/macros/attributes.h
+194-180379 files not shown
+710-637385 files

LLVM/project c831bb5clang/docs ReleaseNotes.rst, clang/include/clang/Sema Sema.h

[clang] make concept normalization a SFINAE context

It is incorrect to allow the substitution failures in concept normalization
to make the program ill-formed.

These can happen when comparing the equivalence of constraints for
redeclaration checking, and a failure here only means these declarations
are not equivalent.

For now, these diagnostics are simply discarded. It would be nice
if some day, as part of diagnostics for non-matching out-of-line definitions,
we would explain why matching failed for each candidate, and then add these
as notes explaining why the constraints were not equivalent.
DeltaFile
+27-49clang/lib/Sema/SemaConcept.cpp
+7-30clang/lib/Sema/SemaTemplateInstantiate.cpp
+11-3clang/test/SemaTemplate/concepts-out-of-line-def.cpp
+0-9clang/include/clang/Sema/Sema.h
+0-2clang/lib/Frontend/FrontendActions.cpp
+2-0clang/docs/ReleaseNotes.rst
+47-932 files not shown
+47-968 files

LLVM/project 5c66ef1clang/lib/CIR/CodeGen CIRGenBuiltinAMDGPU.cpp, clang/test/CIR/CodeGenHIP builtins-amdgcn.hip

[CIR][AMDGPU] Add lowering for amdgcn readlane readfirstlane builtins (#197153)

Upstreaming clangIR PR: https://github.com/llvm/clangir/pull/2053

This PR adds support for lowering of "_builtin_amdgcn_readlane" and
"_builtin_amdgcn_readfirstlane" amdgpu builtins to clangIR.
DeltaFile
+16-0clang/test/CIR/CodeGenHIP/builtins-amdgcn.hip
+13-2clang/lib/CIR/CodeGen/CIRGenBuiltinAMDGPU.cpp
+29-22 files

LLVM/project 3d9d8celibcxx/docs/Status Cxx2cIssues.csvgb

[libc++] Remove empty csvgb file. (#196939)

This file was introduced in #172905, but it is empty and I could not
find any reference to it.
DeltaFile
+0-0libcxx/docs/Status/Cxx2cIssues.csvgb
+0-01 files

LLVM/project 228fc61clang/include/clang/Basic DiagnosticSemaKinds.td, clang/include/clang/Sema Sema.h

[clang] make concept normalization a SFINAE context

It is incorrect to allow the substitution failures in concept normalization
to make the program ill-formed.

These can happen when comparing the equivalence of constraints for
redeclaration checking, and a failure here only means these declarations
are not equivalent.

For now, these diagnostics are simply discarded. It would be nice
if some day, as part of diagnostics for non-matching out-of-line definitions,
we would explain why matching failed for each candidate, and then add these
as notes explaining why the constraints were not equivalent.
DeltaFile
+27-49clang/lib/Sema/SemaConcept.cpp
+7-30clang/lib/Sema/SemaTemplateInstantiate.cpp
+11-3clang/test/SemaTemplate/concepts-out-of-line-def.cpp
+0-9clang/include/clang/Sema/Sema.h
+0-2clang/lib/Frontend/FrontendActions.cpp
+0-2clang/include/clang/Basic/DiagnosticSemaKinds.td
+45-951 files not shown
+47-957 files

LLVM/project 38cf0f1clang/include/clang/Analysis/Analyses/LifetimeSafety LifetimeSafety.h, clang/include/clang/Basic DiagnosticSemaKinds.td

[LifetimeSafety] Diagnose invalidated-global (#197220)

Teach lifetime safety invalidation diagnostics to handle origins that
escape through global or static storage before the referenced object is
invalidated. Previously they were skipped.

Follow up of #196680
Closes https://github.com/llvm/llvm-project/issues/195706
DeltaFile
+61-0clang/test/Sema/warn-lifetime-safety-invalidations.cpp
+42-0clang/lib/Sema/SemaLifetimeSafety.h
+14-2clang/lib/Analysis/LifetimeSafety/Checker.cpp
+6-0clang/include/clang/Analysis/Analyses/LifetimeSafety/LifetimeSafety.h
+4-0clang/include/clang/Basic/DiagnosticSemaKinds.td
+127-25 files

LLVM/project 9413af0llvm/lib/Target/RISCV RISCVInstrInfoP.td RISCVISelLowering.cpp, llvm/test/CodeGen/RISCV rvp-simd-64.ll

[RISCV][P-ext] Support pabd(u).db/h. (#197332)
DeltaFile
+6-24llvm/test/CodeGen/RISCV/rvp-simd-64.ll
+10-0llvm/lib/Target/RISCV/RISCVInstrInfoP.td
+2-0llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+18-243 files

LLVM/project 98500fcllvm/lib/Target/RISCV RISCVInsertVSETVLI.cpp RISCVVSETVLIInfoAnalysis.h, llvm/test/CodeGen/RISCV/rvv sifive-xsfmm-vset-insert.mir

[RISCV] Make SFMM configuration instruction emit like VSETVLI (#196487)

Reuse the PseudoVSETVLI condition instead of its own condition.

---------

Co-authored-by: Luke Lau <luke_lau at icloud.com>
DeltaFile
+12-26llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
+2-2llvm/test/CodeGen/RISCV/rvv/sifive-xsfmm-vset-insert.mir
+4-0llvm/lib/Target/RISCV/RISCVVSETVLIInfoAnalysis.h
+18-283 files

LLVM/project f6e26cbclang/test/Instrumentor StackUsageRT.cpp StackUsageRT.json

[Instrumentor] Remove brittle clang tests for now (#197350)

This should fix https://github.com/llvm/llvm-project/pull/195378
DeltaFile
+0-60clang/test/Instrumentor/StackUsageRT.cpp
+0-54clang/test/Instrumentor/StackUsageRT.json
+0-37clang/test/Instrumentor/InstrumentorStackUsage.cpp
+0-2clang/test/Instrumentor/lit.local.cfg
+0-1534 files

LLVM/project 8edb0d9llvm/include/llvm/MC DXContainerInfo.h, llvm/lib/MC DXContainerInfo.cpp

Revert "[DirectX][ObjectYAML] Add ILDN part support" (#197348)

Reverts llvm/llvm-project#194508 due to
1. Compilation error on older cl.exe versions due to having a field
"DebugName" as a member of class "DebugName".
2. Layout violation between MC and Object
(see https://github.com/llvm/llvm-project/pull/197343).
DeltaFile
+0-64llvm/test/tools/obj2yaml/DXContainer/ILDNPart.yaml
+2-46llvm/lib/Object/DXContainer.cpp
+0-41llvm/lib/MC/DXContainerInfo.cpp
+0-36llvm/unittests/Object/DXContainerTest.cpp
+0-33llvm/unittests/ObjectYAML/DXContainerYAMLTest.cpp
+0-32llvm/include/llvm/MC/DXContainerInfo.h
+2-25211 files not shown
+2-39317 files

LLVM/project 263b78fllvm/lib/Target/RISCV/GISel RISCVInstructionSelector.cpp

[RISCV][GISel] Use getZExtValue() instead of getLimitedValue(). NFC (#196638)

The constants here should be 64 bits or less.
DeltaFile
+7-7llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
+7-71 files

LLVM/project 37a9cf4libc/src/__support/CPP bit.h, libc/src/__support/macros attributes.h

[libc][NFC] Increase minimum GCC version for `LIBC_CONSTEXPR` to 11 (#197333)
DeltaFile
+12-9libc/src/__support/CPP/bit.h
+1-1libc/src/__support/macros/attributes.h
+13-102 files

LLVM/project 9cd33f8utils/bazel/llvm-project-overlay/libc BUILD.bazel, utils/bazel/llvm-project-overlay/llvm BUILD.bazel

[libc] Port 2b2a63819f9f26d661bad5c269a03077d22ff6b4 (#197337)
DeltaFile
+506-1utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+1-0utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+507-12 files

LLVM/project 9908f7eclang/lib/Headers intrin.h, clang/test/Headers ms-intrin.cpp

[clang] Align x86 CR/DR intrinsic declarations with MSVC (#196886)

Align CR/DR and related MSR intrinsic declarations in intrin.h with
MSVC's x86/x64 signatures

Fixes #185457
DeltaFile
+45-0clang/test/Headers/ms-intrin.cpp
+14-10clang/lib/Headers/intrin.h
+59-102 files

LLVM/project 9b6e77dlibclc CMakeLists.txt

[libclc] Apply hidden visibility to amdgpu / nvptx builds (#197235)

Summary:
    This is not currently used because we force `--internalize` for
llvm-link, but if you ever want to link this normally we'd need hidden
visibility. SPIR-V does not currently handle hidden visibility, as it is
    an extension still under discussion, so it is omitted for now.
DeltaFile
+4-0libclc/CMakeLists.txt
+4-01 files

LLVM/project 4106333libclc/cmake/modules AddLibclc.cmake

[libclc] Create a static `.a` file in addition to the `.bc` file (#197247)

Summary:
This changes the libraries to be object libraries instead of static
libraries. We can then just link these into final static libraries that
contain everything we need.

The desire here is that we'd need static libraries if we wanted to move
away from `-mlink-builtin-bitcode` appraoches.

Effectively we'll have `libclc.a` next to `libclc.bc` and the idea is
that we could alternatively link it and let the target linker handle it.
DeltaFile
+43-53libclc/cmake/modules/AddLibclc.cmake
+43-531 files

LLVM/project 5aa86b7llvm/include/llvm/CodeGen MIRYamlMapping.h, llvm/lib/CodeGen MIRPrinter.cpp

[MIR] Save internal VirtRegMap state in MIR

Adds two optional fields to the per-vreg YAML record so MIR tests can
express VirtRegMap state that previously had no representation:

  registers:
    - { id: 1, class: vgpr_32, split-from: '%0', assigned-phys: '$vgpr5' }

Testing passes that consume sibling-register information (e.g.
InlineSpiller) requires constructing a VirtRegMap with split
relationships from a MIR test, which implies triggering live-range
splitting at minimum and make reproducers unnecessarily complicated.

So this change introduces a mechanism to serialize/deserialize the state
of the VirtRegMap pass.

Mechanism:
- For serialization:
  - MIRPrinter emits the new fields only when the new -mir-emit-vrm

    [16 lines not shown]
DeltaFile
+48-0llvm/lib/CodeGen/MIRParser/MIRParser.cpp
+30-8llvm/lib/CodeGen/MIRPrinter.cpp
+32-0llvm/test/CodeGen/MIR/AMDGPU/virtregmap-stash.mir
+18-0llvm/test/CodeGen/MIR/AMDGPU/virtregmap-stash-bad-phys.mir
+17-1llvm/include/llvm/CodeGen/MIRYamlMapping.h
+17-0llvm/test/CodeGen/MIR/AMDGPU/virtregmap-stash-self-split.mir
+162-95 files not shown
+221-1311 files

LLVM/project 4baa5aallvm/test/CodeGen/AMDGPU regalloc-hoist-spill-live-range-upd.ll regalloc-hoist-spill-live-range-upd.mir

[AMDGPU][test] Use mir test for regalloc issue

Use the newly introduced split-from flag to produce a more robust test case
for the hoistSpillInsideBB live-range update issue.

NFC

DeltaFile
+0-2,870llvm/test/CodeGen/AMDGPU/regalloc-hoist-spill-live-range-upd.ll
+71-0llvm/test/CodeGen/AMDGPU/regalloc-hoist-spill-live-range-upd.mir
+71-2,8702 files

LLVM/project f5069ffllvm/test/CodeGen/AMDGPU splitkit-copy-live-lanes.mir ra-inserted-scalar-instructions.mir, llvm/test/CodeGen/X86 statepoint-invoke-ra-inline-spiller.mir

[MIR] Serialize/Deserialize MachineInstr::LRSplit attribute

The LRSplit MachineInstr flag is set by SplitKit on copies inserted for
live-range splitting.
Until now the flag had no MIR-text representation.

This patch fixes that so that it gets easier to reproduce/capture issues
that involves SplitKit.

Round-trip coverage in
llvm/test/CodeGen/MIR/AMDGPU/lr-split-flag.mir.
DeltaFile
+168-168llvm/test/CodeGen/AMDGPU/splitkit-copy-live-lanes.mir
+36-36llvm/test/CodeGen/AMDGPU/ra-inserted-scalar-instructions.mir
+32-32llvm/test/CodeGen/AMDGPU/splitkit-copy-bundle.mir
+27-27llvm/test/CodeGen/AMDGPU/ran-out-of-sgprs-allocation-failure.mir
+22-22llvm/test/CodeGen/X86/statepoint-invoke-ra-inline-spiller.mir
+22-22llvm/test/CodeGen/AMDGPU/inflated-reg-class-snippet-copy-use-after-free.mir
+307-30731 files not shown
+436-40237 files

LLVM/project a770be7llvm/lib/CodeGen MachineBlockHashInfo.cpp, llvm/test/CodeGen/X86 machine-block-hash.mir

[CodeGen] Increase offset when calculating MBB hash (#196536)

Initially I was refactoring the test to not constantly update the hash
values for new GlobalISel nodes but I noticed that Offset is always zero
and assumed it should've been increased after each MBB. Fixing the
constant offset during MBB hash calculation.

---------

Co-authored-by: Vitaly Buka <vitalybuka at google.com>
DeltaFile
+4-4llvm/test/CodeGen/X86/machine-block-hash.mir
+2-1llvm/lib/CodeGen/MachineBlockHashInfo.cpp
+6-52 files

LLVM/project de4d7a0clang/include/clang/Basic DiagnosticFrontendKinds.td, clang/lib/Basic/Targets SPIR.h

[OpenCL] Allow spirv-unknown-vulkan without shader stage environment (#197144)

Fix libclc spirv-unknown-vulkan target build error: `SPIR-V target
requires a valid shader stage environment`.

libclc clspv triple was canonicalized to `spirv-unknown-vulkan` in
6ef9671. Relax the restriction for libclc which is an OpenCL library
that a specific shader stage is not made yet.
DeltaFile
+8-0clang/test/CodeGen/target-data.c
+8-0clang/test/Driver/spirv-toolchain.cl
+4-3clang/lib/Basic/Targets/SPIR.h
+2-2clang/include/clang/Basic/DiagnosticFrontendKinds.td
+1-1clang/test/Frontend/spirv-target-validation.c
+23-65 files

LLVM/project d66d8c8clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel EntityPointerLevel.cpp

remove irrelevant change
DeltaFile
+0-1clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp
+0-11 files

LLVM/project 6734c8cllvm/lib/Target/AArch64 AArch64TargetMachine.cpp AArch64TargetMachine.h

[NFC][AArch64] Extracted AArch64PassConfig::isGlobalISelOptNone (#196856)

Extracts AArch64PassConfig::isGlobalISelOptNone into a AArch64TargetMachine, as suggested in reviews for
https://github.com/llvm/llvm-project/pull/194156

This will help with NewPM porting since this functionality is required
in NewPM orchestration.
DeltaFile
+16-22llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
+7-0llvm/lib/Target/AArch64/AArch64TargetMachine.h
+23-222 files

LLVM/project 6e7bc01lldb/source/Commands CommandObjectBreakpoint.cpp, lldb/source/Target Target.cpp

Adds GetOptions to CommandObjectBreakpointOverride{List, Delete}. (#197340)

This was causing flaky behavior in TestOverridesResolver.py.

I found this with ASAN, which also didn't like that I was running find
with begin() & end() of an empty std::vector. That surprised me a bit,
but its easy to avoid, so I also changed that here.
DeltaFile
+4-0lldb/source/Commands/CommandObjectBreakpoint.cpp
+1-1lldb/source/Target/Target.cpp
+5-12 files

LLVM/project a030b24llvm/lib/Target/LoongArch/MCTargetDesc LoongArchAsmBackend.cpp, llvm/test/MC/LoongArch/Relocations sub-expr.s

[LoongArch] Use fallback path when relocation `SymA == nullptr` (#196940)

This PR adds a fallback path for `SymA == nullptr && SymB != nullptr`
relocations. This prevents a null pointer dereference when trying to
assemble such an instruction.

Related unit tests are also updated to reflect this change.

Fixes #196927.

---
**v2** (9aabcf3b49e620d1ee49e3a29d7a85adadf13580):
* Add some inline comments as suggested by @wangleiat.
DeltaFile
+6-0llvm/test/MC/LoongArch/Relocations/sub-expr.s
+5-0llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.cpp
+11-02 files