LLVM/project 1578bc6llvm/include/llvm/MC TargetRegistry.h MCAsmInfo.h, llvm/lib/MC MCContext.cpp MCObjectStreamer.cpp

[MC] Move MCTargetOptions pointer from MCContext to MCAsmInfo (#180464)

Except MC-internal `MCAsmInfo()` uses, MCAsmInfo is always constructed
with `const MCTargetOptions &` via `TargetRegistry::createMCAsmInfo`
(https://reviews.llvm.org/D41349). Store the pointer in MCAsmInfo and
change `MCContext::getTargetOptions()` to retrieve it from there,
removing the `MCTargetOptions const *TargetOptions` member from
MCContext.

MCContext's constructor still accepts an MCTargetOptions parameter
for now but is often omitted by call sites.
A subsequent change will remove this parameter and update all callers.
DeltaFile
+15-11llvm/lib/MC/MCContext.cpp
+7-1llvm/unittests/CodeGen/MFCommon.inc
+3-5llvm/lib/MC/MCObjectStreamer.cpp
+3-4llvm/lib/MC/ELFObjectWriter.cpp
+5-1llvm/include/llvm/MC/TargetRegistry.h
+5-0llvm/include/llvm/MC/MCAsmInfo.h
+38-226 files not shown
+50-2712 files

LLVM/project 5099f16clang/include/clang/ScalableStaticAnalysisFramework/Core/Serialization SerializationFormat.h, clang/lib/ScalableStaticAnalysisFramework/Core/Serialization/JSONFormat WPASuite.cpp

[clang][ssaf] Add JSONFormat support for WPASuite (#187403)

This patch adds `JSONFormat` serialization support for `WPASuite`.

- Adds `readWPASuite` / `writeWPASuite` to the `SerializationFormat`
abstract interface and implements them in `JSONFormat`.
- Introduces `AnalysisResultRegistryGenerator`, a per-format plugin
registry template in `SerializationFormat`, allowing analysis authors to
register (de)serializers for their `AnalysisResult` subtypes with a
single static declaration.
- Extends `PrivateFieldNames.def` with `WPASuite::Data` and
`WPASuite::IdTable`, and adds a `makeWPASuite()` factory to
`SerializationFormat`, so deserialization code can construct a
`WPASuite` incrementally through the same access-controlled pattern
used for all other SSAF data structures.
DeltaFile
+212-0clang/lib/ScalableStaticAnalysisFramework/Core/Serialization/JSONFormat/WPASuite.cpp
+197-0clang/lib/ScalableStaticAnalysisFramework/Plugins/ExamplePlugin/PairsAnalysis.cpp
+160-0clang/lib/ScalableStaticAnalysisFramework/Plugins/ExamplePlugin/TagsAnalysis.cpp
+136-0clang/lib/ScalableStaticAnalysisFramework/Plugins/ExamplePlugin/TagsPairsAnalysis.cpp
+136-0clang/include/clang/ScalableStaticAnalysisFramework/Core/Serialization/SerializationFormat.h
+132-0clang/test/Analysis/Scalable/ssaf-format/WPASuite/with-plugin.test
+973-041 files not shown
+1,685-447 files

LLVM/project 0806ccellvm/lib/CodeGen/SelectionDAG LegalizeIntegerTypes.cpp

[LegalizeTypes] Remove stray slash from comment. NFC (#190900)
DeltaFile
+1-1llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
+1-11 files

LLVM/project 0584d0aclang/include/clang/Basic DiagnosticSemaKinds.td DiagnosticGroups.td, clang/lib/Sema SemaChecking.cpp

[Clang][HIP] Deprecate __hip_atomic_* builtins (#189897)

Emit deprecation warnings for all __hip_atomic_* builtins,
pointing users to their __scoped_atomic_* equivalents.

The warning is ignored by default, and can be enabled with
-Whip-deprecated-builtins. It will be turned on by default eventually
after we have cleaned up all ROCm/HIP headers and put a deprecation
schedule in place.

Also provide a fixit when the scope is a compile-time constant and there
is a direct mapping from the HIP builtin to a Clang builtin. The
compare_exchange builtins differ in how they accept the desired value,
so only a warning (without a fixit) is emitted for those.

This makes #185408 almost redundant for HIP, since the HIP scopes
themselves will disappear once the `__hip_*` builtins are gone. OpenCL
is different because the language itself specifies an enum. A simpler
version of #185408 can be used to emit a warning when Sema recognizes

    [2 lines not shown]
DeltaFile
+88-0clang/lib/Sema/SemaChecking.cpp
+58-0clang/test/SemaHIP/atomic-deprecated.hip
+38-0clang/test/CodeGenHIP/atomic-deprecated-fixit.hip
+3-0clang/include/clang/Basic/DiagnosticSemaKinds.td
+1-0clang/include/clang/Basic/DiagnosticGroups.td
+188-05 files

LLVM/project 24c7bafllvm/lib/Target/SPIRV SPIRVCallLowering.cpp, llvm/test/CodeGen/SPIRV/llvm-intrinsics bitreverse_small_type.ll

[SPIR-V] Fix sub-byte argument type mismatch in call lowering (#189893)

Remove the `MRI->setType()` call in lowerFormalArguments that was
overriding the vreg LLT with the SPIR-V type's LLT, causing a type
mismatch when sub-byte integer arguments (e.g. i2, i4) were preliminary
widened to i8

related to https://github.com/llvm/llvm-project/issues/188703
DeltaFile
+0-35llvm/test/CodeGen/SPIRV/transcoding/OpBitReverse-subbyte.ll
+32-3llvm/test/CodeGen/SPIRV/llvm-intrinsics/bitreverse_small_type.ll
+0-30llvm/test/CodeGen/SPIRV/transcoding/OpBitReverse_i2.ll
+22-0llvm/test/CodeGen/SPIRV/transcoding/subbyte-arg-type-mismatch.ll
+0-1llvm/lib/Target/SPIRV/SPIRVCallLowering.cpp
+54-695 files

LLVM/project 0f1718ellvm/lib/Target/AMDGPU SIInsertWaitcnts.cpp, llvm/test/CodeGen/AMDGPU asyncmark-gfx12plus.ll

[AMDGPU] Fix duplicate s_wait_asynccnt on gfx12-plus (#190777)

S_WAIT_ASYNCCNT was missing from counterTypeForInstr(), so isWaitInstr()
did not recognize it as a wait instruction. On the fixpoint algorithm's
second pass over a loop body, the already-inserted S_WAIT_ASYNCCNT was
treated as a normal instruction, causing WAIT_ASYNCMARK to be
re-processed and a duplicate S_WAIT_ASYNCCNT to be emitted.

Assisted-By: Claude Opus 4.6
DeltaFile
+2-0llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+0-1llvm/test/CodeGen/AMDGPU/asyncmark-gfx12plus.ll
+2-12 files

LLVM/project 474afdaclang/include/clang/Basic HLSLIntrinsics.td, clang/lib/Headers/hlsl hlsl_alias_intrinsics.h

rebase

Created using spr 1.3.5-bogner
DeltaFile
+1-3,869clang/lib/Headers/hlsl/hlsl_alias_intrinsics.h
+1,157-452llvm/test/Transforms/LoopVectorize/WebAssembly/memory-interleave.ll
+1,516-4clang/include/clang/Basic/HLSLIntrinsics.td
+465-665llvm/test/CodeGen/AMDGPU/GlobalISel/extractelement.ll
+1,005-45clang/test/CodeGen/AArch64/neon/intrinsics.c
+344-594llvm/test/CodeGen/RISCV/rvv/vfdiv-vp.ll
+4,488-5,6291,274 files not shown
+49,224-26,4301,280 files

LLVM/project d7ed5e5llvm/unittests/MC DwarfLineTableHeaders.cpp

[test] Make MCTargetOptions a class member in DwarfLineTableHeaders (#190904)

Similar to commit 6f0b0ecaba1ba311717f86d8e4d8c6b2b4c4cd4b

createMCAsmInfo will store a pointer to the MCTargetOptions argument in
MCAsmInfo. When MCTargetOptions was a local variable in the constructor,
the pointer dangled after the constructor returned.
DeltaFile
+1-1llvm/unittests/MC/DwarfLineTableHeaders.cpp
+1-11 files

LLVM/project 0da209ebolt/lib/Profile DataAggregator.cpp

format

Created using spr 1.3.4
DeltaFile
+0-1bolt/lib/Profile/DataAggregator.cpp
+0-11 files

LLVM/project ed4b123llvm/test/tools/llvm-profgen filter-build-id.test, llvm/test/tools/llvm-profgen/Inputs buildid-cs-noprobe.aggperfscript buildid-noprobe.perfscript

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.4

[skip ci]
DeltaFile
+88-16llvm/tools/llvm-profgen/PerfReader.cpp
+53-0llvm/test/tools/llvm-profgen/filter-build-id.test
+13-0llvm/tools/llvm-profgen/ProfiledBinary.cpp
+11-0llvm/test/tools/llvm-profgen/Inputs/buildid-cs-noprobe.aggperfscript
+9-0llvm/tools/llvm-profgen/ProfiledBinary.h
+5-0llvm/test/tools/llvm-profgen/Inputs/buildid-noprobe.perfscript
+179-166 files

LLVM/project b445f37bolt/test/X86 pre-aggregated-perf-shlib.test, llvm/test/tools/llvm-profgen filter-build-id.test

[𝘀𝗽𝗿] initial version

Created using spr 1.3.4
DeltaFile
+88-16llvm/tools/llvm-profgen/PerfReader.cpp
+70-0bolt/test/X86/pre-aggregated-perf-shlib.test
+53-0llvm/test/tools/llvm-profgen/filter-build-id.test
+13-0llvm/tools/llvm-profgen/ProfiledBinary.cpp
+11-0llvm/test/tools/llvm-profgen/Inputs/buildid-cs-noprobe.aggperfscript
+9-0llvm/tools/llvm-profgen/ProfiledBinary.h
+244-162 files not shown
+255-178 files

NetBSD/src tmxgFJBsys/arch/atari/atari machdep.c, sys/arch/cesfic/cesfic machdep.c

   G/C the do-nothing module_init_md() now that there's a global weak
   equivalent.
VersionDeltaFile
1.204+2-12sys/arch/atari/atari/machdep.c
1.88+2-12sys/arch/cesfic/cesfic/machdep.c
1.265+2-12sys/arch/hp300/hp300/machdep.c
1.127+2-12sys/arch/luna68k/luna68k/machdep.c
1.384+2-12sys/arch/mac68k/mac68k/machdep.c
1.189+2-12sys/arch/mvme68k/mvme68k/machdep.c
+12-728 files not shown
+28-16614 files

LLVM/project 9b83139flang/lib/Semantics expression.cpp, flang/test/Semantics cuf04.cuf

[flang][cuda] Relax check on chevron syntax for bind(c) callee (#190861)
DeltaFile
+3-1flang/lib/Semantics/expression.cpp
+3-0flang/test/Semantics/cuf04.cuf
+6-12 files

LLVM/project 2c0b3b9clang/lib/AST StmtProfile.cpp

[NFC] Correct comments grammar and refine it (#190895)

Following https://github.com/llvm/llvm-project/pull/190732
DeltaFile
+1-1clang/lib/AST/StmtProfile.cpp
+1-11 files

FreeBSD/ports c4fe4eceditors/fresh distinfo Makefile.crates

editors/fresh: Update to 0.2.22
DeltaFile
+121-129editors/fresh/distinfo
+59-63editors/fresh/Makefile.crates
+1-1editors/fresh/Makefile
+181-1933 files

LLVM/project 413e580clang-tools-extra/clang-tidy ClangTidyCheck.h, clang-tools-extra/clang-tidy/bugprone SuspiciousIncludeCheck.cpp DynamicStaticInitializersCheck.cpp

[clang-tidy][NFC] Don't store a redundant copy of `HeaderFileExtensions` in every check (#190302)

#80333 removed local `HeaderFileExtensions` options; now there's just
the global option, and its value lives in the `ClangTidyContext`. But
every check still stores its own copy of it, a vestige of the old design
which this change fixes.
DeltaFile
+7-6clang-tools-extra/clang-tidy/misc/DefinitionsInHeadersCheck.cpp
+6-6clang-tools-extra/clang-tidy/misc/UseAnonymousNamespaceCheck.cpp
+4-6clang-tools-extra/clang-tidy/bugprone/SuspiciousIncludeCheck.cpp
+10-0clang-tools-extra/clang-tidy/ClangTidyCheck.h
+4-5clang-tools-extra/clang-tidy/misc/UseInternalLinkageCheck.cpp
+4-4clang-tools-extra/clang-tidy/bugprone/DynamicStaticInitializersCheck.cpp
+35-2715 files not shown
+50-7621 files

LLVM/project beb2bb2llvm/test/CodeGen/AMDGPU amdgcn.bitcast.1024bit.ll amdgcn.bitcast.512bit.ll, llvm/test/CodeGen/RISCV clmul.ll

rebase

Created using spr 1.3.5-bogner
DeltaFile
+84,299-78,378llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+66,293-29,491llvm/test/CodeGen/RISCV/rvv/clmulh-sdnode.ll
+25,754-24,794llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+24,655-20,149llvm/test/CodeGen/RISCV/clmul.ll
+23,631-20,343llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.960bit.ll
+21,843-18,635llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.896bit.ll
+246,475-191,79016,528 files not shown
+1,740,415-954,77216,534 files

LLVM/project 7071febclang/include/clang/Basic HLSLIntrinsics.td, clang/lib/Headers/hlsl hlsl_alias_intrinsics.h

[HLSL] Rewrite HLSL alias intrinsics into TableGen (#188814)

This PR will close issue
https://github.com/llvm/llvm-project/issues/188345 after PR
https://github.com/llvm/llvm-project/pull/188362.

This PR rewrites all applicable alias intrinsics from
`hlsl_alias_intrinsics.h` into TableGen (`HLSLIntrinsics.td`).

There are no significant test changes with this PR.

The generated `hlsl_alias_intrinsics_gen.h` can be seen here:
https://gist.github.com/Icohedron/5b9ed2638da0966e3c7514dcb5095197

The generated `hlsl_inline_intrinsics_gen.h` is the same as in
https://github.com/llvm/llvm-project/pull/188362 since this PR does not
add or modify any inline intrinsics definitions.

Assisted-by: GitHub Copilot
DeltaFile
+1-3,873clang/lib/Headers/hlsl/hlsl_alias_intrinsics.h
+1,196-5clang/include/clang/Basic/HLSLIntrinsics.td
+6-6clang/test/SemaHLSL/BuiltIns/cross-errors.hlsl
+2-2clang/test/SemaHLSL/BuiltIns/f16tof32-errors.hlsl
+2-2clang/test/SemaHLSL/BuiltIns/f32tof16-errors.hlsl
+1-1clang/test/SemaHLSL/WaveBuiltinAvailability.hlsl
+1,208-3,8896 files

LLVM/project 59b1515llvm/lib/CodeGen/SelectionDAG SelectionDAG.cpp SelectionDAGBuilder.cpp

[SelectionDAG] Fix typo Chian->Chain. NFC (#190874)
DeltaFile
+1-1llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+1-1llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+2-22 files

FreeBSD/ports 496f1d4misc/claude-code Makefile pkg-plist, misc/claude-code/files audio-capture-fetch.sh

misc/claude-code: Add FreeBSD native audio-capture NodeJS module

... instead of bundled ones for other systems.
DeltaFile
+80-0misc/claude-code/files/audio-capture-fetch.sh
+64-8misc/claude-code/Makefile
+1-6misc/claude-code/pkg-plist
+2-0misc/claude-code/distinfo
+147-144 files

FreeBSD/ports c61790dgraphics Makefile, graphics/py-olmocr Makefile pkg-descr

graphics/py-olmocr: New port: PDF and image OCR toolkit using visual language models
DeltaFile
+54-0graphics/py-olmocr/files/patch-olmocr_pipeline.py
+47-0graphics/py-olmocr/Makefile
+13-0graphics/py-olmocr/files/patch-pyproject.toml
+10-0graphics/py-olmocr/pkg-descr
+3-0graphics/py-olmocr/distinfo
+1-0graphics/Makefile
+128-06 files

FreeBSD/ports d274ad4devel Makefile, devel/py-uuid6 Makefile pkg-descr

devel/py-uuid6: New port: New time-based UUID formats suited for use as a database key
DeltaFile
+22-0devel/py-uuid6/Makefile
+4-0devel/py-uuid6/pkg-descr
+3-0devel/py-uuid6/distinfo
+1-0devel/Makefile
+30-04 files

FreeBSD/ports b650f87misc/github-copilot-cli Makefile

misc/github-copilot-cli: Lock fetch to prevent conflicts between flavors
DeltaFile
+16-12misc/github-copilot-cli/Makefile
+16-121 files

LLVM/project 9c28811llvm/tools/llvm-profgen ProfiledBinary.cpp

format

Created using spr 1.3.4
DeltaFile
+2-2llvm/tools/llvm-profgen/ProfiledBinary.cpp
+2-21 files

LLVM/project d17f2eellvm/test/tools/llvm-profgen/Inputs buildid-cs-noprobe.aggperfscript buildid-noprobe.perfscript, llvm/tools/llvm-profgen ProfiledBinary.cpp PerfReader.cpp

drop 0x from call stack

Created using spr 1.3.4
DeltaFile
+5-5llvm/test/tools/llvm-profgen/Inputs/buildid-cs-noprobe.aggperfscript
+4-2llvm/tools/llvm-profgen/ProfiledBinary.cpp
+3-3llvm/test/tools/llvm-profgen/Inputs/buildid-noprobe.perfscript
+2-2llvm/tools/llvm-profgen/PerfReader.cpp
+14-124 files

LLVM/project 5bc82b7llvm/tools/llvm-profgen ProfiledBinary.cpp

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.4

[skip ci]
DeltaFile
+4-2llvm/tools/llvm-profgen/ProfiledBinary.cpp
+4-21 files

LLVM/project fc47c47llvm/tools/llvm-profgen ProfiledBinary.cpp

use magic

Created using spr 1.3.4
DeltaFile
+4-2llvm/tools/llvm-profgen/ProfiledBinary.cpp
+4-21 files

LLVM/project 55a041bllvm/lib/Analysis DependenceAnalysis.cpp, llvm/test/Analysis/DependenceAnalysis Banerjee.ll Constraints.ll

[DA] Move no-wrap flag check into checkSubscript (#190770)

Recent patches added no-wrap flag checks to each dependence test (except
for the Banerjee MIV test) to make them sound. These fixes have been
applied one by one to ensure that each dependence test was correctly
updated and the defects were properly addressed. However, ideally, these
functions should not be called at all when the required no-wrap flags
are not set. Specifically, `classifyPair` should tag pairs as
`NonLinear` when either addrec doesn't have the no-wrap flag, which
means that the addrec is as literal non-linear.
This patch moves the existing no-wrap flag checks in the each dependence
test to `checkSubscript`, which is called by `classifyPair`. With this
change, if the addrec doesn't have the no-wrap flag, the pair will be
classified as `NonLinear` and the dependence test will not be invoked at
all. I believe this change makes the code cleaner and consistent with
the meaning of `NonLinear` classification.
Note that this patch doesn't take care of the behavioral change caused
by the Benerjee MIV test, as the test is still not sound and there are
no plans to fix it in the near future.
DeltaFile
+22-22llvm/test/Analysis/DependenceAnalysis/Banerjee.ll
+20-20llvm/test/Analysis/DependenceAnalysis/Constraints.ll
+13-13llvm/test/Analysis/DependenceAnalysis/Propagating.ll
+7-12llvm/lib/Analysis/DependenceAnalysis.cpp
+1-8llvm/test/Transforms/LoopInterchange/large-nested-6d.ll
+2-2llvm/test/Analysis/DependenceAnalysis/NonCanonicalizedSubscript.ll
+65-774 files not shown
+71-8310 files

LLVM/project e06b761llvm/test/tools/llvm-profgen filter-build-id.test, llvm/test/tools/llvm-profgen/Inputs buildid-cs-noprobe.aggperfscript buildid-noprobe.perfscript

[𝘀𝗽𝗿] initial version

Created using spr 1.3.4
DeltaFile
+88-16llvm/tools/llvm-profgen/PerfReader.cpp
+53-0llvm/test/tools/llvm-profgen/filter-build-id.test
+13-0llvm/tools/llvm-profgen/ProfiledBinary.cpp
+11-0llvm/test/tools/llvm-profgen/Inputs/buildid-cs-noprobe.aggperfscript
+9-0llvm/tools/llvm-profgen/ProfiledBinary.h
+5-0llvm/test/tools/llvm-profgen/Inputs/buildid-noprobe.perfscript
+179-166 files

LLVM/project dbb666allvm/tools/llvm-profgen ProfiledBinary.cpp ProfiledBinary.h

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.4

[skip ci]
DeltaFile
+13-0llvm/tools/llvm-profgen/ProfiledBinary.cpp
+9-0llvm/tools/llvm-profgen/ProfiledBinary.h
+22-02 files