LLVM/project ff84cd9 — utils/bazel/llvm-project-overlay/llvm BUILD.bazel

[bazel][llvm] Export HexagonTargetTdFiles in llvm/BUILD.bazel (#247289)

Add `td_library` rule exporting `lib/Target/Hexagon/**/*.td`.
DeltaFile
+7-0utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+7-01 files

LLVM/project 48a56d0 — llvm/lib/Target/RISCV/GISel RISCVLegalizerInfo.cpp, llvm/test/CodeGen/RISCV/GlobalISel double-intrinsics.ll

[RISCV][GISel] Use iXLen in G_BITCAST legalizer rule. (#246731)
DeltaFile
+138-162llvm/test/CodeGen/RISCV/GlobalISel/double-intrinsics.ll
+3-3llvm/test/CodeGen/RISCV/GlobalISel/irtranslator/bitcast-between-f64-and-i64.ll
+1-1llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
+142-1663 files

LLVM/project ca5f69d — llvm/test/CodeGen/RISCV/GlobalISel/legalizer merge-unmerge-rv32d.mir

[RISCV] Use concrete types and G_BITCAST in merge-unmerge-rv32d.mir. NFC (#246732)
DeltaFile
+14-12llvm/test/CodeGen/RISCV/GlobalISel/legalizer/merge-unmerge-rv32d.mir
+14-121 files

LLVM/project e9f964c — llvm/lib/Target/AArch64 AArch64TargetTransformInfo.cpp, llvm/test/Transforms/SLPVectorizer/AArch64 widening-reuse-shuffle-cost.ll

[𝘀𝗽𝗿] initial version

Created using spr 2.0.0-beta.1
DeltaFile
+15-4llvm/test/Transforms/SLPVectorizer/AArch64/widening-reuse-shuffle-cost.ll
+9-0llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+24-42 files

LLVM/project dcccf8e — clang/lib/CIR/CodeGen CIRGenStmtOpenMP.cpp, clang/test/CIR/CodeGenOpenMP critical.c

[CIR][OpenMP] Fix critical region cleanups at -O2 (#236140)

A local in a `critical` body broke CIR verification at -O2. Emit its
cleanups before `omp.terminator`, using a new `omp::CriticalOp` body
builderEmit the body inside an omp.critical region
DeltaFile
+9-10clang/lib/CIR/CodeGen/CIRGenStmtOpenMP.cpp
+18-0clang/test/CIR/CodeGenOpenMP/critical.c
+10-0mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+5-0mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
+42-104 files

LLVM/project ccea791 — llvm/include/llvm/Analysis IVDescriptors.h, llvm/lib/Analysis IVDescriptors.cpp

[IVDescriptors] Allow non-compare conditions in any-of selects (#236420)

`isAnyOfPattern` only matched `select(cmp, phi, inv)`. Since #204927,
InstCombine turns `zext(and(trunc nuw %flag, %c))` into `select(%c,
%flag, 0)`. A bool flag kept as i8 and updated with `flag &= (x >= a) &
(x <= b)` then becomes `select(and(cmp, cmp), %flag, 0)`, and the loop
is no longer vectorized. LLVM 22 vectorized it as an and reduction.

The vectorizer only uses the condition as a mask, so it can be any i1
value, including one defined outside the loop. It can't be part of the
reduction chain, since the vectorizer replaces the chain and the
condition would become poison. A compare is the exception: the
vectorizer rewrites a compare of the reduction phi to compare the start
value. AddReductionVar checks this once the reduction walk is done.

The first commit adds the tests, so the second shows the change in
output.

Reported in https://github.com/JuliaLang/julia/issues/64384, where the

    [2 lines not shown]
DeltaFile
+953-0llvm/test/Transforms/LoopVectorize/any-of-non-cmp-cond.ll
+26-11llvm/lib/Analysis/IVDescriptors.cpp
+4-5llvm/include/llvm/Analysis/IVDescriptors.h
+983-163 files

LLVM/project 563be38 — mlir/lib/ExecutionEngine LevelZeroRuntimeWrappers.cpp

[MLIR] Include <unordered_map> in LevelZero runtime wrapper (#247290)

The file uses std::unordered_map but included <unordered_set> instead.
Follow up to review comment on #243623.
DeltaFile
+1-1mlir/lib/ExecutionEngine/LevelZeroRuntimeWrappers.cpp
+1-11 files

LLVM/project 0ccc234 — llvm/include/llvm/Transforms/Vectorize VectorCombine.h, llvm/lib/Passes PassRegistry.def PassBuilder.cpp

[VectorCombine] Make TryEarlyFoldsOnly parameter printable and parseable (#247180)

Print the option in `-print-pipeline-passes` and parse in
`-passes='vector-combine<early-folds-only>'`.
DeltaFile
+8-0llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+4-1llvm/lib/Passes/PassRegistry.def
+5-0llvm/lib/Passes/PassBuilder.cpp
+4-0llvm/include/llvm/Transforms/Vectorize/VectorCombine.h
+3-0llvm/test/Other/new-pm-print-pipeline.ll
+24-15 files

LLVM/project 67c4aa8 — compiler-rt/lib/interception interception_linux.h interception.h, compiler-rt/lib/sanitizer_common sanitizer_unwind_linux_libcdep.cpp

[sanitizer] apply clang-format to some files (#243081)

Separate the clang-format of those files to simplify the review of later
additions targeting QNX in them.

Issue: https://github.com/llvm/llvm-project/issues/243075
DeltaFile
+108-107compiler-rt/lib/interception/interception.h
+32-29compiler-rt/lib/sanitizer_common/sanitizer_unwind_linux_libcdep.cpp
+23-24compiler-rt/lib/interception/interception_linux.h
+163-1603 files

LLVM/project 9fce9f1 — llvm/test/Transforms/ConstraintElimination transfer-signed-facts-to-unsigned-is-known-non-negative.ll loops-header-tested-base.ll

[ConstraintElim] Add tests for more induction facts (NFC) (#247272)

Add tests for PN >= Start with PN < B compares, exiting compares in
blocks dominating the latch and loops that exit in their first
iteration. Also adjust existing tests whose loops would exit
immediately.
DeltaFile
+450-10llvm/test/Transforms/ConstraintElimination/induction-phi-compare-header-bound.ll
+347-0llvm/test/Transforms/ConstraintElimination/loop-exits-in-first-iteration.ll
+11-6llvm/test/Transforms/ConstraintElimination/transfer-unsigned-facts-to-signed-is-known-non-negative.ll
+8-8llvm/test/Transforms/ConstraintElimination/induction-condition-in-loop-exit.ll
+7-7llvm/test/Transforms/ConstraintElimination/loops-header-tested-base.ll
+4-3llvm/test/Transforms/ConstraintElimination/transfer-signed-facts-to-unsigned-is-known-non-negative.ll
+827-341 files not shown
+830-377 files

LLVM/project c0ea203 — mlir/lib/Conversion/SPIRVToLLVM SPIRVToLLVM.cpp, mlir/test/Conversion/SPIRVToLLVM bitwise-ops-to-llvm.mlir

[mlir][SPIR-V] Fix BitFieldUExtract lowering for Count equal to the width (#245727)

he convert-spirv-to-llvm lowering of spirv.BitFieldUExtract builds its
mask as ~(-1 << count). When count is the full bit width (legal with
offset 0, it just means "take everything") that is a shift by the bit
width, which LLVM treats as poison. The SPIR-V spec says the result is
base. At -O0 the issue's example happens to print the right value only
because the JIT picks a bzhi for that pattern on a BMI2 host and bzhi
saturates at the operand width, at -O3 the optimizer makes something
arbitrary out of it.

Build the mask as lshr(-1, width - count) instead. That one is exact for
count in [1, width] and only out of range for count == 0, where the spec
says the result is 0, so a single select covers it. For every input the
spec defines (offset + count <= width) all remaining shift amounts are
in range, and the poison arm at count == 0 is never selected.

CHECK lines in bitwise-ops-to-llvm.mlir are updated. I also ran every
legal (offset, count) pair on i8 for a few bases through mlir-runner at

    [7 lines not shown]
DeltaFile
+28-12mlir/test/Conversion/SPIRVToLLVM/bitwise-ops-to-llvm.mlir
+23-6mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp
+51-182 files

LLVM/project d2e891d — mlir/lib/Conversion/SPIRVToLLVM SPIRVToLLVM.cpp, mlir/test/Conversion/SPIRVToLLVM bitwise-ops-to-llvm.mlir

[mlir][SPIR-V] Fix BitFieldSExtract lowering for Count 0 (#245726)

The convert-spirv-to-llvm lowering of spirv.BitFieldSExtract shifts the
field up to the sign bit and then does ashr by width - count. With count
== 0 that is a shift by the full bit width, which LLVM treats as poison
(and with offset 0 the left shift is as well). The SPIR-V spec says the
result is 0 in that case. At -O0 the issue's example (base 7, offset 1,
count 0) prints INT_MIN, at -O3 the optimizer produces arbitrary values.

Add a select that returns 0 when count is 0. The existing shifts are in
range for every other input the spec defines (offset + count <= width),
so they stay as they are; the poison arm is never picked by the select.

CHECK lines in bitwise-ops-to-llvm.mlir are updated. I also ran every
legal (offset, count) pair on i8 for a few bases through mlir-runner at
-O0 and -O3 against a spec model, all match after the change.

BitFieldInsert and BitFieldUExtract have related problems (#238834,
#238836), fixed in separate PRs. The small count-is-zero select block is

    [3 lines not shown]
DeltaFile
+16-4mlir/test/Conversion/SPIRVToLLVM/bitwise-ops-to-llvm.mlir
+14-2mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp
+30-62 files

LLVM/project 09e7eac — mlir/lib/Conversion/SPIRVToLLVM SPIRVToLLVM.cpp, mlir/test/Conversion/SPIRVToLLVM bitwise-ops-to-llvm.mlir

[mlir][SPIR-V] Fix BitFieldInsert lowering for unmasked Insert and Count 0 (#245723)

The convert-spirv-to-llvm lowering of spirv.BitFieldInsert computes
(base & ~mask) | (insert << offset). The second half never trims insert
to count bits, so any high bit of insert lands on top of a bit of base
that is supposed to stay unchanged (base 3, insert -1, offset 0, count 3
gives -1 instead of 7).

The mask itself is built as ~(~(-1 << count) << offset). For count ==
width (legal with offset 0) and for count == 0 with offset == width
(also legal, the spec says the result is just base) those are shifts by
the full bit width, which LLVM treats as poison. At -O0 this happened to
produce base | (insert << offset), at -O3 the optimizer makes something
arbitrary out of it.

This builds the low mask as lshr(-1, width - count) instead, ANDs the
shifted insert with the field mask, and selects base when count is 0.
For every input the SPIR-V spec defines (offset + count <= width) all
remaining shift amounts are in range. When count is 0 the computed arm

    [13 lines not shown]
DeltaFile
+44-24mlir/test/Conversion/SPIRVToLLVM/bitwise-ops-to-llvm.mlir
+33-14mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp
+77-382 files

LLVM/project b817f5e — llvm/include/llvm/MC MCAsmInfo.h, llvm/lib/MC MCAsmInfoCOFF.cpp

[MC][NFC] Make MCAsmInfo non-virtual (#247084)

Configuration should be done through member variables and not through
expensive virtual functions. Saves 1.8kiB of .data.rel.ro.
DeltaFile
+0-10llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.h
+0-10llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp
+0-8llvm/lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.h
+0-8llvm/lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp
+5-3llvm/include/llvm/MC/MCAsmInfo.h
+0-6llvm/lib/MC/MCAsmInfoCOFF.cpp
+5-4531 files not shown
+5-11537 files

LLVM/project 3efc88a — llvm/test/CodeGen/PowerPC xray-conditional-return.mir xray-conditional-return.ll

[PowerPC][XRay][test] Add CR-bit and CTR conditional return tests

The if-converter predicates a return on a single CR bit (BCLR/BCLRn)
or on CTR (BDZLR8/BDNZLR8). PATCHABLE_RET emits these as bare bclr,
bdzlr and bdnzlr, so the function exit is not instrumented, and
getInstSizeInBytes reports a full sled for them, which the object
emitter's size check rejects on assertions builds.

Assisted-by: Claude Code
DeltaFile
+72-0llvm/test/CodeGen/PowerPC/xray-conditional-return.ll
+36-0llvm/test/CodeGen/PowerPC/xray-conditional-return.mir
+108-02 files

LLVM/project cdf514d — mlir/lib/Conversion/MemRefToSPIRV MapMemRefStorageClassPass.cpp, mlir/test/Conversion/MemRefToSPIRV map-storage-class.mlir

[mlir][spirv] Fix assertion on non-signless integer memref memory spaces (#222433)

The default memory space to storage class mappings in
MapMemRefStorageClassPass read the numeric memory space with
IntegerAttr::getInt(), which asserts unless the attribute type is
signless
(or index). The memref verifier accepts any IntegerAttr as memory space,
so
a type like memref<10xf32, 1 : ui64> makes
map-memref-spirv-storage-class
(and convert-gpu-to-spirv, which reuses the same mappings) abort in an
assertions build:

```mlir
%alloc = memref.alloc() alignment = 64 : memref<10xf32, 1 : ui64>
```

Read the raw APInt with tryZExtValue() instead, so signed and unsigned
spellings map exactly like the signless one (1 : ui64 -> Generic, like

    [12 lines not shown]
DeltaFile
+25-0mlir/test/Conversion/MemRefToSPIRV/map-storage-class.mlir
+12-4mlir/lib/Conversion/MemRefToSPIRV/MapMemRefStorageClassPass.cpp
+37-42 files

LLVM/project 50ec882 — mlir/lib/ExecutionEngine LevelZeroRuntimeWrappers.cpp

[MLIR] Fix LevelZero runtime wrapper build with MSVC (#243623)

MSVC needs explicit include for \<string\> header.
Symbols were not exported correctly for MS Windows.
DeltaFile
+50-33mlir/lib/ExecutionEngine/LevelZeroRuntimeWrappers.cpp
+50-331 files

LLVM/project a44d858 — clang/lib/CIR/CodeGen CIRGenOpenMPClause.h CIRGenStmtOpenMP.cpp, clang/test/CIR/CodeGenOpenMP parallel.c not-yet-implemented.c

[CIR][OpenMP] Add support for OpenMP reduction clause

This patch adds support for the OpenMP reduction clause on the teams and for
directives for reductions with built-in identifiers on local scalar integer and
floating-point variables. Other cases, such as user-defined reductions,
modifiers, arrays and globals, are reported as not yet implemented.

Assisted-by: Cursor / Claude Opus 5.5 Medium
DeltaFile
+212-0clang/lib/CIR/CodeGen/CIRGenOpenMPClause.cpp
+137-45clang/lib/CIR/CodeGen/CIRGenStmtOpenMP.cpp
+173-0clang/test/CIR/CodeGenOpenMP/target-reduction.c
+33-1clang/test/CIR/CodeGenOpenMP/not-yet-implemented.c
+25-0clang/lib/CIR/CodeGen/CIRGenOpenMPClause.h
+19-0clang/test/CIR/CodeGenOpenMP/parallel.c
+599-466 files

LLVM/project a870d0b — clang/include/clang/CIR/Dialect/IR CIRAttrs.td, clang/lib/CIR/CodeGen CIRGenFunction.h CIRGenStmt.cpp

[CIR] Add inner-unroll-and-jam loop lowering to CIRGen (#235149)

While looking into the Lower-to-LLVM for loop information, I discovered
that the unroll-and-jam handling is particularly difficult to do once
we've lost the loop state. I had initially hoped we could do without a
lot of this (and have lowering manage it), but that doesn't seem to be
the case without a ton of complexity.

This patch adds the scope objects to do the calcuation for this info.
When a loop is unrolled and jammed by the loop around it, its hints are
split like classic codegen does in LoopInfo::finish(): the loop keeps
the hints for what happens before the jam, and the hints for what
happens after it are kept by the outer loop in a new
'unroll_and_jam_inner' parameter of '#cir.loop_hint'.

The hints in 'unroll_and_jam_inner' are for a different loop than the
one they are attached to, so they record that loop's 'loop_id' (and
whether it was vectorized). To have the id available, it is now created
by the scope object when the loop's hints are, instead of when the loop
op is created.
DeltaFile
+124-16clang/lib/CIR/CodeGen/CIRGenStmt.cpp
+105-0clang/test/CIR/CodeGen/loop-hints.cpp
+48-0clang/test/CIR/IR/invalid-loop-hints.cir
+31-0clang/lib/CIR/Dialect/IR/CIRAttrs.cpp
+26-2clang/include/clang/CIR/Dialect/IR/CIRAttrs.td
+25-0clang/lib/CIR/CodeGen/CIRGenFunction.h
+359-182 files not shown
+381-218 files

LLVM/project d06c076 — llvm/lib/Analysis Loads.cpp

[Loads] Optimize early return check order in `ConstGlobalLoad::fromLoadInst` (NFC) (#247250)

Addresses the compile time regression mentioned in
https://github.com/llvm/llvm-project/pull/242822#issuecomment-7284520018.

- Regression:
https://llvm-compile-time-tracker.com/compare.php?from=484552add0fb92195f2e3f70734adf4a57f8ebc0&to=ecc95df4104d19952f3d387ee154987562ec93c1&stat=instructions:u
- This PR:
https://llvm-compile-time-tracker.com/compare.php?from=3274c450f7c57be8fa1d5d067cffc96f14e8f1e7&to=56f52ae1f8ac900fe7626853c61796670e198e2e&stat=instructions:u
DeltaFile
+7-5llvm/lib/Analysis/Loads.cpp
+7-51 files

LLVM/project db46c6d — lld/ELF OutputSections.cpp, lld/test/ELF/linkerscript enable-non-contiguous-regions-merge.test

[lld][ELF] Fix use-after-free in section spilling

SHF_MERGE sections are finalized using code that uses try_emplace on a
DenseMap, but the second argument is based on an iterator into the same
map. Since try_emplace takes its arguments by reference and may
reallocate the map, this causes a use-after-free when SHF_MERGE sections
may spill between output sections. Fix this by copying the argument
first. Add a regression test that catches the issue under ASan.

Fixes #245888
DeltaFile
+23-0lld/test/ELF/linkerscript/enable-non-contiguous-regions-merge.test
+4-2lld/ELF/OutputSections.cpp
+27-22 files

LLVM/project f5f4e25 — llvm/docs LangRef.md, llvm/lib/Transforms/IPO ConstantMerge.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+10-15llvm/lib/Transforms/IPO/ConstantMerge.cpp
+16-1llvm/test/Transforms/ConstantMerge/unnamed-addr.ll
+9-5llvm/test/Transforms/ConstantMerge/merge-both.ll
+4-5llvm/docs/LangRef.md
+4-4llvm/test/Transforms/ConstantMerge/dont-merge.ll
+3-3llvm/test/Transforms/ConstantMerge/merge-comdat.ll
+46-332 files not shown
+49-368 files

LLVM/project cf04057 — llvm/docs LangRef.md

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

Created using spr 1.3.7

[skip ci]
DeltaFile
+4-5llvm/docs/LangRef.md
+4-51 files

LLVM/project bb77785 — llvm/test/CodeGen/X86 vector-shuffle-combining-avx2.ll pdep-vector-128.ll

[DAG] isGuaranteedNotToBeUndefOrPoison - load(constant_pool) add DemandedElts handling (FIXED) (#247209)

Reported on #245048 + #246154 - #243498 failed to return true if all the
demanded elements were constant and not undef/poison (so most of the
test changes were always returning false and relying on followup
isGuaranteedNotToBeUndefOrPoison calls after lowering to shuffles etc.).
DeltaFile
+103-103llvm/test/CodeGen/X86/vector-fshr-512.ll
+75-75llvm/test/CodeGen/X86/vector-shift-lut.ll
+53-53llvm/test/CodeGen/X86/vector-fshr-256.ll
+50-50llvm/test/CodeGen/X86/usubsat-narrow.ll
+47-47llvm/test/CodeGen/X86/pdep-vector-128.ll
+14-14llvm/test/CodeGen/X86/vector-shuffle-combining-avx2.ll
+342-3429 files not shown
+364-37115 files

LLVM/project d43ccca — mlir/lib/Conversion/ComplexToStandard ComplexToStandard.cpp, mlir/test/Conversion/ComplexToStandard convert-to-standard.mlir

[mlir][ComplexToStandard] Lower complex.sqrt without trigonometric functions (#246204)

The lowering of `complex.sqrt` goes through `atan2`, `cos` and `sin`, so
exact results are lost to rounding, e.g. `sqrt(-1)` is `(-4.37114e-08,
1)` in `f32`. This patch uses the algebraic form that the comment above
`SqrtOpConversion` already cites:

    t = sqrt((|z| + |re|) / 2)
    u = |im| / (2 * t)
    sqrt(z) = re >= 0 ? (t, copysign(u, im)) : (u, copysign(t, im))

**Overflow:** the operand is scaled by a power of two, so the overflow
fixed in https://github.com/llvm/llvm-project/pull/88480 does not come
back.

**Accuracy:** in a C model compared against glibc `csqrt` on random
inputs, the new expansion is within 3 ulp. The old one is off by 3 ulp
or more for about 30% of them.


    [54 lines not shown]
DeltaFile
+225-125mlir/test/Conversion/ComplexToStandard/convert-to-standard.mlir
+113-52mlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp
+57-3mlir/test/Integration/Dialect/Complex/CPU/correctness.mlir
+14-15mlir/test/Integration/Dialect/Complex/CPU/special-values.mlir
+409-1954 files

LLVM/project 010ce0b — llvm/lib/Analysis LoopAccessAnalysis.cpp, llvm/test/Analysis/LoopAccessAnalysis stride-access-dependence.ll

[LAA] Decouple isNoWrap from getStrideFromAR (NFC) (#229903)

The call to getStrideFromAddRec in isNoWrap is unnecessary, and the
responsibility can be shifted to callers for clarity. The
createCheckForAccess use-site previously had a misleading nullopt Stride
argument.
DeltaFile
+36-0llvm/test/Analysis/LoopAccessAnalysis/stride-access-dependence.ll
+16-19llvm/lib/Analysis/LoopAccessAnalysis.cpp
+52-192 files

LLVM/project b55ad61 — clang/docs LanguageExtensions.md

[docs] Document some C++ standard library intrinsics (#247115)

This adds documentation for `__builtin_launder`, `__builtin_bit_cast`,
`__builtin_is_constant_evaluated`, and `__builtin_is_within_lifetime`
(ordered by their age within the C++ standard).

For each intrinsic, the description simply delegates to the cppreference
documentation for the standard library function, such as for
`std::launder`. Otherwise, we would need to maintain our own
documentation of behavior, which would be quite challenging.
DeltaFile
+14-0clang/docs/LanguageExtensions.md
+14-01 files

LLVM/project bae055b — mlir/include/mlir/Dialect/LLVMIR LLVMOpBase.td LLVMIntrinsicOps.td, mlir/lib/Dialect/LLVMIR/IR LLVMGeneralIntrinsicOps.cpp

[mlir][LLVM] Add an inherent strictfp attribute to intrinsic ops

Prototype alternative to the discardable llvm.strictfp attribute: give
every LLVM_IntrOp an optional `strictfp` UnitAttr in its arguments. Export
sets the call-site strictfp attribute, import reads it back. Constrained
and debug intrinsics opt out with `requiresStrictfp = 0`.

Ops that spell their own arguments now append baseArgs, assembly formats
without prop-dict print `strictfp`, and callers of builders that lost
their defaults pass the attribute explicitly.

Assisted-by: Claude Code (claude-opus-5-5).
DeltaFile
+260-198mlir/include/mlir/Dialect/LLVMIR/LLVMIntrinsicOps.td
+30-0mlir/test/Target/LLVMIR/strictfp-intrinsics.mlir
+23-4mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td
+25-0mlir/test/Target/LLVMIR/Import/intrinsic-strictfp.ll
+2-2mlir/lib/Dialect/LLVMIR/IR/LLVMGeneralIntrinsicOps.cpp
+340-2045 files

LLVM/project b354cc0 — llvm/docs LangRef.md

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+4-5llvm/docs/LangRef.md
+4-51 files

LLVM/project 81c99ce — clang/docs ReleaseNotes.md, clang/lib/Basic TargetInfo.cpp

[CUDA][HIP] Mangle language address spaces by name on the device

For a kernel that takes a pointer in a language address space, such as
`__attribute__((opencl_global)) int *`, the device mangles the address space by
number (`_Z6kernelPU3AS1i`) but the host mangles it by name
(`_Z6kernelPU8CLglobali`). The host registers the kernel with its own name, so
the kernel can't be found at launch. The host can't use the numbers instead,
since it doesn't know how the device maps them, e.g. SPIR-V chooses its map
based on the device's language options.

I understand this is not a typical CUDA code, because CUDA doesn't have the
concept of address spaces because of the "unified pointer" design, but I still
think the host and device code should be able to use the same mangling for the
same kernel.

This PR was assisted by AI but I reviewed all the changes.
DeltaFile
+31-0clang/test/CodeGenCUDA/device-name-address-space.cu
+10-0clang/docs/ReleaseNotes.md
+8-0clang/lib/Basic/TargetInfo.cpp
+1-1clang/test/CIR/CodeGenHIP/spirv-constant-addrspace.hip
+50-14 files