LLVM/project 2dbd582 — flang/include/flang/Optimizer/Builder Character.h, flang/lib/Optimizer/Builder Character.cpp

[flang] Address review comments on chained concatenation fusion

Let concatenation fusion cross operations that only allocate, like the
hlfir.declare of a character literal operand, so that chains ending with a
literal are fused into one buffer. Only operations that may write or free
memory, or whose effects are unknown, now prevent the fusion.

Remove CharacterExprHelper::createConcatenate, which no longer has users.

Add bufferization tests for concatenations whose operands all have a
compile-time length, and for character kind 4.
DeltaFile
+68-0flang/test/HLFIR/concat-bufferization.fir
+27-0flang/test/HLFIR/character-expression-lifetimes.fir
+0-25flang/lib/Optimizer/Builder/Character.cpp
+4-2flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp
+0-4flang/include/flang/Optimizer/Builder/Character.h
+99-315 files

LLVM/project bb3fe9a — flang/lib/Optimizer/HLFIR/IR HLFIROps.cpp, flang/lib/Optimizer/HLFIR/Transforms BufferizeHLFIR.cpp

[flang] Fuse chained character concatenations into one buffer

Lowering creates one binary hlfir.concat per // operator, so a // b // c
was evaluated into an intermediate buffer that was then copied into the
result buffer. Add a canonicalization that folds a single-use hlfir.concat
into its user when no operation in between may modify or release its
operands, and bufferize hlfir.concat with any number of operands. The
buffer is now sized with the hlfir.concat length operand, which can be
computed outside of elemental loops, instead of the sum of the operand
lengths computed in the loop body.
DeltaFile
+57-60flang/test/HLFIR/concat-bufferization.fir
+59-0flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp
+51-0flang/test/HLFIR/character-expression-lifetimes.fir
+22-15flang/test/HLFIR/associate-codegen.fir
+23-14flang/lib/Optimizer/HLFIR/Transforms/BufferizeHLFIR.cpp
+10-10flang/test/Transforms/character-expression-storage.f90
+222-996 files not shown
+243-10512 files

LLVM/project 93ddc20 — flang/lib/Lower ConvertExprToHLFIR.cpp, flang/lib/Optimizer/Builder HLFIRTools.cpp

[flang] Track character temporary lifetimes for safe stack placement

Dynamic character expression buffers could grow the stack on every
iteration of an unstructured loop because their lifetimes were hidden
from allocation placement. Emit hlfir.destroy for them, add an explicit
cleanup region to hlfir.yield_element, and preserve both through array
constructor lowering, elemental inlining, WHERE lowering and
bufferization, which now allocates these buffers with fir.allocmem.
When such an allocation cannot be hoisted out of the loop, reclaim its
stack space with one stacksave/stackrestore pair per block. Allocation
placement then keeps these temporaries on the stack in every mode,
including offload regions (except under -fdynamic-heap-array).
DeltaFile
+136-102flang/lib/Lower/ConvertExprToHLFIR.cpp
+142-0flang/test/Transforms/character-expression-storage.f90
+132-0flang/test/HLFIR/inline-elemental-cleanup-cfg.fir
+83-31flang/lib/Optimizer/Builder/HLFIRTools.cpp
+105-0flang/test/Transforms/stack-arrays-block-lifetime.fir
+86-0flang/test/Transforms/character-temporary-placement.fir
+684-13353 files not shown
+1,588-46959 files

LLVM/project cafc979 — flang/lib/Optimizer/HLFIR/IR HLFIROps.cpp, flang/lib/Optimizer/Transforms StackArrays.cpp

[flang] Address review comments on character temporary lifetimes

- stack-arrays: accept blocks with properly nested stacksave/stackrestore
  pairs, such as the ones around calls with a runtime-length result, as
  long as the allocations made inside a pair are freed before its end.
  These allocations then reuse that pair.
  Document that the block scope makes the peak stack the sum of the
  promoted allocations.
