LLVM/project 8932712 — libcxx/docs/DesignDocs RCU.md, libcxx/src/experimental rcu.cpp

[libc++] Implement P2545R4 Read-Copy Update (RCU)  (#175451)

Fixes #105361

---------

Co-authored-by: Louis Dionne <ldionne.2 at gmail.com>
DeltaFile
+453-0libcxx/docs/DesignDocs/RCU.md
+329-0libcxx/test/std/thread/saferecl/saferecl.rcu/saferecl.rcu.base/retire.pass.cpp
+313-0libcxx/test/std/thread/saferecl/saferecl.rcu/saferecl.rcu.domain/rcu_retire.pass.cpp
+273-0libcxx/test/std/thread/saferecl/saferecl.rcu/saferecl.rcu.domain/rcu_synchronize_stress.pass.cpp
+258-0libcxx/src/experimental/rcu.cpp
+233-0libcxx/test/std/thread/saferecl/saferecl.rcu/saferecl.rcu.domain/rcu_barrier.pass.cpp
+1,859-045 files not shown
+3,510-2151 files

LLVM/project 00da207 — llvm/include/llvm/Transforms/InstCombine InstCombiner.h, llvm/lib/Analysis ScalarEvolution.cpp

[LLVM] Migrate call-sites w/o CtxI to new computeSignBits API (#249011)

Migrate to the new computeSignBits SimplifyQuery API in all cases except
when a context-instruction is supplied, defering the issue of safeCtxI
for a follow-up. The SCEV test change can be explained by UseInstrInfo
due to the construction of SQ: there are surely other functional changes
that could be covered with new tests, but we have chosen not to include
new tests.

Assisted-by: llm
DeltaFile
+15-11llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+6-6llvm/test/Analysis/ScalarEvolution/implied-via-division.ll
+3-4llvm/include/llvm/Transforms/InstCombine/InstCombiner.h
+4-3llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+2-1llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombineInternal.h
+1-1llvm/lib/Analysis/ScalarEvolution.cpp
+31-261 files not shown
+32-277 files

LLVM/project 03a0912 — llvm/lib/Target/AArch64 AArch64ISelLowering.cpp, llvm/test/CodeGen/AArch64 icmp-cst.ll

[AArch64] Fix immediate cost in numberOfInstrToLoadImm (#249199)

The immediate was being treated as 32 bits, even if the original imm was
64, producing the wrong costs for converting conditions to cheaper
immediates. Fixes #248733
DeltaFile
+8-12llvm/test/CodeGen/AArch64/icmp-cst.ll
+2-1llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+10-132 files

LLVM/project 86a351b — llvm/lib/Target/PISA PISAISelLowering.cpp PISARegisterBankInfo.cpp

Apply clang-format
DeltaFile
+91-81llvm/lib/Target/PISA/PISALegalizerInfo.cpp
+65-55llvm/lib/Target/PISA/PISAPostLegalizerCombiner.cpp
+70-40llvm/lib/Target/PISA/PISAPreLegalizerCombiner.cpp
+15-19llvm/lib/Target/PISA/PISACallLowering.cpp
+3-3llvm/lib/Target/PISA/PISARegisterBankInfo.cpp
+2-2llvm/lib/Target/PISA/PISAISelLowering.cpp
+246-2001 files not shown
+248-2027 files

LLVM/project 1b71011 — llvm/lib/Target/Sparc SparcRegisterInfo.cpp, llvm/test/CodeGen/SPARC 64abi.ll frame-index-sp-relative.ll

[SPARC] Address objects relative to %sp when far away from %fp (#248810)

Frame objects are addressed relative to %fp. When an access is out of
immediate range from %fp, its address is built with multiple
instructions even if the object is close to %sp. Use %sp instead when
the offset fits there and the call frame is reserved, so that %sp does
not move.

Assisted-by: Claude
DeltaFile
+297-0llvm/test/CodeGen/SPARC/frame-index-sp-relative.ll
+21-1llvm/lib/Target/Sparc/SparcRegisterInfo.cpp
+1-3llvm/test/CodeGen/SPARC/64abi.ll
+319-43 files

LLVM/project 9a7cbcb — llvm/lib/Target/Sparc SparcInstrInfo.td, llvm/lib/Target/Sparc/AsmParser SparcAsmParser.cpp

[SPARC] Add the LEON5 STBAR options to the assembler (#240762)

LEON5 uses unused bits of the STBAR instruction to implement
functionality similar to the MEMBAR instruction in SPARC V9. It also
provides a write-combining hint for the following store.

Assisted-by: Claude
DeltaFile
+35-11llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
+29-0llvm/test/MC/Sparc/leon5-stbar.s
+27-0llvm/lib/Target/Sparc/SparcInstrInfo.td
+18-8llvm/lib/Target/Sparc/MCTargetDesc/SparcInstPrinter.cpp
+24-0llvm/test/MC/Disassembler/Sparc/leon5-stbar.txt
+22-0llvm/test/MC/Sparc/sparc-asm-errors.s
+155-194 files not shown
+168-2010 files

LLVM/project 0e92d5b — llvm/lib/Target/PISA PISAAsmPrinter.cpp

Fixes
DeltaFile
+9-8llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+9-81 files

LLVM/project 81c5b84 — llvm/lib/Target/PISA PISAAsmPrinter.cpp

Add file headers
DeltaFile
+5-0llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+5-01 files

LLVM/project 75a16af — llvm/lib/Target/PISA PISAAsmPrinter.cpp

Inline comparison into the assertion
DeltaFile
+3-3llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+3-31 files

LLVM/project 867a4e1 — llvm/lib/Target/PISA PISAAsmPrinter.cpp, llvm/test/CodeGen/PISA asm-printer-annotation-globals.ll

Remove the user scan and add a test
DeltaFile
+19-0llvm/test/CodeGen/PISA/asm-printer-annotation-globals.ll
+0-18llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+19-182 files

LLVM/project ff37505 — llvm/lib/Target/PISA PISAAsmPrinter.cpp

Document why AsmPrinter::emitGlobalConstant is not used
DeltaFile
+4-0llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+4-01 files

LLVM/project ceeedb2 — llvm/lib/Target/PISA PISAAsmPrinter.cpp

Formatting fix
DeltaFile
+2-1llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+2-11 files

LLVM/project 0e4947d — llvm/lib/Target/PISA PISAAsmPrinter.cpp, llvm/test/CodeGen/PISA asm-printer-unusual-vector-global.ll

Add a test for reportFatalUsageError
DeltaFile
+8-0llvm/test/CodeGen/PISA/asm-printer-unusual-vector-global.ll
+2-3llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+10-32 files

LLVM/project 638359b — llvm/lib/Target/PISA PISAAsmPrinter.cpp, llvm/test/CodeGen/PISA asm-printer-fp-inline-asm.mir

Fix printing FP immediates
DeltaFile
+23-0llvm/test/CodeGen/PISA/asm-printer-fp-inline-asm.mir
+9-2llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+32-22 files

LLVM/project a6a9534 — llvm/lib/Target/PISA PISAAsmPrinter.cpp, llvm/test/CodeGen/PISA unreachable.ll store.ll

Fix issues raised in earlier PRs
DeltaFile
+111-93llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+11-0llvm/test/CodeGen/PISA/asm-printer-unsupported-vector-hint.ll
+3-3llvm/test/CodeGen/PISA/load.ll
+2-2llvm/test/CodeGen/PISA/unreachable.ll
+2-2llvm/test/CodeGen/PISA/store.ll
+2-2llvm/test/CodeGen/PISA/return.ll
+131-1026 files

LLVM/project 2d4c452 — llvm/lib/Target/PISA CMakeLists.txt PISAAsmPrinter.cpp, llvm/test/CodeGen/PISA unreachable.ll return.ll

Add PISA AsmPrinter

Add PISAAsmPrinter to complete the codegen pipeline with end-to-end code
emission.
DeltaFile
+933-0llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+352-0llvm/test/CodeGen/PISA/store.ll
+350-0llvm/test/CodeGen/PISA/load.ll
+37-0llvm/test/CodeGen/PISA/return.ll
+14-0llvm/test/CodeGen/PISA/unreachable.ll
+1-0llvm/lib/Target/PISA/CMakeLists.txt
+1,687-06 files

LLVM/project 3422b14 — llvm/lib/Target/PISA PISATargetMachine.cpp PISAOptimizeRedundantCopies.cpp, llvm/test/CodeGen/PISA asm-printer-fp-inline-asm.mir

Adjustments after rebase
DeltaFile
+16-1llvm/lib/Target/PISA/PISAOptimizeRedundantCopies.cpp
+0-2llvm/lib/Target/PISA/PISATargetMachine.cpp
+1-1llvm/test/CodeGen/PISA/asm-printer-fp-inline-asm.mir
+17-43 files

LLVM/project 1a7ae94 — llvm/test/CodeGen/PISA asm-printer-unsupported-vector-hint-fp128.ll

Add asm-printer-unsupported-vector-hint-fp128.ll test
DeltaFile
+11-0llvm/test/CodeGen/PISA/asm-printer-unsupported-vector-hint-fp128.ll
+11-01 files

LLVM/project 43595c3 — llvm/test/CodeGen/PISA asm-printer-special-globals.ll

Add asm-printer-special-globals.ll to test isIgnoredIntrinsicGlobal
DeltaFile
+48-0llvm/test/CodeGen/PISA/asm-printer-special-globals.ll
+48-01 files

LLVM/project 09bbba1 — llvm/test/CodeGen/PISA load.ll

Remove -verify-machineinstr
DeltaFile
+2-3llvm/test/CodeGen/PISA/load.ll
+2-31 files

LLVM/project a87c8aa — llvm/lib/Target/PISA PISAVerifyTypes.cpp PISAVerifier.cpp

Add file headers
DeltaFile
+6-0llvm/lib/Target/PISA/PISAPropagateNullPointers.cpp
+5-0llvm/lib/Target/PISA/PISAVerifyTypes.cpp
+5-0llvm/lib/Target/PISA/PISAVerifier.cpp
+5-0llvm/lib/Target/PISA/PISAScopeSelector.cpp
+5-0llvm/lib/Target/PISA/PISAReplaceIntrinsics.cpp
+5-0llvm/lib/Target/PISA/PISAOptimizeSubregAccess.cpp
+31-014 files not shown
+101-020 files

LLVM/project e799504 — llvm/lib/Target/PISA PISATargetMachine.cpp

Improve comment
DeltaFile
+2-1llvm/lib/Target/PISA/PISATargetMachine.cpp
+2-11 files

LLVM/project 8a9d68e — llvm/lib/Target/PISA PISAKernelByValArgsLowering.cpp

Formatting fix
DeltaFile
+4-3llvm/lib/Target/PISA/PISAKernelByValArgsLowering.cpp
+4-31 files

LLVM/project 04f8e35 — llvm/lib/Target/PISA PISALegalizeSubregAccess.cpp PISALegalizeCalls.cpp

Add PISA codegen pipeline and lowering passes

Add the IR- and MIR-level passes that make up the PISA code generation
pipeline and wire them into PISAPassConfig in PISATargetMachine:

- Intrinsic handling: PISAEmitIntrinsics, PISAExpandIntrinsics,
    PISAReplaceIntrinsics
- Call/ABI lowering: PISALegalizeCalls, PISAKernelByValArgsLowering
- IR preparation: PISAPropagateNullPointers, PISALayout, PISAConstProp
- Legalization/verification: PISALegalizePredicates, PISAVerifyTypes,
    PISAVerifier
- Post-selection: PISAScopeSelector, PISACacheHintSelector,
    PISALegalizeSubregAccess, PISAOptimizeSubregAccess,
    PISAOptimizeRedundantCopies, PISAMarkConvergentNoMerge,
    PISAInsertLifetimeStart

PISAPassConfig now overrides the GlobalISel and pre/post-regalloc hooks
to run these passes, disables the machine passes that assume physical
registers, and runs the load/store vectorizer and atomic expansion in

    [4 lines not shown]
DeltaFile
+994-0llvm/lib/Target/PISA/PISALegalizePredicates.cpp
+751-0llvm/lib/Target/PISA/PISAInsertLifetimeStart.cpp
+581-0llvm/lib/Target/PISA/PISALayout.cpp
+565-0llvm/lib/Target/PISA/PISAEmitIntrinsics.cpp
+505-0llvm/lib/Target/PISA/PISALegalizeCalls.cpp
+435-0llvm/lib/Target/PISA/PISALegalizeSubregAccess.cpp
+3,831-021 files not shown
+6,216-5927 files

LLVM/project 151e300 — llvm/lib/Target/PISA PISALegalizeCalls.cpp

Simplify, remove redundant comment
DeltaFile
+10-14llvm/lib/Target/PISA/PISALegalizeCalls.cpp
+10-141 files

LLVM/project 094ce36 — llvm/lib/Target/PISA PISAVerifyTypes.cpp PISAExpandIntrinsics.cpp

Do not provide file name in the header
DeltaFile
+1-1llvm/lib/Target/PISA/PISAVerifyTypes.cpp
+1-1llvm/lib/Target/PISA/PISAExpandIntrinsics.cpp
+1-1llvm/lib/Target/PISA/PISAEmitIntrinsics.cpp
+1-1llvm/lib/Target/PISA/PISAConstProp.h
+1-1llvm/lib/Target/PISA/PISAConstProp.cpp
+1-1llvm/lib/Target/PISA/PISACacheHintSelector.cpp
+6-614 files not shown
+20-2020 files

LLVM/project 6a05205 — llvm/lib/Target/PISA PISAKernelByValArgsLowering.cpp PISALegalizePredicates.cpp

Fix issues raised in earlier PRs
DeltaFile
+90-89llvm/lib/Target/PISA/PISALegalizeCalls.cpp
+91-80llvm/lib/Target/PISA/PISALegalizeSubregAccess.cpp
+42-36llvm/lib/Target/PISA/PISAEmitIntrinsics.cpp
+39-36llvm/lib/Target/PISA/PISALayout.cpp
+37-37llvm/lib/Target/PISA/PISALegalizePredicates.cpp
+38-34llvm/lib/Target/PISA/PISAKernelByValArgsLowering.cpp
+337-31217 files not shown
+519-49323 files

LLVM/project c5af13f — llvm/lib/Target/PISA PISAEmitIntrinsics.cpp

Replaced iterator loops with drop_end range loops
DeltaFile
+5-6llvm/lib/Target/PISA/PISAEmitIntrinsics.cpp
+5-61 files

LLVM/project 3d1e1a1 — llvm/lib/Target/PISA PISALegalizeCalls.cpp PISAKernelByValArgsLowering.cpp

Adjustments after rebase
DeltaFile
+1-1llvm/lib/Target/PISA/PISALegalizeCalls.cpp
+1-1llvm/lib/Target/PISA/PISAKernelByValArgsLowering.cpp
+1-1llvm/lib/Target/PISA/PISAExpandIntrinsics.cpp
+1-1llvm/lib/Target/PISA/PISAEmitIntrinsics.cpp
+4-44 files

LLVM/project 2e90fd8 — llvm/lib/Target/PISA PISAScopeSelector.cpp

Add mising include
DeltaFile
+1-0llvm/lib/Target/PISA/PISAScopeSelector.cpp
+1-01 files