LLVM/project 17efc66utils/bazel/llvm-project-overlay/lldb/source/Plugins BUILD.bazel

[Bazel] Fixes 739bf5e (#212885)

This fixes 739bf5e18d9df470c540c5c61f086c95ae5aa370 (#212516).

Buildkite error link:
https://buildkite.com/llvm-project/upstream-bazel/builds?commit=739bf5e18d9df470c540c5c61f086c95ae5aa370

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+2-0utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
+2-01 files

FreeBSD/ports bd44c93chinese/ibus-array pkg-plist distinfo, chinese/ibus-array/files patch-data_cin2sqlite.py patch-data_updatePhrase.py

chinese/ibus-array: Update 0.2.2.20230502 => 0.3.2

Changelogs:
- https://github.com/lexical/ibus-array/releases/tag/release-0.2.3
- https://github.com/lexical/ibus-array/releases/tag/release-0.3.0
- https://github.com/lexical/ibus-array/releases/tag/release-0.3.2
Commit log:
https://github.com/lexical/ibus-array/compare/06146c5...5868d7e

PR:             296954
Reported by:    Jia-Shiun Li <jiashiun at gmail.com> (maintainer)
Approved by:    osa, vvd (Mentors, implicit)
DeltaFile
+10-18chinese/ibus-array/Makefile
+11-0chinese/ibus-array/files/patch-data_cin2sqlite.py
+11-0chinese/ibus-array/files/patch-data_updatePhrase.py
+11-0chinese/ibus-array/files/patch-data_updateShortcode.py
+1-5chinese/ibus-array/pkg-plist
+3-3chinese/ibus-array/distinfo
+47-266 files

LLVM/project c306df0llvm/lib/Target/AMDGPU SIInstructions.td SIISelLowering.cpp

[AMDGPU] Rename packed 64-bit features to include SingleSGPR. NFCI.
DeltaFile
+9-9llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
+12-6llvm/lib/Target/AMDGPU/AMDGPU.td
+8-8llvm/lib/Target/AMDGPU/VOP3PInstructions.td
+4-4llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
+2-2llvm/lib/Target/AMDGPU/SIInstructions.td
+2-2llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+37-313 files not shown
+43-339 files

LLVM/project 1b161aaclang/include/clang/Basic HLSLIntrinsics.td, clang/test/CodeGenHLSL/builtins cross.hlsl

[HLSL] Move cross implementation to header files (#211446)

This patch removes the previous implementation of cross; instead, it
adds a new one inside the header files.

Fix: https://github.com/llvm/llvm-project/issues/135425

Assisted by: Claude Opus 4.8

---------

Co-authored-by: Joao Saffran <jderezende at microsoft.com>
DeltaFile
+51-25clang/test/CodeGenHLSL/builtins/cross.hlsl
+0-56llvm/test/CodeGen/DirectX/cross.ll
+7-39clang/test/SemaHLSL/BuiltIns/cross-errors.hlsl
+21-24clang/include/clang/Basic/HLSLIntrinsics.td
+0-39llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp
+0-33llvm/test/CodeGen/SPIRV/hlsl-intrinsics/cross.ll
+79-2167 files not shown
+87-25013 files

LLVM/project 5c49c5fllvm/test/TableGen RuntimeLibcallEmitter-conflict-warning.td RuntimeLibcallEmitter-multiple-impls.td, llvm/utils/TableGen/Basic RuntimeLibcallsEmitter.cpp

RuntimeLibcalls: Emit all available impls for a libcall, not just one (#210915)

The intent is RuntimeLibcalls should represent all functions that are
callable from the module, which may have contextually selectable
alternatives. Previously we had this warning since there was no mechanism 
to select which one you want, and as a workaround the library call sets avoided 
adding the variants which should nto be selected.

Now targets can use initLibcallLoweringInfo, so remove the warning to
unblock more libcall cleanups. Eventually initLibcallLoweringInfo should also 
be tablegen driven.

Co-authored-by: Claude (Claude-Opus-4.8) <noreply at anthropic.com>
DeltaFile
+102-0llvm/test/TableGen/RuntimeLibcallEmitter-multiple-impls.td
+0-101llvm/test/TableGen/RuntimeLibcallEmitter-conflict-warning.td
+3-25llvm/utils/TableGen/Basic/RuntimeLibcallsEmitter.cpp
+105-1263 files

LLVM/project a78b13cclang/lib/CodeGen CGHLSLRuntime.h

small note
DeltaFile
+2-3clang/lib/CodeGen/CGHLSLRuntime.h
+2-31 files

LLVM/project 01f4aa9clang/include/clang/DependencyScanning DependencyScanningWorker.h DependencyScannerImpl.h, clang/lib/DependencyScanning CMakeLists.txt DependencyScanningWorker.cpp

Move implementation details to DependencyScanningWorker.cpp and dissolve DependencyScannerImpl.h/cpp.
DeltaFile
+0-525clang/lib/DependencyScanning/DependencyScannerImpl.cpp
+488-1clang/lib/DependencyScanning/DependencyScanningWorker.cpp
+0-122clang/include/clang/DependencyScanning/DependencyScannerImpl.h
+12-2clang/include/clang/DependencyScanning/DependencyScanningWorker.h
+0-1clang/lib/Tooling/DependencyScanningTool.cpp
+0-1clang/lib/DependencyScanning/CMakeLists.txt
+500-6523 files not shown
+501-6549 files

LLVM/project 1183534clang/include/clang/DependencyScanning DependencyScannerImpl.h

Use CompilerInstanceWithContext for TU scanning.
DeltaFile
+33-0clang/include/clang/DependencyScanning/DependencyScannerImpl.h
+33-01 files

LLVM/project 20428daclang/include/clang/DependencyScanning DependencyScannerImpl.h, clang/lib/DependencyScanning DependencyScannerImpl.cpp DependencyScanningWorker.cpp

Use CompilerInstanceWithContext for TU scanning.
DeltaFile
+315-38clang/lib/DependencyScanning/DependencyScanningWorker.cpp
+0-293clang/lib/DependencyScanning/DependencyScannerImpl.cpp
+35-0clang/unittests/Tooling/DependencyScannerTest.cpp
+0-27clang/include/clang/DependencyScanning/DependencyScannerImpl.h
+1-0clang/test/ClangScanDeps/logging-simple.c
+351-3585 files

LLVM/project 8d08fb9clang/include/clang/DependencyScanning DependencyScanningWorker.h, clang/include/clang/Tooling DependencyScanningTool.h

Relocate CompilerInstanceWithContext to DependencyScanningWorker.cpp and hide it as an implementation detail.
DeltaFile
+252-0clang/lib/DependencyScanning/DependencyScanningWorker.cpp
+4-209clang/lib/Tooling/DependencyScanningTool.cpp
+0-75clang/include/clang/Tooling/DependencyScanningTool.h
+22-5clang/include/clang/DependencyScanning/DependencyScanningWorker.h
+278-2894 files

LLVM/project 0627379clang/include/clang/DependencyScanning DependencyConsumer.h DependencyScannerImpl.h, clang/include/clang/Tooling DependencyScanningTool.h

Implement the streaming style by-name scanning API.
DeltaFile
+43-89clang/lib/Tooling/DependencyScanningTool.cpp
+39-56clang/tools/clang-scan-deps/ClangScanDeps.cpp
+15-59clang/include/clang/Tooling/DependencyScanningTool.h
+0-14clang/include/clang/DependencyScanning/DependencyScannerImpl.h
+1-3clang/test/ClangScanDeps/modules-full-by-mult-mod-names-diagnostics.c
+2-0clang/include/clang/DependencyScanning/DependencyConsumer.h
+100-2216 files

LLVM/project f0f0dacclang/include/clang/Tooling DependencyScanningTool.h, clang/lib/Tooling DependencyScanningTool.cpp

Extracting a driver-free CompilerInstaneWithContext initializer.
DeltaFile
+20-12clang/lib/Tooling/DependencyScanningTool.cpp
+21-3clang/include/clang/Tooling/DependencyScanningTool.h
+41-152 files

LLVM/project 316a296clang/test/ClangScanDeps canonicalize-macros-multiarch.c

[clang][DependencyScanning] Adding a Multiarch clang-scan-deps Test (#211404)

This test adds coverage of multiarch scanning command macro
canonicalization.

---

<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>
DeltaFile
+24-0clang/test/ClangScanDeps/canonicalize-macros-multiarch.c
+24-01 files

LLVM/project 20fd948clang/test/ClangScanDeps modules-async-scan.c

[clang][DependencyScanning] Adding a test that exercies the async-scanning code path (#211402)

This PR adds a test that exercises the async-scanning code path to
sanity check that async-scanning generates identical results as TU
scanning.

---

<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>
DeltaFile
+65-0clang/test/ClangScanDeps/modules-async-scan.c
+65-01 files

LLVM/project 1842e2dclang/lib/Basic/Targets OSTargets.h, clang/test/Sema darwin-tls.c

[clang][darwin] Firmware needs to support thread local storage (#212657)

rdar://182496170
DeltaFile
+2-0clang/lib/Basic/Targets/OSTargets.h
+1-0clang/test/Sema/darwin-tls.c
+3-02 files

LLVM/project 4262438clang/lib/CodeGen CGHLSLRuntime.cpp

clang format
DeltaFile
+3-5clang/lib/CodeGen/CGHLSLRuntime.cpp
+3-51 files

LLVM/project be246a4clang/lib/CodeGen CGHLSLRuntime.h CGHLSLRuntime.cpp, clang/test/CodeGenHLSL/semantics semantic.array.output.hlsl semantic.array.hlsl

correct intrin calls
DeltaFile
+149-26clang/lib/CodeGen/CGHLSLRuntime.cpp
+7-4clang/test/CodeGenHLSL/semantics/semantic.array.hlsl
+4-1clang/test/CodeGenHLSL/semantics/semantic.array.output.hlsl
+3-0clang/lib/CodeGen/CGHLSLRuntime.h
+163-314 files

LLVM/project a264203clang/test/CodeGenHLSL/semantics semantic.input.hlsl semantic.output.hlsl

add test cases
DeltaFile
+58-0clang/test/CodeGenHLSL/semantics/semantic.output.hlsl
+55-0clang/test/CodeGenHLSL/semantics/semantic.input.hlsl
+113-02 files

LLVM/project 6654b0bclang/lib/CodeGen CGHLSLRuntime.h CGHLSLRuntime.cpp, clang/test/CodeGenHLSL/semantics semantic.array.output.hlsl semantic.array.hlsl

assign semantic ids in parse order
DeltaFile
+6-7clang/lib/CodeGen/CGHLSLRuntime.cpp
+3-6clang/test/CodeGenHLSL/semantics/semantic.array.hlsl
+1-4clang/test/CodeGenHLSL/semantics/semantic.array.output.hlsl
+5-0clang/lib/CodeGen/CGHLSLRuntime.h
+15-174 files

LLVM/project 633294bclang/lib/CodeGen CGHLSLRuntime.cpp, clang/test/CodeGenHLSL/semantics semantic.struct.output.hlsl semantic.arbitrary.hlsl

remove operands
DeltaFile
+12-8llvm/include/llvm/IR/IntrinsicsDirectX.td
+4-7clang/lib/CodeGen/CGHLSLRuntime.cpp
+6-3clang/test/CodeGenHLSL/semantics/semantic.array.output.hlsl
+6-3clang/test/CodeGenHLSL/semantics/semantic.array.hlsl
+3-3clang/test/CodeGenHLSL/semantics/semantic.arbitrary.hlsl
+2-2clang/test/CodeGenHLSL/semantics/semantic.struct.output.hlsl
+33-267 files not shown
+42-3513 files

LLVM/project 739bf5elldb/source/Plugins/ObjectFile/wasm WasmAddress.h ObjectFileWasm.cpp, lldb/source/Plugins/Process/wasm ProcessWasm.h ProcessWasm.cpp

[lldb] Add support for Wasm globals (#212516)

WebAssembly globals are not addressable: they live in an index space of
their own and hold values (rather than bytes) in the module, or need to
be read from the runtime.

Give them a synthetic address space in which an address holds the global
index where it would otherwise hold an offset, and a section spanning
that index space so a global becomes a symbol. With a process, a read of
such an address asks the engine over qWasmGlobal. Without one, the
object file serves the initializer, which is all that is known before
the module is instantiated.

The section is based in a range of its own rather than at zero. Code and
linear memory are both addressed from zero, so a global index would
otherwise name a code or data address as well.

The import section now parses each import descriptor by kind, because
the global index space includes imported globals and finding the next
import means knowing the shape of the current one.
DeltaFile
+248-35lldb/source/Plugins/ObjectFile/wasm/ObjectFileWasm.cpp
+162-0lldb/test/Shell/ObjectFile/wasm/wasm-globals.yaml
+87-0lldb/source/Plugins/ObjectFile/wasm/WasmAddress.h
+77-0lldb/test/API/functionalities/gdb_remote_client/TestWasm.py
+45-1lldb/source/Plugins/Process/wasm/ProcessWasm.cpp
+7-29lldb/source/Plugins/Process/wasm/ProcessWasm.h
+626-655 files not shown
+653-6511 files

LLVM/project 738cbf1compiler-rt/lib/scudo/standalone combined.h primary32.h, compiler-rt/lib/scudo/standalone/tests primary_test.cpp combined_test.cpp

[scudo] Fix all deadlocks with condition code variables. (#212604)

Added a ScopedFLLock that automatically handles notify calls if there
are waiters. Replace all ScopedLock of FLLock with this new
ScopedFLLock. Updated the enable function to properly notify FLLock
waiters if necessary.

Added a new function for re-enabling in the child process after a fork
to clear the variables used by the condition code.
DeltaFile
+105-54compiler-rt/lib/scudo/standalone/primary64.h
+8-4compiler-rt/lib/scudo/standalone/wrappers_c.cpp
+5-5compiler-rt/lib/scudo/standalone/tests/combined_test.cpp
+3-2compiler-rt/lib/scudo/standalone/primary32.h
+2-2compiler-rt/lib/scudo/standalone/combined.h
+1-1compiler-rt/lib/scudo/standalone/tests/primary_test.cpp
+124-686 files

LLVM/project 4e4bdb1llvm/include/llvm/IR RuntimeLibcalls.td, llvm/lib/Target/ARM ARMSubtarget.cpp

ARM: Mark more generic libgcc functions as available

Generic libgcc/compiler-rt functions coexist with aeabi variants
(e.g., __divsi3  and __aeabi_idiv) according to my reading of the
build. At least in compiler-rt, they are aliases (such that I'm not sure
what the point of ever emitting the __aeabi name is).

They were previously removed from the available set on AEABI+AAPCS targets
to force selection of the preferred __aeabi_* variants, back when
only one implementation per libcall could be recorded.

Now that multiple implementations can be available per libcall, stop hiding
the generics and select the __aeabi_* variant explicitly as the preferred
implemntation. This reduces the number of special cases to consider for
future libcalls info improvements.

Co-authored-by: Claude (Claude-Opus-4.8) <noreply at anthropic.com>
DeltaFile
+62-0llvm/lib/Target/ARM/ARMSubtarget.cpp
+1-7llvm/include/llvm/IR/RuntimeLibcalls.td
+63-72 files

LLVM/project c685715llvm/include/llvm/IR RuntimeLibcalls.td, llvm/lib/Target/Hexagon HexagonSubtarget.h HexagonSubtarget.cpp

Hexagon: Stop excluding some generic compiler-rt functions from libcalls

RuntimeLibcalls should indicate any function that exists and is callable.
Historically the list of library functions was conflated with the library
functions which should be used, so the library definition was complicated
by excluding the overridden cases. My reading of the compiler-rt sources is
that the generically named functions are built alongside the __hexagon
prefixed variants. e.g., __divsi3 and __hexagon_divsi3 both exist.

It will simplify future libcall work the fewer special case target exclusions
there are, so allow the functions to be defined and apply the selection
preference for the __hexagon prefixed versions in LibcallLoweringInfo.

I do question why compiler-rt is built this way; why doesn't the hexagon
just replace the standard entrypoint names with the target implementations?

Co-authored-by: Claude (Claude-Opus-4.8) <noreply at anthropic.com>
DeltaFile
+29-0llvm/lib/Target/Hexagon/HexagonSubtarget.cpp
+5-4llvm/include/llvm/IR/RuntimeLibcalls.td
+3-0llvm/lib/Target/Hexagon/HexagonSubtarget.h
+37-43 files

LLVM/project 6069ad1llvm/test/TableGen RuntimeLibcallEmitter-multiple-impls.td

reduce-comment
DeltaFile
+2-4llvm/test/TableGen/RuntimeLibcallEmitter-multiple-impls.td
+2-41 files

LLVM/project f3159b9llvm/test/Transforms/SLPVectorizer/RISCV external.ll

[SLP] Precommit test for deferred extracts (#212658)

Tests for #211680.
DeltaFile
+103-0llvm/test/Transforms/SLPVectorizer/RISCV/external.ll
+103-01 files

LLVM/project 1d894edllvm/test/MC/MachO target-triple.s target-triple-padding.s, llvm/test/Object/Inputs macho-invalid-target-triple-name_toobig.yaml macho-invalid-target-triple-name_offset-toosmall.yaml

[llvm][macho][test] Fix failing target triple tests (#212876)

`llvm-mc -triple arm64-*` requires aarch64-registered-target.
DeltaFile
+1-1llvm/test/Object/Inputs/macho-invalid-target-triple-name_toobig.yaml
+1-1llvm/test/Object/Inputs/macho-invalid-target-triple-name_offset-toosmall.yaml
+2-0llvm/test/MC/MachO/target-triple.s
+2-0llvm/test/MC/MachO/target-triple-padding.s
+6-24 files

FreeBSD/ports ca2718etextproc/py-parso Makefile distinfo

textproc/py-parso: Updated to 0.8.7

Changes: https://github.com/davidhalter/parso/blob/master/CHANGELOG.rst
DeltaFile
+3-3textproc/py-parso/distinfo
+1-2textproc/py-parso/Makefile
+4-52 files

LLVM/project 40e84f3llvm/include/llvm/IR RuntimeLibcalls.td, llvm/lib/Target/MSP430 MSP430Subtarget.cpp

MSP430: Mark more generic libgcc functions as available (#210962)

The generic soft-float, conversion, comparison and integer helper
routines (__addsf3, __divli's __divsi3, __ashlsi3, ...) exist in the MSP430
libgcc port alongside the preferred __mspabi_* variants. They were previously
removed to force selection of the __mspabi_* names, back when only one
implementation per libcall could be recorded.

Stop hiding them: only __lshrsi3 stays excluded, since the MSP430 libgcc
port provides the 32-bit logical right shift solely under __mspabi_srll and
never defines a generic __lshrsi3.

Co-authored-by: Claude (Claude-Opus-4.8) <noreply at anthropic.com>
DeltaFile
+67-0llvm/lib/Target/MSP430/MSP430Subtarget.cpp
+4-11llvm/include/llvm/IR/RuntimeLibcalls.td
+71-112 files

LLVM/project 485d097llvm/test/TableGen RuntimeLibcallEmitter-conflict-warning.td RuntimeLibcallEmitter-multiple-impls.td, llvm/utils/TableGen/Basic RuntimeLibcallsEmitter.cpp

RuntimeLibcalls: Emit all available impls for a libcall, not just one

The intent is RuntimeLibcalls should represent all functions that are
callable from the module, which may have contextually selectable alternatives.
Previously we had this warning since there was no mechanism to select which
one you want, and as a workaround the library call sets avoided adding the
variants which should nto be selected.

Now targets can use initLibcallLoweringInfo, so remove the warning to unblock
more libcall cleanups. Eventually initLibcallLoweringInfo should also be tablegen
driven.

Co-authored-by: Claude (Claude-Opus-4.8) <noreply at anthropic.com>
DeltaFile
+104-0llvm/test/TableGen/RuntimeLibcallEmitter-multiple-impls.td
+0-101llvm/test/TableGen/RuntimeLibcallEmitter-conflict-warning.td
+3-25llvm/utils/TableGen/Basic/RuntimeLibcallsEmitter.cpp
+107-1263 files