- Only create a cleanup region from the current statement context scope,
  so that array constructors do not get empty cleanup regions that block
  elemental inlining.
- Always allocate kind conversion buffers on the heap and let allocation
  placement move them to the stack, so that constant-length ones are
  hoisted out of loops.
- Canonicalize away the hlfir.concat, hlfir.char_trim, hlfir.set_length
  and hlfir.char_extremum results whose only uses are hlfir.destroy, such
  as the SET_LENGTH bypassed by structure constructor lowering.
- Do not let hlfir.associate take over the storage of an hlfir.no_reassoc
  operand that has other uses.
- Use %flang_fc1 in the new Fortran tests.
DeltaFile
+105-0flang/test/Transforms/stack-arrays-block-lifetime.fir
+63-21flang/lib/Optimizer/Transforms/StackArrays.cpp
+63-0flang/test/HLFIR/destroy-canonicalize.fir
+32-1flang/test/Lower/HLFIR/character-expression-cleanup.f90
+25-0flang/test/HLFIR/associate-codegen.fir
+23-0flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp
+311-2211 files not shown
+362-4917 files

LLVM/project 75111f3 — llvm/lib/Target/AArch64 AArch64ISelDAGToDAG.cpp, llvm/test/CodeGen/AArch64 multi-vector-load-size.ll extbinopload.ll

