LLVM/project fdb3e0c — llvm/lib/Target/X86 X86SchedLunarlakeP.td

[X86] X86SchedLunarlakeP.td - fix WarnRedundantInstRW warnings (#246011)

Removing redundant groups. Note that `MOV16sr`, `MOVSX16rr(16|32)`,
`MOVSX32rr32`, `MOVSX32rr8_NOREX` and `JMP64r_REX` don't have test
coverage as couldn't be obtained through assembly. Others are covered
and since no tests updated, it is NFC.

```
Group Instructions                Base SchedRW     Ports        Lat Uops
X40   (LD|ST)_Frr, MOV16s(m|r),   WriteMove        P0_1_2_3_4_5   1    1
      MOV(32|64)sr
X85   JMP64r_REX                  WriteJump        P0_2_4         1    1
X155  MOVSX(16|32|64)rr(8|16|32), WriteALU         P1_3_5         1    1
      MOVSX32rr8_NOREX
X173  (V)PALIGNRrri,              WriteShuffleX    VP2_3          1    1
      VPBROADCAST(B|D|Q|W)rr
      VPALIGNRYrri                WriteShuffleY    VP2_3          1    1
X219  SFENCE                      WriteFence       P10_11+P25_27  2    2
X264  VSHUFP(D|S)Yrmi             WriteFShuffleYLd VP2_3+P20_22   9    2

    [3 lines not shown]
DeltaFile
+0-24llvm/lib/Target/X86/X86SchedLunarlakeP.td
+0-241 files

LLVM/project 66430c4 — llvm/test/CodeGen/X86 vectorcall.ll, llvm/test/tools/UpdateTestChecks/update_llc_test_checks x86-win32-vectorcall.test

[UTC] Handle x86 vectorcall labels on Win32 (#235424)

Fixes #31744

`update_llc_test_checks.py` was unable to correctly handle decorated
function labels for `x86_vectorcallcc` functions targeting 32-bit
Windows. These labels can contain suffixes such as `@@0` or `@@4`, while
the function name in the assembly comment does not include the suffix.

This patch fixes the x86 assembly function-label regex to handle these
decorated labels correctly. It also adds a regression test covering
Win32 vectorcall functions with and without integer arguments.

### AI Usage

The root-cause analysis and proposed fix are my own work. I used an AI
assistant to help understand parts of the existing code, review my
changes, and assist with testing and debugging.
DeltaFile
+307-78llvm/test/CodeGen/X86/vectorcall.ll
+10-0llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-win32-vectorcall.ll
+6-0llvm/test/tools/UpdateTestChecks/update_llc_test_checks/x86-win32-vectorcall.test
+1-1llvm/utils/UpdateTestChecks/asm.py
+324-794 files

LLVM/project 9e18bc4 — llvm/test/CodeGen/AMDGPU insert-delay-alu-inline-asm.mir, llvm/test/CodeGen/MIR/X86 inline-asm-rm-exhaustion.mir

[Target] Update MIR tests to use symbolic INLINEASM operands (#246500)

These numeric operands have crept back in since #186839.
DeltaFile
+3-3llvm/test/CodeGen/MIR/X86/inline-asm-rm-exhaustion.mir
+3-3llvm/test/CodeGen/AMDGPU/insert-delay-alu-inline-asm.mir
+2-2llvm/test/tools/llvm-reduce/mir/multiple-functions.mir
+2-2llvm/test/MachineVerifier/AMDGPU/verifier-ec-subreg-liveness.mir
+2-2llvm/test/CodeGen/X86/peephole-copy.mir
+2-2llvm/test/CodeGen/X86/dead-register-pr76416.mir
+14-1413 files not shown
+30-3019 files

LLVM/project 6c38085 — llvm/docs LangRef.md, llvm/include/llvm/IR Attributes.td

[IR] Add `alwaysuniform` function attribute (#214644)

The attribute indicates that the function's result is always uniform,
even when its inputs are divergent. This is a stronger guarantee than
nodivergencesource (which only promises the function doesn't introduce
new divergence) and is intended to be emitted by front-end and used by
UniformityAnalysis.

Specifically it allows marking a downstream front-end ballot function such
that the guaranteed uniformity of the result (of the call to the function)
allow optimization of a subsequent consumer.
DeltaFile
+43-0llvm/test/Analysis/UniformityAnalysis/AMDGPU/alwaysuniform_function_attribute.ll
+6-0llvm/test/Bitcode/attributes.ll
+6-0llvm/docs/LangRef.md
+2-2llvm/utils/emacs/llvm-mode.el
+3-0llvm/include/llvm/IR/Attributes.td
+2-0llvm/utils/vim/syntax/llvm.vim
+62-25 files not shown
+70-211 files

LLVM/project e5727f2 — llvm/lib/Target/X86 X86ISelLowering.cpp, llvm/test/CodeGen/X86 pr246312.ll

[X86] Avoid combineSub cycle when ~C2 does not constant fold (#246346)

The X86 fold `sub(C1, xor(X, C2)) -> add(xor(X, ~C2), C1+1)` builds
`~C2` with `getNOT`. When `C2` is a bitcast of a build vector with undef
lanes, `~C2` doesn't constant fold, and the generic xor/add combines
turn the result back into the original sub, so the DAG combiner never
terminates. This only does the fold when `~C2` constant folds. On the
issue's IR, `llc -O2` (default and `-mattr=+sse4.1`) went from killed
after 60s to about 13ms, with no other X86 CodeGen test changes.

Fixes #246312

Assisted-by: Grok Bot (AI coding agent)
DeltaFile
+73-0llvm/test/CodeGen/X86/pr246312.ll
+15-13llvm/lib/Target/X86/X86ISelLowering.cpp
+88-132 files

LLVM/project 16996ef — llvm/lib/CodeGen Rematerializer.cpp, llvm/unittests/CodeGen RematerializerTest.cpp

Make it work with remat of remat
DeltaFile
+8-1llvm/unittests/CodeGen/RematerializerTest.cpp
+3-2llvm/lib/CodeGen/Rematerializer.cpp
+11-32 files

LLVM/project f17c3af — offload/libompaccsupport/include device.h, offload/libompaccsupport/include/OpenMP/OMPT Interface.h

Emit only one OMPT event for the whole 3D copy operation independently of
which path is taken.

Add the NULL/NULL arguments case to the tests.
DeltaFile
+92-150offload/libompaccsupport/src/device.cpp
+77-0offload/test/ompt/omptest/memcpy_rect.cpp
+40-0offload/libomptarget/src/OMPT/Callback.cpp
+18-18offload/libompaccsupport/include/device.h
+16-0offload/test/api/omp_target_memcpy_rect_3d.c
+16-0offload/libompaccsupport/include/OpenMP/OMPT/Interface.h
+259-1686 files

LLVM/project 48574fd — llvm/include/llvm/Object Wasm.h, llvm/lib/Object WasmObjectFile.cpp

[spr] initial version

Created using spr 2.0.0-beta.2
DeltaFile
+2-2llvm/include/llvm/Object/Wasm.h
+3-1llvm/lib/Object/WasmObjectFile.cpp
+5-32 files

LLVM/project c0dd4ce — llvm/include/llvm/Analysis Loads.h, llvm/lib/Transforms/Utils SimplifyCFG.cpp

Start using the new API
DeltaFile
+57-16llvm/test/Transforms/SimplifyCFG/switch-to-table-7.ll
+12-59llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+54-1llvm/test/Transforms/SimplifyCFG/switch-to-table-4.ll
+3-0llvm/include/llvm/Analysis/Loads.h
+126-764 files

LLVM/project adf76c5 — libc/src/string string_length.h CMakeLists.txt, libc/test/src/string CMakeLists.txt string_length_test.cpp

[libc] Fix has_zeroes() function not working with long Word type (#244197)

The LOW_BITS constant in the has_zeroes() function is an unsigned int,
which means if Word is a type larger than the platform's int e.g. a
long, then the block parameter will be truncated during the subtraction
operation. This results in zero bytes in the higher-order half not being
detected.
DeltaFile
+40-0libc/test/src/string/string_length_test.cpp
+11-0libc/test/src/string/CMakeLists.txt
+11-0libc/src/string/CMakeLists.txt
+1-1libc/src/string/string_length.h
+63-14 files

LLVM/project 5a73232 — clang/include/clang/CIR/Dialect/IR CIRAttrs.td, clang/lib/CIR/CodeGen CIRGenCXX.cpp

[CIR] Mark LoweringPrepare init functions strictfp

Classic codegen's StartFunction makes a function that has no
FunctionDecl `strictfp` when the TU-wide default FP environment is
constrained: FP exceptions are not ignored or the rounding mode is
dynamic. Of those functions ClangIR creates `_GLOBAL__sub_I_*`,
`_GLOBAL__I_*`, the C++20 module initializer, `__cxx_global_var_init*`,
`__cxx_global_array_dtor*` and `__tls_init`. It marked only
`__cxx_global_var_init*`, through a `strictfp` attribute on `cir.global`,
so the other functions and the calls in them were not `strictfp`.
Classic also marks the `__dtor_*` stubs, `_GLOBAL__D_a` and
`__GLOBAL_cleanup_*`, which ClangIR does not emit.

LoweringPrepare creates these functions after CIRGen, so it reads the
TU-wide default from `#cir.lowering_options`. `no_trapping_math` already
records whether FP exceptions are ignored, and the new `rounding_math`
field mirrors `LangOptions::RoundingMath`. It is omitted when false, so
the module attribute prints as before without `-frounding-math`.
`buildRuntimeFunction` adds `strictfp` together with the other TU-wide

    [8 lines not shown]
DeltaFile
+98-0clang/test/CIR/CodeGen/global-init-fn-strictfp.cpp
+38-0clang/test/CIR/Transforms/lowering-prepare-strictfp.cir
+35-0clang/test/CIR/CodeGen/cxx20-module-initializer-strictfp.cppm
+14-10clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
+11-2clang/include/clang/CIR/Dialect/IR/CIRAttrs.td
+2-6clang/lib/CIR/CodeGen/CIRGenCXX.cpp
+198-183 files not shown
+200-289 files

LLVM/project 778c3b9 — utils/bazel/llvm-project-overlay/mlir BUILD.bazel

[Bazel] Fixes 2aa4e0c (#246607)

This fixes 2aa4e0c0ba06035340f53547b3fa7eb7aa2e2410 (#243377).

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

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

LLVM/project ab30b27 — llvm/test/CodeGen/AMDGPU kernel-args.ll load-local-i16.ll, llvm/test/Transforms/AtomicExpand/AMDGPU expand-atomic-i8.ll

[AMDGPU] Remove R600 usage from llvm tests. NFC (#245924)

Tests that only cover R600 are deleted, including the tests of the
`llvm.r600.*` intrinsics. In tests shared with GCN, the r600 RUN lines
and their now unused EG, CM and R600 checks and comments are removed,
and autogenerated checks are regenerated. The R600 cases in the yaml,
TableGen, TargetParser, Triple and DataLayout upgrade tests are removed
too:

```
; RUN: llc -mtriple=r600 -mcpu=redwood < %s | FileCheck -check-prefixes=EG,FUNC %s
```

The `llvm.r600.read.local.size.y/z` checks in `amdgpu.private-memory.ll`
are kept, because AMDGPUPromoteAlloca still emits them for non HSA
targets. A follow up patch removes the R600 backend code.

RFC: https://discourse.llvm.org/t/rfc-amdgpu-deprecating-and-removing-llvm-s-r600-terascale-backend/92840

Assisted-by: Claude Opus 5.5
DeltaFile
+0-5,395llvm/test/CodeGen/AMDGPU/load-global-i8.ll
+0-5,274llvm/test/CodeGen/AMDGPU/srem.ll
+0-3,586llvm/test/CodeGen/AMDGPU/load-global-i16.ll
+0-3,227llvm/test/CodeGen/AMDGPU/load-local-i16.ll
+889-1,751llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-i8.ll
+0-2,631llvm/test/CodeGen/AMDGPU/kernel-args.ll
+889-21,864246 files not shown
+899-67,110252 files

LLVM/project db110d3 — llvm/test/CodeGen/SystemZ zos-ada.ll zos-ret-addr.ll, llvm/test/tools/UpdateTestChecks/update_llc_test_checks systemz-zos-function-name.test

[SystemZ] Enable update_llc_test_checks.py for HLASM on z/OS (#246417)

This change adds the required regular expression to match the HLASM
output generated for z/OS.

Assisted by: IBM Bob
DeltaFile
+21-13llvm/test/CodeGen/SystemZ/zos-frameaddr.ll
+15-9llvm/test/CodeGen/SystemZ/zos-ret-addr.ll
+14-0llvm/utils/UpdateTestChecks/asm.py
+8-5llvm/test/CodeGen/SystemZ/zos-ada.ll
+12-0llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/systemz_zos_function_name.ll.expected
+6-0llvm/test/tools/UpdateTestChecks/update_llc_test_checks/systemz-zos-function-name.test
+76-271 files not shown
+82-277 files

LLVM/project c70b0e2 — llvm/lib/Transforms/Utils SimplifyCFG.cpp, llvm/test/Transforms/SimplifyCFG switch-to-table-8.ll switch-to-table-10.ll

[SimplifyCFG] Optimize switches on constant globals loads

This introduces a new `SimplifyCFG` fold that transforms switches on loads from
constant tables into loads from a new table, eliminating the switch.

The motivating example is in the new test `switch-to-table-1.ll`.

The fold is deliberately tried in every `simplifycfg` run to allow more
inlining after early runs of `simplifycfg`. When run, the fold converts a
`switch` to (in the worst case) a single `load` per PHI at the destination of
the `switch`. When the destination doesn't have any other incoming edges other
than the `switch`, the PHIs disappear completely. In all cases, the function
usually gets smaller, which allows more inlining.

(This fold reuses the `SwitchReplacement` code from the existing `SimplifyCFG`
folds, so it can also replace a PHI at the destination with a sequence of
arithmetic instructions or with a register-sized bitmap lookup.)

Code size impact of this pass comes from new globals, which we limit as

    [7 lines not shown]
DeltaFile
+213-0llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+127-0llvm/test/Transforms/SimplifyCFG/switch-to-table-12.ll
+110-0llvm/test/Transforms/SimplifyCFG/switch-to-table-5.ll
+92-0llvm/test/Transforms/SimplifyCFG/switch-to-table-11.ll
+71-0llvm/test/Transforms/SimplifyCFG/switch-to-table-10.ll
+66-0llvm/test/Transforms/SimplifyCFG/switch-to-table-8.ll
+679-08 files not shown
+1,110-014 files

LLVM/project 4f88969 — offload/libompaccsupport/include device.h, offload/libompaccsupport/include/OpenMP/OMPT Interface.h

Emit only one OMPT event for the whole 3D copy operation independently of
which path is taken.

Add the NULL/NULL arguments case to the tests.
DeltaFile
+92-150offload/libompaccsupport/src/device.cpp
+40-0offload/libomptarget/src/OMPT/Callback.cpp
+18-18offload/libompaccsupport/include/device.h
+16-0offload/test/api/omp_target_memcpy_rect_3d.c
+16-0offload/libompaccsupport/include/OpenMP/OMPT/Interface.h
+182-1685 files

LLVM/project d274823 — offload/libompaccsupport/include device.h, offload/libompaccsupport/src device.cpp

[Offload][Omp] Use olMemCpy3D in omp_target_memcpy_rect

Implement olMemCpyRect more generically in DeviceTy using the
accelerated olMemCy3D if supported by the device.

Use it to reimplement omp_target_memcpy_rect.

Assisted by Claude.
DeltaFile
+292-0offload/libompaccsupport/src/device.cpp
+142-0offload/test/api/omp_target_memcpy_rect_3d.c
+40-27offload/libomptarget/src/API.cpp
+47-0offload/libompaccsupport/include/device.h
+521-274 files

LLVM/project 2aa4e0c — mlir/lib/Conversion/TosaToLinalg CMakeLists.txt TosaToLinalgNamedPass.cpp, mlir/test/Conversion/TosaToLinalg tosa-to-linalg-named.mlir

[mlir][tosa] Support CONV2D and CONV3D with EXT-DYNAMIC in tosa-to-linalg-named (#243377)

Support non-constant input tensor zero point (`input_zp`) and weight
zero point (`weight_zp`) operands for CONV2D and CONV3D in the
`tosa-to-linalg-named` pass. EXT-DYNAMIC allows these operands to be
non-constant.

For each non-constant zero point:
- Use `tensor.extract` to get the scalar value from the zero point
tensor
- If the zero point's type is `i8`, sign-extend the scalar to `i32` for
the quantized convolution
- Otherwise, for non-`i8` types, emit `cf.assert` to check that the
value is zero
- If the quantized convolution is used, pass an `i32` constant zero for
that operand

Use the input zero point scalar as the padding value.


    [100 lines not shown]
DeltaFile
+319-0mlir/test/Conversion/TosaToLinalg/tosa-to-linalg-named.mlir
+180-0mlir/test/Integration/Dialect/Tosa/CPU/test-conv2d-zero-points.mlir
+99-43mlir/lib/Conversion/TosaToLinalg/TosaToLinalgNamed.cpp
+7-5mlir/lib/Conversion/TosaToLinalg/TosaToLinalgNamedPass.cpp
+1-0mlir/lib/Conversion/TosaToLinalg/CMakeLists.txt
+606-485 files

LLVM/project 256effe — llvm/include/llvm/Analysis VecFuncs.def TargetLibraryInfo.h, llvm/lib/Analysis TargetLibraryInfo.cpp

[spr] initial version

Created using spr 2.0.0-beta.2
DeltaFile
+47-28llvm/lib/Analysis/TargetLibraryInfo.cpp
+19-37llvm/unittests/Analysis/TargetLibraryInfoTest.cpp
+30-25llvm/include/llvm/Analysis/TargetLibraryInfo.h
+16-10llvm/unittests/Analysis/ReplaceWithVecLibTest.cpp
+1-1llvm/include/llvm/Analysis/VecFuncs.def
+113-1015 files

LLVM/project 238a595 — llvm/lib/Transforms/Scalar JumpTableToSwitch.cpp, llvm/test/Transforms/JumpTableToSwitch callee-type-mismatch.ll gep-flags.ll

[JumpTableToSwitch] Use ConstGlobalIterator to read jump table entries

Replace JTTS's own jump table parsing with the `ConstGlobalIterator` helper,
which is also used by instcombine's `foldCmpLoadFromIndexedGlobal`.

As a result JTTS now also handles GEPs without nusw/nuw flags, by masking the
index the same way instcombine does.

Note that the helper requires the indices to be in canonical index type, so
JTTS only works with canonical index types now. This is not a problem in
practice as JTTS only runs after instcombine.
DeltaFile
+51-51llvm/test/Transforms/JumpTableToSwitch/basic.ll
+38-39llvm/test/Transforms/JumpTableToSwitch/skip.ll
+21-44llvm/lib/Transforms/Scalar/JumpTableToSwitch.cpp
+14-14llvm/test/Transforms/JumpTableToSwitch/profile-no-guid-metadata.ll
+16-2llvm/test/Transforms/JumpTableToSwitch/gep-flags.ll
+8-8llvm/test/Transforms/JumpTableToSwitch/callee-type-mismatch.ll
+148-1585 files not shown
+171-18111 files

LLVM/project cb211fc — offload/libompaccsupport/include device.h, offload/libompaccsupport/include/OpenMP/OMPT Interface.h

Emit only one OMPT event for the whole 3D copy operation independently of
which path is taken.

Add the NULL/NULL arguments case to the tests.
DeltaFile
+92-150offload/libompaccsupport/src/device.cpp
+40-0offload/libomptarget/src/OMPT/Callback.cpp
+18-18offload/libompaccsupport/include/device.h
+16-0offload/test/api/omp_target_memcpy_rect_3d.c
+16-0offload/libompaccsupport/include/OpenMP/OMPT/Interface.h
+182-1685 files

LLVM/project c55b932 — llvm/include/llvm/Analysis Loads.h, llvm/lib/Transforms/InstCombine InstCombineCompares.cpp

Some more documentation and renaming
DeltaFile
+15-1llvm/include/llvm/Analysis/Loads.h
+1-1llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
+16-22 files

LLVM/project 0864126 — bolt/docs profiles.md

[BOLT] Update documentation on lbr -> brstack changes
DeltaFile
+8-3bolt/docs/profiles.md
+8-31 files

LLVM/project db12fc3 — llvm/lib/Target/ARM ARMConstantIslandPass.cpp, llvm/test/CodeGen/ARM constant-islands-convergence.mir

[ARM][ConstantIslands] Fix CloserWater heuristic to resolve convergence failure in large functions.  (#245139)

Fix two bugs in the `CloserWater` heuristic in `findAvailableWater` that
cause
the ARM constant island pass to fail to converge for large functions
with many
constant pool entries, aborting with:

  LLVM ERROR: Constant Island pass failed to converge!

This was observed during LTO linking of large translation units where
PGO-driven
inlining produces functions with thousands of basic blocks and over a
hundred
constant pool references. The constant island pass exceeds its
30-iteration
convergence limit due to a cascade effect: each CPE placement shifts
subsequent
block offsets, pushing one more entry out of range per iteration.

    [37 lines not shown]
DeltaFile
+4,635-0llvm/test/CodeGen/ARM/constant-islands-convergence.mir
+3-2llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
+4,638-22 files

LLVM/project 450f05b — libcxx/docs index.md PSTL.md, libcxx/docs/DesignDocs PSTLIntegration.md

[libc++][pstl] Update the documentation (#243908)

The PR brings in some user-facing documentation for PSTL in libc++.
DeltaFile
+126-0libcxx/docs/PSTL.md
+25-0libcxx/include/__pstl/backend_fwd.h
+0-21libcxx/docs/DesignDocs/PSTLIntegration.md
+1-1libcxx/docs/index.md
+152-224 files

LLVM/project 611d7e7 — clang/lib/CIR/Lowering/DirectToLLVM LowerToLLVM.cpp, clang/test/CIR/CodeGen strictfp-call-site.cpp strictfp-call-site.c

[CIR] Mark calls in strictfp functions strictfp

At -O1, ClangIR folded `erf(1.0)` to a constant under
`#pragma STDC FENV_ACCESS ON`, while classic codegen kept the call. The
difference is the call-site `strictfp` attribute. LangRef requires it on
every call in a function that uses constrained FP intrinsics, and LLVM's
libcall folders look at the call, not at the caller. Classic codegen
gets it from IRBuilder's constrained mode. ClangIR marked only the
function.

The CIR `strictfp` function attribute now lowers to the `strictfp`
attribute of `llvm.func` instead of a `passthrough` entry. After the
conversion, every `llvm.call`, `llvm.invoke`, `llvm.inline_asm` and
`llvm.call_intrinsic` in a `strictfp` function gets `strictfp` too, and
every named intrinsic op such as `llvm.intr.fabs` or `llvm.intr.memcpy`
gets `llvm.strictfp`. That includes indirect calls, constrained
intrinsics, and the calls LoweringPrepare and EH lowering create. CIR
itself does not change.


    [7 lines not shown]
DeltaFile
+143-0clang/test/CIR/Lowering/strictfp-call-site.cir
+134-0clang/test/CIR/CodeGen/strictfp-call-site.c
+89-0clang/test/CIR/CodeGen/strictfp-call-site.cpp
+32-0clang/test/CIR/Lowering/strictfp-call-site-asm.cir
+29-1clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+0-29clang/test/CIR/Lowering/strictfp.cir
+427-301 files not shown
+429-317 files

LLVM/project 3b7860c — mlir/docs/Dialects LLVM.md, mlir/lib/Dialect/LLVMIR/IR LLVMDialect.cpp

[mlir][LLVM] Add llvm.strictfp for intrinsic ops

In a function that uses constrained floating-point intrinsics, LLVM
requires every call to be `strictfp`, including calls of intrinsics such
as `llvm.fabs`, `llvm.memcpy` and `llvm.trap`. The call ops and
`llvm.func` have an inherent `strictfp` attribute, but the named
intrinsic ops have no call-site attributes, so a frontend could not mark
those calls.

This adds a discardable `llvm.strictfp` unit attribute. Export sets the
`strictfp` call-site attribute on the call the op translates to, the way
`llvm.memprof` attaches to the calls an op produces, and import sets it
on an intrinsic op whose call site is `strictfp`. A new
`IntrinsicOpTrait` marks the LLVM dialect's intrinsic ops, and the
verifier accepts `llvm.strictfp` only on them, so the call ops keep a
single spelling.

Assisted-by: Claude Code (Opus 5.5).
DeltaFile
+18-0mlir/test/Target/LLVMIR/strictfp-intrinsics.mlir
+17-0mlir/test/Dialect/LLVMIR/strictfp-invalid.mlir
+16-0mlir/test/Target/LLVMIR/Import/intrinsic-strictfp.ll
+12-0mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
+12-0mlir/docs/Dialects/LLVM.md
+10-1mlir/lib/Target/LLVMIR/ModuleImport.cpp
+85-14 files not shown
+108-210 files

LLVM/project 5527e28 — clang/include/clang/CIR/Dialect/IR CIRTypes.h CIRTypeConstraints.td, clang/lib/CIR/Dialect/IR CIRTypes.cpp

[CIR][NFC] Generate isBitIntType from an ODS constraint

Add CIR_AnyBitIntType and define CIR_IsNotBitIntPred as its negation, so the
positive and negative _BitInt checks share one predicate. ODS now generates
cir::isBitIntType, replacing the hand-written helper from #245456. Restore the
dyn_cast<IntType> sites that need the IntType itself, since the generated
function does not accept a null type.

Assisted-by: Claude Code (claude-sonnet-5-5).
DeltaFile
+7-1clang/include/clang/CIR/Dialect/IR/CIRTypeConstraints.td
+0-5clang/lib/CIR/Dialect/IR/CIRTypes.cpp
+3-2clang/lib/CIR/Lowering/LoweringHelpers.cpp
+2-2clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+0-3clang/include/clang/CIR/Dialect/IR/CIRTypes.h
+12-135 files

LLVM/project 507c12e — clang/lib/Headers acev1intrin.h, clang/test/OpenMP task_codegen.cpp

Merge branch 'main' into users/redstar/updatetestsonzos
DeltaFile
+4,302-0llvm/test/CodeGen/RISCV/GlobalISel/atomicrmw-max-min-umax-umin.ll
+1,626-1,617clang/test/OpenMP/task_codegen.cpp
+1,981-0llvm/test/CodeGen/RISCV/aclic-interrupt-attr.ll
+1,717-0llvm/test/CodeGen/RISCV/GlobalISel/atomicrmw-and-or-xor.ll
+1,483-0llvm/test/CodeGen/RISCV/GlobalISel/atomic-cmpxchg.ll
+898-0clang/lib/Headers/acev1intrin.h
+12,007-1,617439 files not shown
+34,008-4,346445 files

LLVM/project 4575500 — llvm/lib/Target/Mips MipsISelLowering.cpp, llvm/test/CodeGen/Mips fp-strict-fptoint.ll fp-intrinsics.ll

[Mips] Use the constrained compare mask directly on R6 (#246087)

On R6, a constrained FP compare is lowered to (and Mask, 1), where Mask
is the 0 or -1 result of cmp.cond.fmt. Selects, branches and sign
extensions can use Mask without the 'and' when ComputeNumSignBits shows
that it is 0 or -1, as they already do for non-strict compares. For
constrained compares this was not known, since STRICT_FPCmpR6 and
STRICT_FPCmpsR6 were not handled in ComputeNumSignBitsForTargetNode and
the low word of an f64 mask came from an EXTRACT_SUBREG. So they got an
extra 'andi', and the sign extensions a 'negu' as well.

Handle the strict compare nodes in ComputeNumSignBitsForTargetNode, and
take the low word of an f64 mask with ExtractElementF64, which it can
look through. The code is now the same as for non-strict compares.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+281-0llvm/test/CodeGen/Mips/fp-strict-fcmp.ll
+15-2llvm/lib/Target/Mips/MipsISelLowering.cpp
+0-2llvm/test/CodeGen/Mips/fp-intrinsics.ll
+0-1llvm/test/CodeGen/Mips/fp-strict-fptoint.ll
+296-54 files