LLVM/project 769ffe9lldb/tools/lldb-dap LLDBUtils.cpp JSONUtils.cpp

[lldb-dap][NFC] Use GetStringValue helper (#199672)

I noticed some inconsistency in working with
`SBStructuredData.GetStringValue` (e.g. use `length + 1` or `length`),
so it would be better to remove that code duplication and use common
helper (`GetStringValue`) to do this routine.
DeltaFile
+12-27lldb/tools/lldb-dap/LLDBUtils.cpp
+4-7lldb/tools/lldb-dap/JSONUtils.cpp
+1-8lldb/tools/lldb-dap/DAP.cpp
+17-423 files

LLVM/project 85717daclang/include/clang/Options Options.td, clang/lib/CodeGen CGDebugInfo.cpp

[clang] Add -fno-debug-record-sysroot (#192541)

This enables excluding the absolute path to the sysroot from debug info
for reproducible builds. These fields are used by lldb, which also has
fallbacks since it's possible these paths don't exist on the machine
doing the debugging when built remotely anyways.

This was also possible using
`-fdebug-prefix-map=/path/to/Xcode.app=/some/path`
but depending on the environment you might not be able to easily pass
that with the user specific developer directory path.

Assisted by: claude
DeltaFile
+11-4clang/lib/CodeGen/CGDebugInfo.cpp
+13-0clang/test/Modules/debug-info-moduleimport.m
+12-0lldb/test/API/lang/objc/modules-auto-import/TestModulesAutoImport.py
+9-0clang/test/DebugInfo/Generic/sysroot-sdk.c
+7-0clang/include/clang/Options/Options.td
+4-0clang/lib/Driver/ToolChains/Clang.cpp
+56-42 files not shown
+60-58 files

LLVM/project 6da23bdclang/lib/Parse ParseExprCXX.cpp ParseStmt.cpp, clang/test/C/C2y n3267.c

handle edge cases with parsing
DeltaFile
+8-2clang/lib/Parse/ParseExprCXX.cpp
+7-2clang/test/C/C2y/n3267.c
+1-2clang/lib/Parse/ParseStmt.cpp
+16-63 files

FreeBSD/src c564074sys/netinet ip_divert.c

divert: Avoid using atomic_(load|store)_(acq|rel)_16

It's not implemented on some arches.  Use a plain int to count the
number of sockets in a divert lbgroup.

Reported by:    Jenkins
Fixes:          895a0ae67fe2 ("divert: Define semantics for SO_REUSEPORT_LB on divert sockets")
DeltaFile
+7-5sys/netinet/ip_divert.c
+7-51 files

LLVM/project da4f8a2mlir/docs LangRef.md, mlir/include/mlir/Dialect/SCF/IR SCFOps.td

[mlir][SCF] Allow early exit from regions via region-breaking terminators
DeltaFile
+212-74mlir/lib/Dialect/SCF/IR/SCF.cpp
+96-65mlir/include/mlir/Dialect/SCF/IR/SCFOps.td
+124-28mlir/test/Dialect/SCF/ops.mlir
+63-25mlir/test/Dialect/SCF/invalid.mlir
+31-0mlir/test/Conversion/SCFToControlFlow/convert-to-cfg-unsupported.mlir
+22-6mlir/docs/LangRef.md
+548-1983 files not shown
+570-1989 files

LLVM/project 88420b8llvm/lib/Target/AMDGPU AMDGPURegBankCombiner.cpp, llvm/test/CodeGen/AMDGPU global-saddr-load.ll

PR feedback, fix tests
DeltaFile
+24-90llvm/test/CodeGen/AMDGPU/global-saddr-load.ll
+12-14llvm/lib/Target/AMDGPU/AMDGPURegBankCombiner.cpp
+36-1042 files

LLVM/project dc91fe5llvm/lib/Target/AMDGPU AMDGPURegBankCombiner.cpp, llvm/test/CodeGen/AMDGPU/GlobalISel load-d16.ll

[AMDGPU][True16] Add regbank combiner cases to fix regression around G_SEXTLOAD
DeltaFile
+63-165llvm/test/CodeGen/AMDGPU/GlobalISel/load-d16.ll
+17-2llvm/lib/Target/AMDGPU/AMDGPURegBankCombiner.cpp
+80-1672 files

LLVM/project 2fdb200llvm/lib/Target/AMDGPU AMDGPURegBankCombiner.cpp, llvm/test/CodeGen/AMDGPU global-saddr-load.ll

PR feedback, fix tests
DeltaFile
+24-90llvm/test/CodeGen/AMDGPU/global-saddr-load.ll
+12-14llvm/lib/Target/AMDGPU/AMDGPURegBankCombiner.cpp
+36-1042 files

LLVM/project 95fcfc2llvm/lib/Target/AMDGPU AMDGPULegalizerInfo.cpp

Refactor comment, make explicit legalizer rules for True16
DeltaFile
+1-5llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
+1-51 files

LLVM/project 7ba653fllvm/lib/Target/AMDGPU AMDGPURegBankCombiner.cpp, llvm/test/CodeGen/AMDGPU/GlobalISel load-d16.ll

[AMDGPU][True16] Add regbank combiner cases to fix regression around G_SEXTLOAD
DeltaFile
+63-165llvm/test/CodeGen/AMDGPU/GlobalISel/load-d16.ll
+17-2llvm/lib/Target/AMDGPU/AMDGPURegBankCombiner.cpp
+80-1672 files

LLVM/project b08d728llvm/lib/Target/AMDGPU AMDGPULegalizerInfo.cpp

Update comment around destination reg size for clarity
DeltaFile
+5-1llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
+5-11 files

LLVM/project cf22193llvm/lib/Target/AMDGPU AMDGPULegalizerInfo.cpp

[AMDGPU][True16] Legalize extloads into 16-bit registers

Signed-off-by: Domenic Nutile <domenic.nutile at gmail.com>
DeltaFile
+2-2llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
+2-21 files

LLVM/project 2a80a9dclang/lib/Sema AnalysisBasedWarnings.cpp, clang/test/Modules safe_buffers_optout.cpp

[-Wunsafe-buffer-usage] Move warning-only analysis back to function-based (#198006)

Move the warning-only analysis back to the end of parsing each Decl.
The warning-only analysis no longer does any extra AST deserialization.
Pre-compiled code will only be analyzed once during its own compilation.
    
When `-fsafe-buffer-usage-suggestions` is used, the behavior is the
same as before, because it requires visibility of the whole
translation unit.
    
rdar://177185295

Also fix rdar://107480207 & rdar://176992568 for the warning-only case.
DeltaFile
+66-38clang/lib/Sema/AnalysisBasedWarnings.cpp
+43-49clang/test/Modules/safe_buffers_optout.cpp
+47-0clang/test/SemaCXX/warn-unsafe-buffer-usage-template-instantiation-notes.cpp
+26-13clang/test/PCH/unsafe-buffer-usage-pragma-pch-complex.cpp
+25-0clang/test/SemaCXX/warn-unsafe-buffer-usage-pragma-issue-79379.cpp
+14-5clang/test/SemaCXX/warn-unsafe-buffer-usage-pragma-pch.cpp
+221-1053 files not shown
+255-1169 files

OpenBSD/ports MW2mPrRsysutils/bacula/patches patch-src_qt-console_restore_restoretree_cpp patch-src_qt-console_job_job_cpp

   sysutils/bacula: migrate bat from Qt5 to Qt6

   - Backport Qt6 patches from Gentoo (bacula-15.0.3-qt6-gentoo.patch)
   - Fix qwt dependency: build-only header dep, remove runtime lib linkage
   - Update HOMEPAGE to https

   Feedback sthen@
VersionDeltaFile
1.1+100-0sysutils/bacula/patches/patch-src_qt-console_restore_restoretree_cpp
1.1+77-0sysutils/bacula/patches/patch-src_qt-console_job_job_cpp
1.1+49-0sysutils/bacula/patches/patch-src_qt-console_tray-monitor_task_cpp
1.33+26-6sysutils/bacula/patches/patch-configure
1.1+32-0sysutils/bacula/patches/patch-src_qt-console_help_help_cpp
1.1+29-0sysutils/bacula/patches/patch-src_qt-console_run_run_cpp
+313-624 files not shown
+722-1930 files

LLVM/project 09709d7.github/workflows libc-shared-tests.yml

[Github] Pin container image reference in libc-shared-tests (#199737)

Pinned to the image used in the last successful workflow run.

Introduced in c32de3e3759c3368978535e4ff4fb83323219fb0.
DeltaFile
+2-2.github/workflows/libc-shared-tests.yml
+2-21 files

LLVM/project 3111195lldb/source/Host/common Socket.cpp, lldb/source/Host/posix DomainSocket.cpp

[lldb] Set SO_NOSIGPIPE on platforms that support it (#198044)

On macOS, I've seen instances where debugserver goes down very quickly
after it starts up (less than 100ms). Normally, LLDB is able to detect
when debugserver goes down and report it without bringing down the
entire debug session. However that's not happening here. My best guess
is that debugserver is going down before LLDB is ready to react to it.

To mitigate this scenario, adopt SO_NOSIGPIPE. Note that this mostly
matters for tools that embed liblldb. The LLDB driver ignores all
SIGPIPEs.

rdar://173516461
DeltaFile
+33-0lldb/unittests/Host/SocketTest.cpp
+11-1lldb/source/Host/common/Socket.cpp
+10-0lldb/source/Host/posix/DomainSocket.cpp
+54-13 files

OpenBSD/ports 5wqxqBDemulators/dolphin Makefile

   dolphin: point HOMEPAGE to dolphin-emu.org.
VersionDeltaFile
1.28+3-1emulators/dolphin/Makefile
+3-11 files

LLVM/project 9ec4c66llvm/docs AMDGPUUsage.rst, llvm/lib/IR Type.cpp

[AMDGPU] Lay groundwork for stridemark type / addrspace(9) via sgep (#198930)

This commit introduces and documents the `amdgpu.stridemark` target
type, which is used to express when a structured.gep intrinsic is being
used to increment/decrement the index part of a `ptr addrspace(9)` (as
opposed to GEP, which manipulates the offset part)

Future PRs will add inbounds/nusw/nuw support to structured GEP to
enable more efficient code generation and then will implement a lowering
of these structured GEPs to struct.buffer intrinsics.
DeltaFile
+40-1llvm/docs/AMDGPUUsage.rst
+17-0llvm/test/Verifier/amdgpu-stridemark-structured-gep.ll
+15-0llvm/test/Verifier/amdgpu-stridemark-tokenlike.ll
+10-0llvm/test/Assembler/target-type-param-errors.ll
+8-0llvm/lib/IR/Type.cpp
+7-0llvm/test/Verifier/structured-gep-indices-bad.ll
+97-16 files

FreeBSD/ports d81083blang/python310 distinfo, lang/python311 distinfo

lang/python31{0,1,2}: reroll PATCHFILES after repository growth

Each commit checksum now shows one additional character, but the
diff contents are identical.

PR: 295595
(cherry picked from commit 4b4b105e82c91455a47ca32c79525a88a60b8616)
DeltaFile
+5-5lang/python311/distinfo
+5-5lang/python312/distinfo
+3-3lang/python310/distinfo
+13-133 files

LLVM/project da57dc9llvm/lib/Target/AMDGPU AMDGPULegalizerInfo.cpp AMDGPURegBankLegalizeRules.cpp, llvm/test/CodeGen/AMDGPU flat-saddr-load.ll global-saddr-load.ll

[AMDGPU][True16] Legalize extloads into 16-bit registers (#198670)

<sub>Stack created with <a
href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a
href="https://gh.io/stacks-feedback">Give Feedback 💬</a></sub>

Stack PRs:
https://github.com/llvm/llvm-project/pull/198669
https://github.com/llvm/llvm-project/pull/198671

See https://github.com/llvm/llvm-project/pull/195289 for previous
discussion

---------

Signed-off-by: Domenic Nutile <domenic.nutile at gmail.com>
Co-authored-by: Domenic Nutile <domenic.nutile at amd.com>
DeltaFile
+165-63llvm/test/CodeGen/AMDGPU/GlobalISel/load-d16.ll
+80-38llvm/test/CodeGen/AMDGPU/flat-saddr-load.ll
+90-24llvm/test/CodeGen/AMDGPU/global-saddr-load.ll
+21-13llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
+6-9llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-sextload-s16-true16.mir
+7-2llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp
+369-1496 files

FreeBSD/ports 4b4b105lang/python310 distinfo, lang/python311 distinfo

lang/python31{0,1,2}: reroll PATCHFILES after repository growth

Each commit checksum now shows one additional character, but the
diff contents are identical.

PR: 295595
DeltaFile
+5-5lang/python311/distinfo
+5-5lang/python312/distinfo
+3-3lang/python310/distinfo
+13-133 files

OpenBSD/ports TLFp5xgeditors/focuswriter distinfo Makefile

   Update focuswriter to 1.8.13.
VersionDeltaFile
1.20+2-2editors/focuswriter/distinfo
1.39+1-2editors/focuswriter/Makefile
+3-42 files

LLVM/project 196c701mlir/include/mlir/Dialect/MemRef/Transforms Transforms.h Passes.td, mlir/include/mlir/Dialect/Utils StaticValueUtils.h

[mlir][MemRef] Move FlattenMemRefs to interfaces (#198625)

Use IndexedAccessOpInterface for indexed memory operations and
VectorTransferOpInterface update methods for vector transfers ops. Add
an IndexedMemCopyOpInterface-based flattening pattern for DMA-like
operations.

This gets rid of the hardcoded operation list in the patterns, allowing
dialects like AMDGPU to transparently work with memref flattening.

As a consequence, the specialized vector- and memref-dialect only
constructors that only load a subset of the flattening patterns are
removed.

Also adds a max() method to SaturatedInteger because it was useful for
computing the size of a flat memref.

---------

Co-authored-by: Codex <codex at openai.com>
DeltaFile
+226-142mlir/lib/Dialect/MemRef/Transforms/FlattenMemRefs.cpp
+68-1mlir/test/Dialect/MemRef/flatten_memref.mlir
+6-0mlir/include/mlir/Dialect/Utils/StaticValueUtils.h
+2-4mlir/include/mlir/Dialect/MemRef/Transforms/Transforms.h
+2-2mlir/test/Dialect/Vector/flatten-memref-and-emulate-narrow-types.mlir
+1-2mlir/include/mlir/Dialect/MemRef/Transforms/Passes.td
+305-1511 files not shown
+306-1527 files

LLVM/project 288273fclang/include/clang/Serialization ASTRecordReader.h, clang/lib/AST ASTContext.cpp Type.cpp

trivial changes
DeltaFile
+20-14clang/lib/Sema/SemaOpenMP.cpp
+18-14clang/lib/AST/ASTContext.cpp
+16-15clang/lib/Sema/SemaTemplate.cpp
+14-11clang/lib/AST/Type.cpp
+14-8clang/lib/AST/ASTDiagnostic.cpp
+11-6clang/include/clang/Serialization/ASTRecordReader.h
+93-6833 files not shown
+202-15239 files

LLVM/project bd09e65clang/include/clang/AST ASTContext.h, clang/lib/AST ASTContext.cpp ItaniumMangle.cpp

[clang] implement CWG2064: ignore value dependence for decltype

The 'decltype' for a value-dependent (but non-type-dependent) should be known,
so this patch makes them non-opaque instead.

This patch also implements what's neceessary to allow overloading
on pure differences in instantiation dependence, making `std::void_t`
usable for SFINAE purposes.

This also readds a few test cases from da98651, which was a previous attempt
at resolving CWG2064.

Fixes #8740
Fixes #61818
Fixes #190388
DeltaFile
+888-161clang/lib/AST/ASTContext.cpp
+328-12clang/test/SemaTemplate/instantiation-dependence.cpp
+178-96clang/lib/AST/ItaniumMangle.cpp
+100-98clang/lib/Sema/SemaCXXScopeSpec.cpp
+62-57clang/lib/AST/Type.cpp
+88-11clang/include/clang/AST/ASTContext.h
+1,644-43569 files not shown
+2,381-79575 files

LLVM/project 041c5e0llvm/lib/Transforms/Vectorize VPlanRecipes.cpp

[VPlan] Add missing maybe_unsused to OpTy (NFC). (#199734)

This fixes a warning when building w/o assertions.

https://lab.llvm.org/buildbot/#/builders/228/builds/76
DeltaFile
+1-1llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+1-11 files

LLVM/project ae0dc31flang/include/flang/Semantics openmp-utils.h, flang/lib/Semantics openmp-utils.cpp

[flang][OpenMP] Make `iv` const-reference to original parser::Name (#199727)

Merging since this is a trivial change.
DeltaFile
+5-5flang/lib/Semantics/openmp-utils.cpp
+1-1flang/include/flang/Semantics/openmp-utils.h
+6-62 files

LLVM/project e925643flang/lib/Semantics check-omp-structure.cpp, flang/test/Semantics/OpenMP declare-simd-interface-body.f90 linear-clause03.f90

[flang][OpenMP] Warn that declare simd in an interface body has no effect (#199248)

Follow-up to the crash fix for #192581. A DECLARE SIMD directive may
legally appear in the specification part of an interface body, but it
applies to the external procedure being declared rather than to any
definition in this compilation. Flang does not propagate the directive
to callers, so it has no effect and is silently dropped during lowering.

Detect this in semantics by checking whether the program unit containing
the directive is an interface body (SubprogramDetails::isInterface())
and emit an -Wopenmp-usage warning so the user knows the directive is
ignored.

Updates #192581
DeltaFile
+29-0flang/test/Semantics/OpenMP/declare-simd-interface-body.f90
+13-0flang/lib/Semantics/check-omp-structure.cpp
+1-0flang/test/Semantics/OpenMP/linear-clause03.f90
+43-03 files

LLVM/project 4bc1cd9.github/workflows release-binaries.yml

workflows/release-binaries: Fix yaml error (#199735)

This was introduced by: 25294a2fffcf40cbd8b6743d78524badeded7446
DeltaFile
+5-5.github/workflows/release-binaries.yml
+5-51 files

FreeNAS/freenas dfb5ea4src/middlewared/middlewared/etc_files/webshare config.json.py, src/middlewared/middlewared/plugins etc.py

Fix webshare config files not being generated

(cherry picked from commit 2e180e0e5cc7ad9dc0032fa9d295ce2472ffb2c0)
(cherry picked from commit 4c3825cb7a8ca6f2f654d8d954a8751108332f5d)
DeltaFile
+28-3src/middlewared/middlewared/plugins/etc.py
+2-2src/middlewared/middlewared/etc_files/webshare/config.json.py
+30-52 files