[AArch64] Transfer memoperands in Select(Post)LoadLane. (#242391)

This avoids assuming that structure lane loads may have an ordered
memory reference.
DeltaFile
+208-210llvm/test/CodeGen/AArch64/extbinopload.ll
+4-4llvm/test/CodeGen/AArch64/multi-vector-load-size.ll
+8-0llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
+220-2143 files

LLVM/project 8445b52 — clang-tools-extra/clang-tidy/bugprone ArgumentCommentCheck.cpp, clang-tools-extra/docs/clang-tidy/checks/bugprone argument-comment.md

[clang-tidy] Make bugprone-argument-comment useful for C code (#237623)

systemd wants a /*name=*/ comment on every argument that is passed as a
bare
NULL, 0, true or false, and proposes a libclang script to check it
(https://github.com/systemd/systemd/pull/43725).
bugprone-argument-comment
can't do this for C code. It skips literals that come from a macro, and
C
spells NULL, and true and false before C23, with macros. It also skips
calls
in macro arguments such as assert_se(f(NULL)).

Let's add an IgnoreMacros option. When it's false, the check also adds
missing
comments to calls in macro arguments. CommentNullPtrs and
CommentBoolLiterals
now match the macros in the new NullPtrMacros and BoolLiteralMacros
options,

    [18 lines not shown]
DeltaFile
+72-11clang-tools-extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp
+72-0clang-tools-extra/test/clang-tidy/checkers/bugprone/argument-comment-macros.cpp
+64-0clang-tools-extra/test/clang-tidy/checkers/bugprone/argument-comment-c.c
+46-0clang-tools-extra/test/clang-tidy/checkers/bugprone/argument-comment-macro-names.c
+28-4clang-tools-extra/docs/clang-tidy/checks/bugprone/argument-comment.md
+18-0clang-tools-extra/test/clang-tidy/checkers/bugprone/argument-comment-gnu98.cpp
+300-152 files not shown
+307-188 files

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

[mlir][ComplexToStandard] Preserve sign of zero im part in exp lowering (#242359)

The current logic sets `isYZero` to true when `y == +0` or `y == -0`,
and then sets the imaginary part to `+0`, discarding the initial sign.
This PR fixes this by instead setting the im part to y when `isYZero` is
true.
DeltaFile
+13-3mlir/test/Integration/Dialect/Complex/CPU/correctness.mlir
+4-4mlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp
+2-2mlir/test/Conversion/ComplexToStandard/convert-to-standard.mlir
+19-93 files

LLVM/project 76ccb80 — llvm/lib/Target/AArch64 AArch64ISelLowering.cpp, llvm/lib/Target/SystemZ SystemZISelLowering.cpp

[AArch64][SystemZ] Don't crash on inline asm non-simple reg ops (#242225)

An aggregate operand whose size is not 1, 8, 16, 32, 64 or 128 bits has
ConstraintVT == MVT::Other. getRegForInlineAsmConstraint called
getSizeInBits() on it for the 'r' and 'x' constraints on AArch64 and the
'r', 'd', 'f' and 'v' constraints on SystemZ, hitting llvm_unreachable.

Return no register class for MVT::Other so the usual "cannot handle
indirect register inputs" / "could not allocate output register"
diagnostics are reported instead.

This is in line with already existing checks, e.g. on AArch64 for other
asm constraints (`w`).

Fixes #239086
Assisted-by: IBM Bob
DeltaFile
+55-0llvm/test/CodeGen/SystemZ/inline-asm-indirect-aggregate-reg.ll
+43-0llvm/test/CodeGen/AArch64/inline-asm-indirect-aggregate-reg.ll
+8-0llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+6-0llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+112-04 files

LLVM/project 038bad3 — llvm/include/llvm/CodeGen TargetSubtargetInfo.h, llvm/lib/CodeGen CodeGenOptions.td CodeGenPrepare.cpp

[CGP] Drop support for non-gep address sinking (#242387)

We had two address sinking implementations, one using geps and the other
using ptrtoint + add + inttoptr. There was a TTI hook to control this,
but due to the way the check was performed, the gep mode was effectively
always enabled.

There is no good reason to ever use the non-gep sinking logic (which
does not preserve provenance information) and the code is effectively
dead right now, so delete it entirely.
DeltaFile
+1-97llvm/lib/CodeGen/CodeGenPrepare.cpp
+0-26llvm/test/Transforms/CodeGenPrepare/X86/baseoffs-sext-bug.ll
+0-6llvm/lib/Target/AArch64/AArch64Subtarget.h
+0-6llvm/include/llvm/CodeGen/TargetSubtargetInfo.h
+0-2llvm/lib/CodeGen/CodeGenOptions.td
+0-1llvm/test/Transforms/CodeGenPrepare/X86/nonintegral.ll
+1-1386 files

LLVM/project 7e331d9 — 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-42llvm/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-1565 files not shown
+171-17911 files

LLVM/project d5c981b — clang/lib/Headers riscv_packed_simd.h, clang/test/CodeGen/RISCV rvp-intrinsics.c

[RISCV][P-ext] Add scalar comparison intrinsics (#239245)

Add the scalar Comparison intrinsics from the P-extension intrinsic spec:
https://github.com/riscv/riscv-p-spec/blob/master/P-ext-intrinsics.adoc#comparison

- `__riscv_mseq_i32_u32` / `__riscv_mseq_u32_u32`
- `__riscv_mslt_u32` / `__riscv_msgt_u32`
- `__riscv_msltu_u32` / `__riscv_msgtu_u32`
- `__riscv_msne_i32_u32` / `__riscv_msne_u32_u32`
- `__riscv_msge_u32` / `__riscv_msle_u32`
- `__riscv_msgeu_u32` / `__riscv_msleu_u32`
DeltaFile
+206-0clang/test/CodeGen/RISCV/rvp-intrinsics.c
+190-0llvm/test/CodeGen/RISCV/rvp-scalar.ll
+97-0cross-project-tests/intrinsic-header-tests/riscv_packed_simd.c
+61-0clang/lib/Headers/riscv_packed_simd.h
+36-0llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+34-0llvm/test/CodeGen/RISCV/rvp-scalar-rv64.ll
+624-04 files not shown
+659-010 files

LLVM/project 58a97ec — llvm/include/llvm/Analysis Loads.h, llvm/lib/Analysis Loads.cpp

[InstCombine] Make a helper for iterating globals elements
DeltaFile
+13-72llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
+79-0llvm/lib/Analysis/Loads.cpp
+36-0llvm/include/llvm/Analysis/Loads.h
+128-723 files

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

[Bazel] Fixes 8345985 (#242984)

This fixes 8345985565b9c9eb8bc9199eac2242dc5af1acbc (#204311).

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

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

LLVM/project 8345985 — mlir/lib/Dialect/Vector/Transforms VectorDistribute.cpp, mlir/test/Dialect/Vector vector-warp-distribute-cfg-loop.mlir vector-warp-distribute.mlir

[mlir][Vector] Reuse args buffers in WarpOpToScfIfPattern (#204311)

Args buffers are unused after lane 0 reads them inside the scf.if (the
Step 3 barrier fences other lanes), so reuse their storage for yielded
values via `memref.subview` when sizes are compatible. Reduces shared
memory footprint with no runtime overhead.
DeltaFile
+126-6mlir/test/Dialect/Vector/vector-warp-distribute.mlir
+103-6mlir/lib/Dialect/Vector/Transforms/VectorDistribute.cpp
+34-0mlir/test/Dialect/Vector/vector-warp-distribute-cfg-loop.mlir
+263-123 files

LLVM/project f525741 — llvm/lib/Target/RISCV RISCVSchedVeeREH1.td, llvm/test/CodeGen/RISCV jumptable-veer-eh1.ll

[RISCV] Add VeeR EH1 scheduling model and tuning (#240913)

VeeR EH1 is a 9-stage, 2-wide in-order core with two ALUs, one
load/store unit and one pipelined multiplier. Load and multiply results
reach an ALU consumer after 3 cycles, a branch can issue in the same
cycle as the load or multiply it depends on (it executes in the EX4
secondary ALU), and the divider stalls decode until it finishes. Checked
against cycle-accurate simulation of the v1.9 RTL.

Use the model for -mcpu=chipsalliance-veer-eh1, with tuning from the
same simulation: the RISC-V unroll preferences (TuneNoDefaultUnroll), no
load clustering (no data cache, one load/store unit), post-RA
scheduling, and a minimum jump-table size of 10 (a branch tree is
cheaper below that).

Assisted-by: Claude
DeltaFile
+186-0llvm/lib/Target/RISCV/RISCVSchedVeeREH1.td
+164-0llvm/test/tools/llvm-mca/RISCV/VeeR/veer-eh1-pairing.s
+125-0llvm/test/tools/llvm-mca/RISCV/VeeR/integer.test
+112-0llvm/test/tools/llvm-mca/RISCV/VeeR/veer-eh1-lsu.s
+65-39llvm/test/CodeGen/RISCV/jumptable-veer-eh1.ll
+100-0llvm/test/tools/llvm-mca/RISCV/VeeR/veer-eh1-dual-issue.s
+752-395 files not shown
+825-4211 files

LLVM/project 376f04d — mlir/docs SPIRVToLLVMDialectConversion.md, mlir/lib/Conversion/SPIRVToLLVM SPIRVToLLVM.cpp

[mlir][SPIR-V] Add SPIRVToLLVM conversion for CopyObject (#242840)

Replace spirv.CopyObject with its converted operand

Depends https://github.com/llvm/llvm-project/pull/242837
DeltaFile
+14-1mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp
+13-0mlir/test/Conversion/SPIRVToLLVM/misc-ops-to-llvm.mlir
+2-0mlir/docs/SPIRVToLLVMDialectConversion.md
+29-13 files

LLVM/project 744c90d — mlir/include/mlir/Dialect/SPIRV/IR SPIRVBase.td SPIRVCompositeOps.td, mlir/test/Dialect/SPIRV/IR composite-ops.mlir

[mlir][SPIR-V] Add CopyObject op (#242837)
DeltaFile
+34-0mlir/include/mlir/Dialect/SPIRV/IR/SPIRVCompositeOps.td
+20-0mlir/test/Dialect/SPIRV/IR/composite-ops.mlir
+5-0mlir/test/Target/SPIRV/composite-op.mlir
+2-1mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBase.td
+61-14 files

LLVM/project 28913d8 — clang/lib/Sema SemaAMDGPU.cpp, clang/test/Sema builtins-amdgcn-d16-image-16bit-error.c

[Clang][AMDGPU] Remove manual target feature check for image builtins
DeltaFile
+46-222clang/test/SemaOpenCL/builtins-extended-image-err.cl
+49-211clang/test/SemaOpenCL/builtins-image-load-image-feature-err.cl
+29-122clang/test/SemaOpenCL/builtins-image-store-image-feature-err.cl
+50-56clang/test/Sema/builtins-amdgcn-d16-image-16bit-error.c
+0-16clang/lib/Sema/SemaAMDGPU.cpp
+16-0clang/test/SemaOpenCL/builtins-image-feature-guarded.cl
+190-6271 files not shown
+204-6277 files

LLVM/project 94ef6e7 — llvm/test/CodeGen/NVPTX clz-popc-known-bits.ll

[NVPTX] Only run ptxas on clz-popc-known-bits.ll if it supports sm_70 (#242961)

ptxas from CUDA 13 no longer supports sm_70, so the RUN line added in
#237793 fails on the NVPTX buildbots. Guard it the same way as other
sm_70 tests.

Assisted-by: Claude Code (Claude Opus 5.5)
DeltaFile
+1-1llvm/test/CodeGen/NVPTX/clz-popc-known-bits.ll
+1-11 files

LLVM/project 91988cf — llvm/test/CodeGen/X86 vector-deinterleave7-i16.ll vector-deinterleave8-i64.ll

Merge remote-tracking branch 'origin/main' into users/kito-cheng/rvv-vector-bits-shorter-data
DeltaFile
+29,293-0llvm/test/CodeGen/X86/vector-interleave7-i16.ll
+29,228-0llvm/test/CodeGen/X86/vector-interleaved7-i8.ll
+27,225-0llvm/test/CodeGen/X86/vector-interleave7-i32.ll
+26,140-0llvm/test/CodeGen/X86/vector-deinterleave7-i8.ll
+25,861-0llvm/test/CodeGen/X86/vector-deinterleave8-i64.ll
+25,769-0llvm/test/CodeGen/X86/vector-deinterleave7-i16.ll
+163,516-017,647 files not shown
+1,402,604-297,38917,653 files

LLVM/project 197429d — mlir/lib/Dialect/Arith/IR CMakeLists.txt ArithOps.cpp, mlir/test/Dialect/Arith select-common-elementwise.mlir

[mlir] [arith] Combine op for select (#234818)

Fold select(c, F(a0, a1), F(b0, b1)) into F(select(c, a0, b0), select(c,
a1, b1))

Correctness provement:

Let's discuss the cases ignoring poison first.
As F is elementwise, we have

      F(a1, a2, ..., a_n)[p] = F(a1[p], a2[p], ..., a_n[p])

then for

      L = select(M, F(a0, a1, ..., a_n), F(b0, b1, ..., b_n))
      R = F(select(M, a0, b0), select(M, a1, b1), ....)

   for any position p, we have:


    [35 lines not shown]
DeltaFile
+137-0mlir/test/Dialect/Arith/select-common-elementwise.mlir
+119-0mlir/lib/Dialect/Arith/IR/ArithOps.cpp
+8-0mlir/test/lib/Dialect/Test/TestOps.td
+1-0mlir/lib/Dialect/Arith/IR/CMakeLists.txt
+265-04 files

LLVM/project 05310f0 — clang/lib/Sema SemaAMDGPU.cpp, clang/test/Sema builtins-amdgcn-d16-image-16bit-error.c

[Clang][AMDGPU] Remove manual target feature check for image builtins
DeltaFile
+46-222clang/test/SemaOpenCL/builtins-extended-image-err.cl
+49-211clang/test/SemaOpenCL/builtins-image-load-image-feature-err.cl
+29-122clang/test/SemaOpenCL/builtins-image-store-image-feature-err.cl
+50-56clang/test/Sema/builtins-amdgcn-d16-image-16bit-error.c
+0-16clang/lib/Sema/SemaAMDGPU.cpp
+14-0clang/test/SemaHIP/amdgpu-image-builtins-feature.hip
+188-6271 files not shown
+202-6277 files

LLVM/project 2ae5a02 — llvm/lib/Target/AArch64 AArch64InstrInfo.cpp, llvm/lib/Target/AMDGPU R600InstrInfo.cpp

[Targets] Check Register::isPhysical before converting to MCRegister. (#242858)

Found by adding an assertion to Register::operator MCRegister.
DeltaFile
+3-4llvm/lib/Target/SystemZ/SystemZCopyPhysRegs.cpp
+3-3llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+3-2llvm/lib/Target/X86/X86InstrInfo.cpp
+3-2llvm/lib/Target/AMDGPU/R600InstrInfo.cpp
+2-1llvm/lib/Target/ARM/ThumbRegisterInfo.cpp
+14-125 files

LLVM/project 6518708 — clang-tools-extra/clang-tidy/bugprone MacroConditionCheck.h MacroConditionCheck.cpp, clang-tools-extra/clang-tidy/readability UseConcisePreprocessorDirectivesCheck.cpp

[clang-tidy] Add bugprone-macro-condition check (#210768)

Warns about inconsistent macro usage in preprocessor conditions.

  #define USE_FOO 0
  #ifdef USE_FOO
  // ...no preprocessor directives testing the value of USE_FOO
  #endif

Here USE_FOO is defined to a value (and furthermore defined to evaluate
to false) but the preprocessor condition only checks for the macro being
defined.

Fixes #27438
DeltaFile
+693-0clang-tools-extra/clang-tidy/bugprone/MacroConditionCheck.cpp
+247-0clang-tools-extra/test/clang-tidy/checkers/bugprone/macro-condition.cpp
+112-0clang-tools-extra/docs/clang-tidy/checks/bugprone/macro-condition.md
+27-28clang-tools-extra/clang-tidy/readability/UseConcisePreprocessorDirectivesCheck.cpp
+40-0clang-tools-extra/clang-tidy/utils/LexerUtils.cpp
+34-0clang-tools-extra/clang-tidy/bugprone/MacroConditionCheck.h
+1,153-2810 files not shown
+1,241-6516 files

LLVM/project 7c3a9f2 — libc/src/__support/OSUtil/linux/syscall_wrappers personality.h pkey_mprotect.h

[libc] Simplify open/personality/pkey_mprotect/sched_getaffinity error handling (#242774)
DeltaFile
+3-6libc/src/__support/OSUtil/linux/syscall_wrappers/sched_getaffinity.h
+3-6libc/src/__support/OSUtil/linux/syscall_wrappers/open.h
+2-6libc/src/__support/OSUtil/linux/syscall_wrappers/pkey_mprotect.h
+2-5libc/src/__support/OSUtil/linux/syscall_wrappers/personality.h
+10-234 files

LLVM/project 4d5ae12 — orc-rt/include/orc-rt/support SymbolLookupSet.h, orc-rt/include/orc-rt/support/sps SPSRemoteSymbolLookupSet.h SPSSymbolLookupSet.h

[orc-rt] Add SymbolLookupSet for interned symbol names (#242969)

SymbolLookupSet holds symbol names as StringPool::Ptrs, so building a
set doesn't copy the name strings. It has the same interface as
RemoteSymbolLookupSet, which holds plain std::strings.

sps::lookupInJITDylib now takes a SymbolLookupSet. To support this:

- StringPool::Ptr and WeakPtr can be serialized to SPSString, which
writes the string's value. Only serialization is supported:
deserializing into an interned string would need a StringPool, and SPS
deserialization has no way to obtain one.

- SymbolLookupSet can be serialized (but not deserialized) as an
SPSSymbolLookupSet. The wire format doesn't change, so controllers are
unaffected.

- SPSRemoteSymbolLookupSet.h is renamed to SPSSymbolLookupSet.h, after
the tag it defines. It now holds the traits for both kinds of set.
DeltaFile
+88-0orc-rt/test/unit/support/SymbolLookupSetTest.cpp
+86-0orc-rt/include/orc-rt/support/sps/SPSSymbolLookupSet.h
+80-0orc-rt/test/unit/support/sps/SPSSymbolLookupSetTest.cpp
+0-75orc-rt/include/orc-rt/support/sps/SPSRemoteSymbolLookupSet.h
+74-0orc-rt/include/orc-rt/support/SymbolLookupSet.h
+0-61orc-rt/test/unit/support/sps/SPSRemoteSymbolLookupSetTest.cpp
+328-13611 files not shown
+411-16617 files

LLVM/project ff34c08 — clang/test/CIR/CodeGenHIP call-conv-lowering-amdgpu-kernel-args.hip

update hip test
DeltaFile
+30-30clang/test/CIR/CodeGenHIP/call-conv-lowering-amdgpu-kernel-args.hip
+30-301 files

LLVM/project 6b1f7ba — clang/lib/Interpreter Interpreter.cpp

[clang-repl] Fix leak when -mllvm parsing fails after #242861 (#242968)

Fix the InterpreterTest.BadLLVMArgs LeakSanitizer failure.
DeltaFile
+8-1clang/lib/Interpreter/Interpreter.cpp
+8-11 files

LLVM/project 3ceb1b3 — clang/test/CIR/CodeGen call-conv-lowering-amdgpu-cxx-records.cpp call-conv-lowering-amdgpu-return-types.c, clang/test/CIR/CodeGenHIP call-conv-lowering-amdgpu-kernel-args.hip

add working test cases after rebase
DeltaFile
+403-16clang/test/CIR/CodeGen/call-conv-lowering-amdgpu-arg-types.c
+146-13clang/test/CIR/CodeGen/call-conv-lowering-amdgpu-return-types.c
+88-13clang/test/CIR/CodeGen/call-conv-lowering-amdgpu-cxx-records.cpp
+39-3clang/test/CIR/CodeGenHIP/call-conv-lowering-amdgpu-kernel-args.hip
+676-454 files

LLVM/project 5edb24e — libc/config/gpu/spirv entrypoints.txt, libc/src/math/spirv ldexp.cpp ldexpf.cpp

[libc][GPU] Enable scalbn/ldexp, rand, remainder for SPIR-V (#242212)

This PR is a follow up of
https://github.com/llvm/llvm-project/pull/236324 to fix more build
issues for SPIR-V compiler-rt builtin tests. "Undefined symbols" from
libc and libm still lead to a bunch of build failures such as rand,
srand, scalbn/f, remainder/f. Before the fix, building results:

Total Discovered Tests: 275
  Unsupported: 125 (45.45%)
  Passed     : 128 (46.55%)
  Failed     :  22 (8.00%)

After the fix:
Total Discovered Tests: 275
  Unsupported: 125 (45.45%)
  Passed     : 136 (49.45%)
  Failed     :  14 (5.09%)
8 more tests can build pass now.

    [8 lines not shown]
DeltaFile
+31-0libc/src/math/spirv/CMakeLists.txt
+20-0libc/src/math/spirv/ldexp.cpp
+20-0libc/src/math/spirv/ldexpf.cpp
+20-0libc/src/math/spirv/scalbn.cpp
+20-0libc/src/math/spirv/scalbnf.cpp
+8-0libc/config/gpu/spirv/entrypoints.txt
+119-06 files