LLVM/project 4ea1911 — llvm/lib/Target/Sparc DelaySlotFiller.cpp, llvm/test/CodeGen/SPARC restore-combine-debug.mir

[SPARC] Ignore debug values when combining a restore (#248086)

The delay slot filler combines an ADD, OR or SETHI instruction with the
RESTORE that follows it. It took the instruction before the restore with
std::prev, so a DBG_VALUE between the two prevented the combination, and
the code differed with and without debug info. For example a return
compiled to

  ret
  restore %o0, %i0, %o0

without -g and to

  add %o0, %i0, %i0
  ret
  restore

with it.


    [2 lines not shown]
DeltaFile
+136-0llvm/test/CodeGen/SPARC/restore-combine-debug.mir
+29-8llvm/lib/Target/Sparc/DelaySlotFiller.cpp
+165-82 files

LLVM/project 059c485 — llvm/lib/Analysis InstructionSimplify.cpp

[InstSimplify] Remove redundant select of funnel shift fold (NFCI) (#248368)

This is already handled by simplifySelectWithEquivalence().
DeltaFile
+1-9llvm/lib/Analysis/InstructionSimplify.cpp
+1-91 files

LLVM/project edcd5b7 — libcxxabi/src private_typeinfo.h private_typeinfo.cpp

[libc++abi] Remove found_our_static_ptr and found_any_static_type from __dynamic_cast_info
DeltaFile
+107-122libcxxabi/src/private_typeinfo.cpp
+4-6libcxxabi/src/private_typeinfo.h
+111-1282 files

LLVM/project 4dc42a5 — mlir/include/mlir/Target/LLVM/XeVM Utils.h, mlir/lib/Target/LLVM/XeVM Target.cpp

[MLIR][XeVM] Add SerializeGPUModuleBase::getCompilerInfo() (#243637)

Add a static method returning the GPU compiler version info.

---------

Co-authored-by: Dmitry Chigarev <dmitry.chigarev at intel.com>
Co-authored-by: Md Abdullah Shahneous Bari <md.abdullah.shahneous.bari at intel.com>
DeltaFile
+65-1mlir/lib/Target/LLVM/XeVM/Target.cpp
+23-0mlir/unittests/Target/LLVM/SerializeXeVMTarget.cpp
+8-3mlir/include/mlir/Target/LLVM/XeVM/Utils.h
+2-0mlir/unittests/Target/LLVM/CMakeLists.txt
+98-44 files

LLVM/project 68fea37 — mlir/lib/Dialect/OpenACC/Transforms ACCCGToGPU.cpp, mlir/test/Dialect/OpenACC acc-cg-to-gpu-execute-region-block-order.mlir

[mlir][acc] Clone `scf.execute_region` blocks in dominance order

`ACCCGToGPU` cloned the blocks of an `scf.execute_region` in region order.
A block can come before a block that dominates it and use values defined
there, e.g. after a forward branch into a loop built from branches. Such a
use was cloned before its value was mapped, so the clone kept using the
original value, and erasing the original `acc.compute_region` asserted with
"expected that op has no uses".

Clone the blocks in reverse post-order, which visits every block after the
blocks that dominate it.

Assisted-by: Claude Code (Claude Opus 5.5)
DeltaFile
+53-0mlir/test/Dialect/OpenACC/acc-cg-to-gpu-execute-region-block-order.mlir
+15-4mlir/lib/Dialect/OpenACC/Transforms/ACCCGToGPU.cpp
+68-42 files

LLVM/project 4d432ac — mlir/lib/Conversion/OpenACCToLLVM ACCAtomicPatterns.cpp, mlir/test/Conversion/OpenACCToLLVM atomic.mlir

[mlir][acc] Read 128-bit values in `acc.atomic.read` with `cmpxchg`

`acc.atomic.read` reads `x` with an `atomicrmw or` of zero on an integer
of the size of `x`. For a `complex<f64>`, that is an `i128`, which
the LLVM dialect verifier does not accept for integer operations of
`atomicrmw` ([LLVMMemoryOps.cpp#L509-L511][verifier]):

```mlir
acc.atomic.read %v = %x : !fir.ref<complex<f64>>, !fir.ref<complex<f64>>, complex<f64>
```

failed with:

```
'llvm.atomicrmw' op expected LLVM IR integer type
```

Read values wider than 64 bits with a `cmpxchg` of zero with zero
instead, and take the loaded value. It only stores zero where the value

    [11 lines not shown]
DeltaFile
+41-0mlir/test/Conversion/OpenACCToLLVM/atomic.mlir
+15-9mlir/lib/Conversion/OpenACCToLLVM/ACCAtomicPatterns.cpp
+56-92 files

LLVM/project 5c3782a — mlir/lib/Conversion/OpenACCToLLVM ACCAtomicPatterns.cpp, mlir/test/Conversion/OpenACCToLLVM atomic.mlir

[mlir][acc] Fix `acc.atomic.capture` lowering when `v` and `x` differ in type

The `acc.atomic.read` in an `acc.atomic.capture` allows `v` and `x` of
different types, like a standalone `acc.atomic.read`, and the captured
value is converted to the type of `v`. The LLVM lowering stored the
captured value into `v` without converting it. For example:

```mlir
acc.atomic.capture {
  acc.atomic.read %v = %x : !fir.ref<i32>, !fir.ref<f64>, f64
  acc.atomic.write %x = %val : !fir.ref<f64>, f64
}
```

stored the `f64` value into the 4 bytes of `v`:

```mlir
llvm.store %old, %v : f64, !llvm.ptr
```

    [6 lines not shown]
DeltaFile
+110-0mlir/test/Conversion/OpenACCToLLVM/atomic.mlir
+45-20mlir/lib/Conversion/OpenACCToLLVM/ACCAtomicPatterns.cpp
+155-202 files

LLVM/project 670284a — mlir/lib/Conversion/OpenACCToLLVM ACCAtomicPatterns.cpp, mlir/test/Conversion/OpenACCToLLVM atomic-diagnostics.mlir atomic.mlir

[mlir][acc] Fix `acc.atomic.read` lowering when `v` or `x` is complex (#248002)

`acc.atomic.read` allows `v` and `x` of different types, and the value
read from `x` is converted to the type of `v`. The LLVM lowering
converted between the types used for the atomic access, where a complex
value is an integer of the same size. So a complex `x` was converted as
an integer, and a complex `v` was the target of an integer conversion.
For example:

```mlir
acc.atomic.read %v = %x : !fir.ref<f32>, !fir.ref<complex<f32>>, complex<f32>
```

was lowered to

```mlir
%rmw = llvm.atomicrmw _or %x, %zero monotonic : !llvm.ptr, i64
%val = llvm.sitofp %rmw : i64 to f32
```

    [28 lines not shown]
DeltaFile
+89-4mlir/lib/Conversion/OpenACCToLLVM/ACCAtomicPatterns.cpp
+42-0mlir/test/Conversion/OpenACCToLLVM/atomic.mlir
+10-0mlir/test/Conversion/OpenACCToLLVM/atomic-diagnostics.mlir
+141-43 files

LLVM/project c72f851 — libc/src/__support/File file.h file.cpp, libc/src/__support/File/linux file.h

[libc] Fix File::close() cleanup and static stream ownership (#247399)

In File::close (1) always reset buffer state and detach any owned buffer
before releasing the lock; (2) unlink the stream from File::list_all
before freeing the detached buffer, eliminating the use-after-free race
with concurrent fflush(nullptr); (3) remove redundant per-backend
File::remove_file() calls; (4) always release resources even when
flushing buffered writes fails, reporting EIO on short writes.

Add a 1-bit own_file flag in File, mark static stdin/stdout/stderr
instances on Linux as false so closing them does not delete static
storage, and reset LinuxFile::fd to -1 before returning.

Assisted-by: LLM
DeltaFile
+168-1libc/test/src/__support/File/file_test.cpp
+47-1libc/test/src/__support/File/platform_file_test.cpp
+29-12libc/src/__support/File/file.cpp
+12-9libc/src/__support/File/linux/file.h
+17-0libc/test/src/__support/File/CMakeLists.txt
+10-3libc/src/__support/File/file.h
+283-267 files not shown
+291-3813 files

LLVM/project fdec1d0 — mlir/include/mlir/Interfaces ValueBoundsOpInterface.h, mlir/lib/Interfaces ValueBoundsOpInterface.cpp

[mlir][Interfaces] Space out constant bound queries during traversal (#247915)

Default constant-bound analysis calls `getConstantBound64` after each
visited value. Each call projects the growing constraint system, making
long arithmetic slices expensive to analyze.

Check the default stopping condition at exponentially spaced visits and
retain the successful result for subsequent visits. The final bound
query still runs after traversal, and custom stopping conditions keep
their existing behavior. Add coverage for lower, upper, and equal bounds
that become available between the last scheduled check and the end of
traversal.

Fixes #247369.

Validation used main `46d10a70f76a` on x86-64 with GCC 12, `-O1`, and
assertions enabled.

- All 25 targeted value-bounds lit tests passed.

    [12 lines not shown]
DeltaFile
+22-0mlir/test/Dialect/Arith/value-bounds-op-interface-impl.mlir
+9-4mlir/lib/Interfaces/ValueBoundsOpInterface.cpp
+2-2mlir/include/mlir/Interfaces/ValueBoundsOpInterface.h
+33-63 files

LLVM/project bae5625 — llvm/lib/Analysis InstructionSimplify.cpp, llvm/lib/Transforms/InstCombine InstCombineSelect.cpp

[InstSimplify] Support dropping poison-generating annotations (#247632)

There is a recurring problem where a transform can conceptually be part
of InstSimplify because it does not create new instructions, but needs
to drop poison-generating annotations in some cases. This is mainly
relevant for select folds.

The main case is simplifySelectWithEquivalence(), which handles this by
running without flag-dropping in InstSimplify, and then with
flag-dropping as a separate InstCombine transform. However, we also have
other folds that are currently affected by this issue, such as
simplifyCmpSelOfMaxMin(). We can fix them by moving them to InstCombine
-- but this is awkward if some parts of the fold require annotation
dropping, while others don't.

Overall, I think it may be worthwhile to just support "simplify with
dropped annotations" more generally in InstSimplify. If DropAnnotations
is passed, the caller is expected to drop annotations on those
instructions if simplification succeeds. If it's not passed,

    [9 lines not shown]
DeltaFile
+91-60llvm/lib/Analysis/InstructionSimplify.cpp
+9-27llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
+22-12llvm/test/Transforms/InstSimplify/select.ll
+29-0llvm/test/Transforms/InstSimplify/select-icmp.ll
+15-10llvm/test/Transforms/InstSimplify/abs_intrinsic.ll
+14-8llvm/test/Transforms/InstSimplify/select-abs.ll
+180-1176 files not shown
+239-13012 files

LLVM/project 44b4b35 — bolt/docs profiles.md

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

LLVM/project b66220d — bolt/lib/Profile DataAggregator.cpp, bolt/test/AArch64 compare-and-branch-reorder-blocks.S

[BOLT] Migrate lbr cmdline options to brstack
DeltaFile
+14-6clang/utils/perf-training/perf-helper.py
+3-3bolt/test/AArch64/legacy-longjmp/compare-and-branch-unsupported.S
+3-3bolt/test/AArch64/compare-and-branch-reorder-blocks.S
+5-1bolt/lib/Profile/DataAggregator.cpp
+4-1flang/test/CMakeLists.txt
+4-1clang/tools/driver/CMakeLists.txt
+33-1521 files not shown
+61-4027 files

LLVM/project 0cba5b8 — bolt/include/bolt/Profile DataReader.h, bolt/lib/Profile DataReader.cpp

[BOLT] Read and write brstack terminology
DeltaFile
+47-0bolt/test/verify-yaml-profile-flags.s
+34-0bolt/test/verify-fdata-profile-header.s
+20-10bolt/tools/merge-fdata/merge-fdata.cpp
+9-4bolt/lib/Profile/DataReader.cpp
+5-6bolt/include/bolt/Profile/DataReader.h
+4-4bolt/test/merge-fdata-no-lbr-mode.test
+119-2426 files not shown
+166-6732 files

LLVM/project ee46d24 — bolt/include/bolt/Profile DataAggregator.h, bolt/lib/Profile DataReader.cpp DataAggregator.cpp

[BOLT][NFC] Replace LBR usages with branch stack
DeltaFile
+51-51bolt/lib/Profile/DataAggregator.cpp
+34-33bolt/include/bolt/Profile/DataAggregator.h
+0-58bolt/test/X86/perf-script-lbr.test
+58-0bolt/test/X86/perf-script-brstack.test
+14-14bolt/tools/merge-fdata/merge-fdata.cpp
+8-8bolt/lib/Profile/DataReader.cpp
+165-1644 files not shown
+180-17910 files

LLVM/project ee2a053 — llvm/lib/Transforms/Scalar GVN.cpp

[GVN] Skip `areCallValsEqual` in MSSA-path when phi-translating read-only calls (#247989)

For read-only calls, the VN expression that GVN creates consists of the
callee and the value numbers of the arguments. When using MSSA,
`addMemoryStateToExp` appends to the expression the memory state
of the call too, i.e., the most recent write that may have changed the
memory the call reads.

Therefore, when the VN expression of a read-only call is phi-translated
into a predecessor, and it matches the expression of an existing call,
the two are already known to be equal and no further `areCallValsEqual`
check is needed.
DeltaFile
+6-1llvm/lib/Transforms/Scalar/GVN.cpp
+6-11 files

LLVM/project 08c4bb5 — flang/lib/Lower OpenACC.cpp, flang/test/Lower/OpenACC locations.f90

[flang][OpenACC] Record loop locations for `acc.loop` without bounds (#248060)

Loop locations were collected while processing loop bounds or
privatizing induction variables. An `acc.loop` lowered without bounds
from a `DO CONCURRENT` or a `DO WHILE` therefore got an `#acc.loop_loc`
with an empty loop list. That list printed as `loops = >`, which does
not parse, so printing such IR with debug information and reading it
back failed.

Collect the loop locations in one place for both cases: one location per
`DO` in the nest, or the location of the `DO` statement of a `DO
CONCURRENT` or `DO WHILE`.

Assisted-by: Claude Code (Claude Opus 5.5)
DeltaFile
+31-12flang/lib/Lower/OpenACC.cpp
+38-0flang/test/Lower/OpenACC/locations.f90
+69-122 files

LLVM/project bbe5d3c — llvm/lib/Target/RISCV RISCVInsertVSETVLI.cpp, llvm/test/CodeGen/RISCV/rvv reproducer-pr146855.ll fixed-vectors-unaligned.ll

[RISCV] Hoist invariant VSETVLI from ratio-only loop entries (#248021)

`doPRE` in the VSETVLI insertion pass bailed out when a block's entry
state was only known by its SEW/LMUL ratio. That is the common shape of
a loop whose preheader and backedge agree on AVL and VLMAX but differ in
VTYPE, so the loop body kept a `vsetvli` that only needed to execute
once in the preheader.

Use the header's exit state as the PRE candidate and let the existing
predecessor, edge and simulation checks decide. The header must be
invariant under that state, so the rest of the loop's dataflow is
unchanged.

This covers single-block loops as well as loops with a separate latch or
a diamond body. Non-loop joins with a ratio-only entry also benefit when
one predecessor already provides the needed state.

Assisted-by: TRAE CLI (GPT-6)
DeltaFile
+455-0llvm/test/CodeGen/RISCV/rvv/vsetvli-insert.mir
+104-0llvm/test/CodeGen/RISCV/rvv/vsetvli-insert-crossbb.ll
+26-6llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
+8-4llvm/test/CodeGen/RISCV/rvv/fixed-vectors-unaligned.ll
+1-1llvm/test/CodeGen/RISCV/rvv/reproducer-pr146855.ll
+594-115 files

LLVM/project bbc87ef — llvm/lib/Target/RISCV RISCVTargetTransformInfo.cpp, llvm/test/CodeGen/RISCV sched-model-mispredict-penalty.ll select-optimize-conditional-arith.ll

[RISCV] Keep selects with cheap branchless lowering (#246339)

Do not let SelectOptimize convert integer selects that SelectionDAG
lowers to native min/max, sub+minu, or a single czero. This covers
narrow integers and pointers that fit one GPR.

Selects with branch weights or shared conditions still use the existing
profitability heuristics.

Fixes #246338

Assisted-by: TRAE CLI (GPT-6.2-Sol)
DeltaFile
+118-0llvm/test/CodeGen/RISCV/selectopt.ll
+83-0llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
+73-0llvm/test/CodeGen/RISCV/select-optimize-conditional-arith.ll
+3-2llvm/test/CodeGen/RISCV/sched-model-mispredict-penalty.ll
+277-24 files

LLVM/project c214579 — llvm/lib/Target/RISCV/AsmParser RISCVAsmParser.cpp, llvm/lib/Target/RISCV/MCTargetDesc RISCVMCOptions.td

[nspr] initial commit
DeltaFile
+44-1llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
+4-4llvm/test/MC/RISCV/rvy/rvy-basic.s
+2-0llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCOptions.td
+50-53 files

LLVM/project 86a679f — llvm/lib/Analysis BasicAliasAnalysis.cpp, llvm/test/Analysis/BasicAA errno.ll

[BasicAA] Require a precise size in the errno size rule (#248308)

`aliasErrno()` returns `NoAlias` when the location is larger than an
`int`, checking only `Loc.Size.hasValue()`. That is also true for an
upper-bound size, which does not give the size of the access: a masked
load of `<4 x i32>` with only lane 0 enabled has location size
`upperBound(16)` but reads 4 bytes, which may be errno. GVN then
forwards a load of errno across a call that writes it.

Require `Loc.Size.isPrecise()` instead.

Fixes #248307.

Assisted-by: Claude Code
DeltaFile
+25-0llvm/test/Analysis/BasicAA/errno.ll
+3-2llvm/lib/Analysis/BasicAliasAnalysis.cpp
+28-22 files

LLVM/project 188ad57 — mlir/lib/Conversion/OpenACCToLLVM ACCAtomicPatterns.cpp, mlir/test/Conversion/OpenACCToLLVM atomic.mlir

[mlir][acc] Read 128-bit values in `acc.atomic.read` with `cmpxchg`

`acc.atomic.read` reads `x` with an `atomicrmw or` of zero on an integer
of the size of `x`. For a `complex<f64>`, that is an `i128`, which
the LLVM dialect verifier does not accept for integer operations of
`atomicrmw` ([LLVMMemoryOps.cpp#L509-L511][verifier]):

```mlir
acc.atomic.read %v = %x : !fir.ref<complex<f64>>, !fir.ref<complex<f64>>, complex<f64>
```

failed with:

```
'llvm.atomicrmw' op expected LLVM IR integer type
```

Read values wider than 64 bits with a `cmpxchg` of zero with zero
instead, and take the loaded value. It only stores zero where the value

    [11 lines not shown]
DeltaFile
+41-0mlir/test/Conversion/OpenACCToLLVM/atomic.mlir
+15-9mlir/lib/Conversion/OpenACCToLLVM/ACCAtomicPatterns.cpp
+56-92 files

LLVM/project d3dcaee — mlir/lib/Conversion/OpenACCToLLVM ACCAtomicPatterns.cpp, mlir/test/Conversion/OpenACCToLLVM atomic.mlir

[mlir][acc] Fix `acc.atomic.capture` lowering when `v` and `x` differ in type

The `acc.atomic.read` in an `acc.atomic.capture` allows `v` and `x` of
different types, like a standalone `acc.atomic.read`, and the captured
value is converted to the type of `v`. The LLVM lowering stored the
captured value into `v` without converting it. For example:

```mlir
acc.atomic.capture {
  acc.atomic.read %v = %x : !fir.ref<i32>, !fir.ref<f64>, f64
  acc.atomic.write %x = %val : !fir.ref<f64>, f64
}
```

stored the `f64` value into the 4 bytes of `v`:

```mlir
llvm.store %old, %v : f64, !llvm.ptr
```

    [6 lines not shown]
DeltaFile
+110-0mlir/test/Conversion/OpenACCToLLVM/atomic.mlir
+45-20mlir/lib/Conversion/OpenACCToLLVM/ACCAtomicPatterns.cpp
+155-202 files

LLVM/project fccf25e — mlir/lib/Conversion/OpenACCToLLVM ACCAtomicPatterns.cpp, mlir/test/Conversion/OpenACCToLLVM atomic-diagnostics.mlir atomic.mlir

[mlir][acc] Fix `acc.atomic.read` lowering when `v` or `x` is complex

`acc.atomic.read` allows `v` and `x` of different types, and the value
read from `x` is converted to the type of `v`. The LLVM lowering
converted between the types used for the atomic access, where a complex
value is an integer of the same size. So a complex `x` was converted as
an integer, and a complex `v` was the target of an integer conversion.
For example:

```mlir
acc.atomic.read %v = %x : !fir.ref<f32>, !fir.ref<complex<f32>>, complex<f32>
```

was lowered to

```mlir
%rmw = llvm.atomicrmw _or %x, %zero monotonic : !llvm.ptr, i64
%val = llvm.sitofp %rmw : i64 to f32
```

    [24 lines not shown]
DeltaFile
+89-4mlir/lib/Conversion/OpenACCToLLVM/ACCAtomicPatterns.cpp
+42-0mlir/test/Conversion/OpenACCToLLVM/atomic.mlir
+10-0mlir/test/Conversion/OpenACCToLLVM/atomic-diagnostics.mlir
+141-43 files

LLVM/project 75d6b23 — clang/lib/Driver/ToolChains OpenBSD.cpp NetBSD.cpp, clang/lib/Driver/ToolChains/Arch Sparc.cpp

[Driver][Sparc] Pick the -A assembler flag from the CPU's features (#247842)

getSparcAsmModeForCPU() had its own CPU name table, separate from the
features Clang compiles for. It missed CPUs like v7 and myriad2, gave
ultrasparc and ultrasparc3 the plain -Av9/-Av8plus, and ignored -mvis*
and -mv8plus.

Pick the flag from the CPU's features in the SPARC TargetParser, with
the -mvis*, -mv8plus and OS default changes applied, so the external
assembler accepts the instructions the compiler can emit:

- ultrasparc gets -Av9a / -Av8plusa and ultrasparc3 gets -Av9b /
  -Av8plusb, as GCC does.
- niagara4 gets -Asparc4, as GCC does.
- v7 gets -Av7, and myriad2 gets -Aleon like the other Myriad 2 CPUs.
- -mno-vis and -mvis3 change the flag, and so does -mv8plus.

sparclite and sparclet have no features of their own, so they are
still matched by name.

Assisted-by: Claude Opus 5.5
DeltaFile
+96-101clang/lib/Driver/ToolChains/Arch/Sparc.cpp
+34-3clang/test/Driver/sparc-as.c
+24-2clang/test/Driver/sparcv9-as.c
+2-2clang/lib/Driver/ToolChains/NetBSD.cpp
+2-2clang/lib/Driver/ToolChains/Gnu.cpp
+1-1clang/lib/Driver/ToolChains/OpenBSD.cpp
+159-1112 files not shown
+161-1128 files

LLVM/project c09f65b — llvm/lib/Transforms/Scalar MemCpyOptimizer.cpp, llvm/test/Transforms/MemCpyOpt memset-memcpy-inline.ll

[MemCpyOpt] Preserve inline flag when creating memset (#247407)

MemCpyOpt creates a regular memset when replacing a memset.inline or
memcpy.inline, which breaks the guarantee that no external function is
called. Create a memset.inline in these cases instead.
DeltaFile
+307-0llvm/test/Transforms/MemCpyOpt/memset-memcpy-inline.ll
+27-9llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
+334-92 files

LLVM/project 79c5f7d — llvm/test/TableGen/DecoderEmitter regclass-by-hwmode.td, llvm/utils/TableGen DecoderTree.h DecoderEmitter.cpp

[TableGen][Decoder] Emit 2-argument RegClassByHwMode decoders for bits<0> (#247448)

Operands with a bits<0> encoding call their decoder with two arguments
(Inst, Decoder), so targets using RegClassByHwMode on bits<0> operands
currently have to hand-write a 2-argument overload in the anonymous
namespace to avoid hiding by the TableGen-generated 4-argument overload.

Track bits<0> operand decoders separately and emit the 2-argument
RegClassByHwMode dispatcher when referenced, forwarding to the member
register classes' 2-argument decoders.

Assisted-by: AI tooling
Pull-Request: https://github.com/llvm/llvm-project/pull/247448
DeltaFile
+77-0llvm/test/TableGen/DecoderEmitter/regclass-by-hwmode.td
+31-20llvm/utils/TableGen/DecoderEmitter.cpp
+1-0llvm/utils/TableGen/DecoderTree.h
+109-203 files

LLVM/project 8450985 — llvm/lib/Target/Mips/Disassembler MipsDisassembler.cpp, llvm/test/TableGen RegClassByHwMode.td

[TableGen][Decoder] Only emit used RegClassByHwMode decoders (#247447)

Track which operand decoder methods are referenced by decoded encodings
before emitting the default RegClassByHwMode dispatchers, skipping any
that are unused (such as classes only decoded via custom operand or
instruction decoders). This lets us drop [[maybe_unused]] on the
emitted decoders and remove the unused stub decoders in MipsDisassembler.

Assisted-by: AI tooling
Pull-Request: https://github.com/llvm/llvm-project/pull/247447
DeltaFile
+91-0llvm/test/TableGen/DecoderEmitter/regclass-by-hwmode.td
+44-32llvm/utils/TableGen/DecoderEmitter.cpp
+15-14llvm/test/TableGen/DecoderEmitter/DecoderEmitterBitwidthSpecialization.td
+0-27llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp
+2-5llvm/test/TableGen/RegClassByHwMode.td
+2-0llvm/utils/TableGen/DecoderTree.h
+154-786 files

LLVM/project 8fdb889 — mlir/docs Interfaces.md, mlir/include/mlir/IR OpDefinition.h

[mlir][ODS] Emit helper function for calling static interface method (#247581)

Instead of:

```c++
InferTypeOpInterface::Concept *inferInterface =
    state.name.getInterface<InferTypeOpInterface>();
inferInterface->inferReturnTypes(...);
```

You can now write:
```c++
InferTypeOpInterface::inferReturnTypes(state.name, ...);
```

Assisted-by: Codex
DeltaFile
+54-16mlir/tools/mlir-tblgen/OpInterfacesGen.cpp
+12-8mlir/include/mlir/IR/OpDefinition.h
+17-1mlir/docs/Interfaces.md
+12-1mlir/test/mlir-tblgen/op-interface.td
+13-0mlir/unittests/IR/InterfaceAttachmentTest.cpp
+2-7mlir/lib/Rewrite/ByteCode.cpp
+110-336 files

LLVM/project 1505136 — llvm/tools/llvm-exegesis/lib SubprocessMemory.cpp

[llvm-exegesis] Use raw syscall for memfd_create (#248351)

There are apparently some buildbots that use a glibc <2.27 which is the
first version to introduce memfd_create. This was released a couple
years after the first Linux kernel version to support memfd_create, so
just use the raw syscall for now as we do in other places.
DeltaFile
+8-2llvm/tools/llvm-exegesis/lib/SubprocessMemory.cpp
+8-21 files