LLVM/project 2bef931flang/lib/Optimizer/Dialect FIROps.cpp CMakeLists.txt, flang/test/Fir array-coor-canonicalization-acc.fir

Reland "[flang][openacc] Prevent SimplifyArrayCoorOp from folding rebox used by ACC data entry ops (#187616)" (#187626)

The SimplifyArrayCoorOp canonicalization pattern folds fir.rebox into
fir.array_coor by replacing the rebox result with its source. When the
rebox result is the variable of an acc.copyin (or other data entry op),
this folding breaks the chain that LegalizeDataValuesInRegion relies on
to replace host values with device pointers inside compute regions. With
default(none), ACCImplicitData cannot recover the mapping, leaving the
rebox source as an illegal live-in in the offload region.

This is causing illegal live-ins at higher optimization levels.

Guard the folding so it bails out when any user of the rebox is an
ACC_DATA_ENTRY_OPS.

The buildbots failure were cuased by a missing dependency
DeltaFile
+48-0flang/test/Fir/array-coor-canonicalization-acc.fir
+10-0flang/lib/Optimizer/Dialect/FIROps.cpp
+1-0flang/lib/Optimizer/Dialect/CMakeLists.txt
+59-03 files

LLVM/project c3f381cmlir/include/mlir/Bindings/Python Globals.h, mlir/lib/Bindings/Python Globals.cpp IRCore.cpp

[mlir-python] Fix duplicate EnumAttr builder registration across dialects. (#187191)

When multiple dialects share td `#includes` (e.g. `affine` includes
`arith`), each dialect's `*_enum_gen.py` file registers attribute
builders under the same keys, causing "already registered" errors on the
second import; the first commit checks in such a case which currently
fails on main:

```
# | RuntimeError: Attribute builder for 'Arith_CmpFPredicateAttr' is already registered with func: <function _arith_cmpfpredicateattr at 0x78d13cbe9a80>
```

This PR implements a two-pronged fix:

1. Add `allow_existing=True` to `register_attribute_builder` (and the
underlying C++ `registerAttributeBuilder`). When set, silently skips
registration if the key already exists (first-wins semantics). This
handles `EnumInfo`-based builders which have no dialect prefix (e.g.
`AtomicRMWKindAttr`, `Arith_CmpFPredicateAttr`), which may be emitted by

    [13 lines not shown]
DeltaFile
+26-7mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp
+22-6mlir/tools/mlir-tblgen/EnumPythonBindingGen.cpp
+17-4mlir/lib/Bindings/Python/Globals.cpp
+5-5mlir/test/mlir-tblgen/enums-python-bindings.td
+6-3mlir/include/mlir/Bindings/Python/Globals.h
+4-2mlir/lib/Bindings/Python/IRCore.cpp
+80-275 files not shown
+92-3311 files

LLVM/project 0000751llvm/lib/Target/LoongArch LoongArchISelLowering.cpp, llvm/lib/Target/LoongArch/MCTargetDesc LoongArchAsmBackend.cpp

address @heiher's comments

Created using spr 1.3.7
DeltaFile
+45-0llvm/test/DebugInfo/LoongArch/dwo-no-relocations.ll
+8-5llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.cpp
+4-4llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+3-0llvm/test/CodeGen/M68k/pipeline.ll
+60-94 files

LLVM/project fa2df7eflang/test/Lower/Intrinsics max.f90 log.f90

[flang][NFC] Converted five tests from old lowering to new lowering (part 35) (#187407)

Tests converted from test/Lower/Intrinsics: len.f90,
lge_lgt_lle_llt.f90, log.f90, matmul.f90, max.f90
DeltaFile
+68-65flang/test/Lower/Intrinsics/max.f90
+46-37flang/test/Lower/Intrinsics/log.f90
+49-33flang/test/Lower/Intrinsics/len.f90
+17-54flang/test/Lower/Intrinsics/matmul.f90
+9-12flang/test/Lower/Intrinsics/lge_lgt_lle_llt.f90
+189-2015 files

LLVM/project cad4618mlir/lib/Bindings/Python Globals.cpp

emit warning
DeltaFile
+15-7mlir/lib/Bindings/Python/Globals.cpp
+15-71 files

LLVM/project 1cc9a05flang/lib/Lower/OpenMP OpenMP.cpp, flang/test/Lower/OpenMP declare-simd.f90

Add arg-type to declare simd op for language level type information
DeltaFile
+47-8mlir/test/Target/LLVMIR/openmp-declare-simd-aarch64-01.mlir
+35-8mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+31-1flang/lib/Lower/OpenMP/OpenMP.cpp
+25-0mlir/test/Target/LLVMIR/iterator2.f90
+11-7flang/test/Lower/OpenMP/declare-simd.f90
+16-0mlir/test/Dialect/OpenMP/ops.mlir
+165-243 files not shown
+177-259 files

LLVM/project caf079fclang/lib/Headers endian.h, clang/test/Headers endian.c

[clang][headers][endian.h] add some common extensions (#187565)

This PR adds two common extensions to `endian.h` found in some
implementations which we've encountered usages of in existing code (which
are allowable under POSIX), namely:

- double underscore versions of the byte order macros
- PDP endianness macros  

(note: we don't attempt to implement the actual conversion helpers for
PDP endianness, as LLVM doesn't support these targeting platforms with
this endianness, we just provide the macro so code checking against them
on other targets will compile)
DeltaFile
+18-1clang/lib/Headers/endian.h
+3-0clang/test/Headers/endian.c
+21-12 files

LLVM/project 19ced5aorc-rt/include/orc-rt Session.h, orc-rt/lib/executor Session.cpp

[orc-rt] Redesign Session to provide a clearer lifecycle. (#187496)

A Session begins in the Start state. In this state no calls will be
received from the controller (since none is attached yet). This provides
clients with an opportunity to configure the Session before attaching a
ControllerAccess object with the `attach` method.

The first call to the `attach` method will register a ControllerAccess
object with the Session, and the ControllerAccess's connect method will
be called to establish a connection with the controller.

If ControllerAccess::connect fails it must call
ControllerAccess::notifyDisconnected, at which point the Session will
proceed to the Detached state.

If ControllerAccess::connect succeeds (i.e. returns without calling
notifyDisconnected) then the Session moves to the Attached state, and
calls can be made in both directions between the executor and
controller.

    [18 lines not shown]
DeltaFile
+309-66orc-rt/lib/executor/Session.cpp
+131-50orc-rt/include/orc-rt/Session.h
+12-9orc-rt/unittests/SessionTest.cpp
+452-1253 files

LLVM/project 2e88fe7flang/lib/Optimizer/Dialect FIROps.cpp, flang/test/Fir array-coor-canonicalization-acc.fir

Revert "[flang][openacc] Prevent SimplifyArrayCoorOp from folding rebox used by ACC data entry ops" (#187625)

Reverts llvm/llvm-project#187616
DeltaFile
+0-48flang/test/Fir/array-coor-canonicalization-acc.fir
+0-10flang/lib/Optimizer/Dialect/FIROps.cpp
+0-582 files

LLVM/project 4579b8cclang/lib/Serialization ASTReader.cpp, clang/test/Modules merge-target-features.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+87-0clang/test/Modules/merge-target-features.cpp
+28-9clang/lib/Serialization/ASTReader.cpp
+115-92 files

LLVM/project 616d56cclang/lib/Serialization ASTReader.cpp, clang/test/Modules merge-target-features.cpp

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

Created using spr 1.3.7

[skip ci]
DeltaFile
+21-0clang/test/Modules/merge-target-features.cpp
+3-0clang/lib/Serialization/ASTReader.cpp
+24-02 files

LLVM/project bf1db77clang/lib/AST/ByteCode InterpFrame.h InterpFrame.cpp

Revert "[clang][bytecode] Allocate local variables in `InterpFrame` tail storage" (#187410)

Reverts llvm/llvm-project#185835

Looks like this broke two msan builders:
https://lab.llvm.org/buildbot/#/builders/164/builds/19819
https://lab.llvm.org/buildbot/#/builders/94/builds/16257
DeltaFile
+15-39clang/lib/AST/ByteCode/InterpFrame.h
+21-23clang/lib/AST/ByteCode/InterpFrame.cpp
+15-13clang/lib/AST/ByteCode/Function.h
+15-9clang/lib/AST/ByteCode/Compiler.cpp
+7-15clang/lib/AST/ByteCode/Context.cpp
+6-13clang/lib/AST/ByteCode/Interp.cpp
+79-11210 files not shown
+116-14416 files

LLVM/project 92ac87cllvm/lib/Target/LoongArch LoongArchISelLowering.cpp

add assert

Created using spr 1.3.7
DeltaFile
+3-3llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+3-31 files

LLVM/project 89d8fe9llvm/lib/Target/LoongArch/MCTargetDesc LoongArchAsmBackend.cpp, llvm/test/DebugInfo/LoongArch dwo-no-relocations.ll

[LoongArch] Ensure .dwo sections do not contain relocations (#187429)

When linker relaxation is enabled, LoongArchAsmBackend may emit
relocations for same-section symbol differences, even when the fixup
is in a .dwo section. This leads to errors such as:

  error: A dwo section may not contain relocations

Split DWARF (.dwo) sections must not contain relocations. Fix this by
resolving such fixups immediately when they are emitted into .dwo
sections, even if the referenced symbols are in relaxable sections.

This avoids generating invalid relocations in .debug_*.dwo sections
when compiling with -gsplit-dwarf and -mrelax.

Fixes #187428
DeltaFile
+45-0llvm/test/DebugInfo/LoongArch/dwo-no-relocations.ll
+8-5llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.cpp
+53-52 files

LLVM/project 828da61llvm/test/CodeGen/M68k pipeline.ll

[M68k] Fix pipeline.ll test after CodeGenPrepare analysis change (#187617)

211279d11c36 added Post-Dominator Tree Construction, Branch Probability
Analysis, and Block Frequency Analysis before CodeGen Prepare but missed
updating the M68k pipeline test.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply at anthropic.com>
DeltaFile
+3-0llvm/test/CodeGen/M68k/pipeline.ll
+3-01 files

LLVM/project f9d6d62. benchmark_build.sh

Change iteration count from 10 to 2
DeltaFile
+1-1benchmark_build.sh
+1-11 files

LLVM/project 9921a6bllvm/lib/Target/LoongArch LoongArchISelLowering.cpp, llvm/test/CodeGen/LoongArch fsqrt-reciprocal-estimate.ll

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+63-31llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+0-12llvm/test/CodeGen/LoongArch/fsqrt-reciprocal-estimate.ll
+0-4llvm/test/CodeGen/LoongArch/lasx/fsqrt-reciprocal-estimate.ll
+0-2llvm/test/CodeGen/LoongArch/lsx/fsqrt-reciprocal-estimate.ll
+63-494 files

LLVM/project 979048eflang/lib/Optimizer/Dialect FIROps.cpp, flang/test/Fir array-coor-canonicalization-acc.fir

[flang][openacc] Prevent SimplifyArrayCoorOp from folding rebox used by ACC data entry ops (#187616)

The SimplifyArrayCoorOp canonicalization pattern folds fir.rebox into
fir.array_coor by replacing the rebox result with its source. When the
rebox result is the variable of an acc.copyin (or other data entry op),
this folding breaks the chain that LegalizeDataValuesInRegion relies on
to replace host values with device pointers inside compute regions.
With default(none), ACCImplicitData cannot recover the mapping, leaving
the rebox source as an illegal live-in in the offload region.

This is causing illegal live-ins at higher optimization levels. 

Guard the folding so it bails out when any user of the rebox is an
ACC_DATA_ENTRY_OPS.
DeltaFile
+48-0flang/test/Fir/array-coor-canonicalization-acc.fir
+10-0flang/lib/Optimizer/Dialect/FIROps.cpp
+58-02 files

LLVM/project 5881ce6utils/bazel/llvm-project-overlay/libc BUILD.bazel

[Bazel] Port 7efcd6198c8d15a1ab2ae2b30a3aa8b5168ef9cc

Added a new header that needs to be handled properly.
DeltaFile
+1-0utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+1-01 files

LLVM/project 0e53fbcclang/lib/DependencyScanning DependencyScannerImpl.cpp DependencyScanningWorker.cpp, utils/bazel/llvm-project-overlay/clang BUILD.bazel

[Bazel] Port 81e8a1e59ee28e5403d8a78874c37f853d18d4fb

This patch introduces a dependency from driver to dependency_scanning.
We need to tease out dependency_scanning's current dependency on driver
(just some headers that can be removed) and then add a depenency in
driver on dependency_scanning to make the patch work.
DeltaFile
+2-1utils/bazel/llvm-project-overlay/clang/BUILD.bazel
+1-1clang/lib/DependencyScanning/DependencyScannerImpl.cpp
+0-2clang/lib/DependencyScanning/DependencyScanningWorker.cpp
+3-43 files

LLVM/project 9e54ca1llvm/include/llvm/CodeGen AtomicExpandUtils.h, llvm/lib/CodeGen AtomicExpandPass.cpp

[AtomicExpandPass] Remove AtomicExpandUtils.h (NFC) (#187609)

The purpose of AtomicExpandUtils.h was to allow code reuse with [PNaCl
](https://en.wikipedia.org/wiki/Google_Native_Client)which has since
been deprecated. This PR removes the file, and migrates the declarations
to be visible only in the necessary scopes.
DeltaFile
+0-64llvm/include/llvm/CodeGen/AtomicExpandUtils.h
+12-7llvm/lib/CodeGen/AtomicExpandPass.cpp
+12-712 files

LLVM/project 2aba2f1clang/lib/Serialization ASTReader.cpp, clang/test/Modules merge-target-features.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+21-0clang/test/Modules/merge-target-features.cpp
+3-0clang/lib/Serialization/ASTReader.cpp
+24-02 files

LLVM/project edf0fb8llvm/lib/CodeGen/GlobalISel Utils.cpp

[GISEL][NFC] Remove a useless assert in constrainSelectedInstRegOperands (#187592)
DeltaFile
+0-1llvm/lib/CodeGen/GlobalISel/Utils.cpp
+0-11 files

LLVM/project 366da12libclc/clc/lib/amdgpu CMakeLists.txt, libclc/clc/lib/amdgpu/math clc_fmod.cl

[libclc] Restore previous generic fmod implementation (#187470)

Restore from before 3c7f70bb9cee for targets that do not yet implement
frem. Keep the __builtin_elementwise_fmod-based implementation for
AMDGPU.
DeltaFile
+181-4libclc/clc/lib/generic/math/clc_fmod.cl
+15-0libclc/clc/lib/amdgpu/math/clc_fmod.cl
+1-0libclc/clc/lib/amdgpu/CMakeLists.txt
+197-43 files

LLVM/project df85f45libc/docs build_concepts.rst full_host_build.rst

[libc][docs][NFC] Add Build Concepts and consolidate patterns (#187490)

[libc][docs][NFC] Add Build Concepts page with five build scenarios

Added build_concepts.rst defining the five ways to build LLVM-libc:

overlay, full build, bootstrap, cross-compiler, and bootstrap
cross-compiler. Updated full_host_build.rst to cross-reference the new
concepts page for both the runtimes and bootstrap build sections, and
removed a duplicate GWP_ASAN flag from the sysroot CMake recipe. Added
the new page to index.rst.
DeltaFile
+76-0libc/docs/build_concepts.rst
+9-8libc/docs/full_host_build.rst
+1-0libc/docs/index.rst
+86-83 files

LLVM/project 2f076c3clang/bindings/python/clang cindex.py, clang/bindings/python/tests/cindex test_file.py

[libclang/python] Deprecate _CXUnsavedFile, introduce UnsavedFile instead (#187412)

To maintain consistency with other classes mirrored from libclang, the
`_CX` prefix should be removed.
The old name is introduced as a subclass of the renamed class, and
deprecation warnings are added on every attribute access.
DeltaFile
+22-3clang/bindings/python/clang/cindex.py
+12-1clang/bindings/python/tests/cindex/test_file.py
+4-0clang/docs/ReleaseNotes.rst
+38-43 files

LLVM/project 3991dcbllvm/utils/gn/secondary/clang/lib/Driver BUILD.gn

[gn] port 81e8a1e59ee28e54
DeltaFile
+1-0llvm/utils/gn/secondary/clang/lib/Driver/BUILD.gn
+1-01 files

LLVM/project ea4955fclang/lib/Serialization ASTReader.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+1-1clang/lib/Serialization/ASTReader.cpp
+1-11 files

LLVM/project 8ccda46llvm/utils/gn/secondary/clang/lib/DependencyScanning BUILD.gn

[gn] port 02451f54d642ae

Also remove dependency on TargetsToBuild, which was apparently never
needed.
DeltaFile
+0-2llvm/utils/gn/secondary/clang/lib/DependencyScanning/BUILD.gn
+0-21 files

LLVM/project 8771fd9llvm/utils/gn/secondary/compiler-rt/lib/profile BUILD.gn

[gn build] Port d18a784d4106
DeltaFile
+1-0llvm/utils/gn/secondary/compiler-rt/lib/profile/BUILD.gn
+1-01 files