LLVM/project 0750948clang/test/CodeGen/LoongArch/lasx builtin.c builtin-alias.c, llvm/lib/Target/AArch64 AArch64SchedHIP12.td

add test

Created using spr 1.3.8-beta.1-arichardson
DeltaFile
+6,869-0llvm/test/tools/llvm-mca/AArch64/HiSilicon/hip12-sve-instructions.s
+2,728-2,728clang/test/CodeGen/LoongArch/lasx/builtin-alias.c
+2,724-2,724clang/test/CodeGen/LoongArch/lasx/builtin.c
+5,269-0llvm/test/tools/llvm-mca/AArch64/HiSilicon/hip12-writeback.s
+3,354-0llvm/lib/Target/AArch64/AArch64SchedHIP12.td
+3,159-0llvm/test/tools/llvm-mca/AArch64/HiSilicon/hip12-neon-instructions.s
+24,103-5,4521,372 files not shown
+81,010-30,0701,378 files

LLVM/project 5f7b217clang/test/CodeGen/LoongArch/lasx builtin.c builtin-alias.c, llvm/lib/Target/AArch64 AArch64SchedHIP12.td

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.8-beta.1-arichardson

[skip ci]
DeltaFile
+6,869-0llvm/test/tools/llvm-mca/AArch64/HiSilicon/hip12-sve-instructions.s
+2,728-2,728clang/test/CodeGen/LoongArch/lasx/builtin-alias.c
+2,724-2,724clang/test/CodeGen/LoongArch/lasx/builtin.c
+5,269-0llvm/test/tools/llvm-mca/AArch64/HiSilicon/hip12-writeback.s
+3,354-0llvm/lib/Target/AArch64/AArch64SchedHIP12.td
+3,159-0llvm/test/tools/llvm-mca/AArch64/HiSilicon/hip12-neon-instructions.s
+24,103-5,4521,371 files not shown
+80,986-30,0701,377 files

LLVM/project 8a75be2llvm/lib/Target/Hexagon HexagonConstExtenders.cpp, llvm/test/CodeGen/Hexagon cext-cmovei-32bit.mir

[Hexagon] Fix reg class for C2_cmoveit/cmoveif cext lowering (#212911)

HexagonConstExtenders::getDirectRegReplacement mapped C2_cmoveit and
C2_cmoveif (32-bit predicated immediate moves into IntRegs) to A2_tfrpt
/ A2_tfrpf - the 64-bit DoubleRegs predicated transfers. When the
const-extender pass found a shared extended immediate profitable to
hoist into a register, it rewrote

    %d:intregs = C2_cmoveit %p:predregs, #imm

into

    %d:intregs = A2_tfrpt %p:predregs, %hoisted:intregs   (BAD)

producing a paired-register transfer with IntRegs operands and tripping
the machine verifier:

    Bad machine code: Illegal virtual register for instruction
    Expected a DoubleRegs register, but got a IntRegs register

    [9 lines not shown]
DeltaFile
+45-0llvm/test/CodeGen/Hexagon/cext-cmovei-32bit.mir
+4-2llvm/lib/Target/Hexagon/HexagonConstExtenders.cpp
+49-22 files

LLVM/project 60a894ellvm/include/llvm/SandboxIR Utils.h, llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer SeedCollector.h

[SandboxVec][SeedCollector] Fix seed insert if can't determine mem access distance (#213807)

Up until now we would insert a memory instruction in a MemSeedBundle
even if we could not determine the access distance against the existing
bundle instructionss. This was causing a crash in the invocation of
upper_bound() as the vector could no longer be partitioned.

The fix is to extend the functions that check the memory access ordering
to return nullopt when the access difference can't be determined.
DeltaFile
+64-4llvm/unittests/Transforms/Vectorize/SandboxVectorizer/SeedCollectorTest.cpp
+15-5llvm/unittests/SandboxIR/UtilsTest.cpp
+13-6llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/SeedCollector.h
+8-7llvm/include/llvm/SandboxIR/Utils.h
+14-0llvm/test/Transforms/SandboxVectorizer/Passes/SeedCollection/seed_collection.ll
+1-1llvm/lib/Transforms/Vectorize/SandboxVectorizer/SeedCollector.cpp
+115-236 files

LLVM/project 3fd375flldb/include/lldb/Utility Listener.h, lldb/source/Core Debugger.cpp

[lldb] Use StringRef when creating Listeners (#214863)

This is primarily motivated to remove the last ConstString from
Debugger.cpp. It would have been possible to write this change without
changing Listener, but then I noticed a few places where we would have
benefitted from changing the interface.
DeltaFile
+4-5lldb/source/Core/Debugger.cpp
+4-4lldb/source/Target/Target.cpp
+3-3lldb/source/Utility/Listener.cpp
+2-2lldb/include/lldb/Utility/Listener.h
+1-1lldb/source/Target/Process.cpp
+14-155 files

LLVM/project 11cffdallvm/docs Telemetry.md CMakePrimer.md, llvm/docs/RISCV RISCVVectorExtension.md

[docs] Finish MyST migration for selected LLVM docs (#214618)

Tracking issue: #201242
See the [migration guide] for more information. 

[migration guide]:
https://llvm.org/docs/SphinxQuickstartTemplate.html#markdown-migration-guidelines
This is a stacked PR based on #214616 , which will be a standalone
commit that
renames *.rst -> *.md before this PR lands for history preservation
purposes.

This was prepared with rst2myst plus LLM-assisted cleanup. I paged
through all the generated HTML looking for migration artifacts, and all
of the differences I could find appear to be formatting error
corrections.
DeltaFile
+557-483llvm/docs/RISCVUsage.md
+501-452llvm/docs/LFI.md
+256-258llvm/docs/yaml2obj.md
+214-235llvm/docs/CMakePrimer.md
+200-230llvm/docs/RISCV/RISCVVectorExtension.md
+174-182llvm/docs/Telemetry.md
+1,902-1,84014 files not shown
+3,032-3,05020 files

LLVM/project ebdda1ellvm/docs SymbolizerMarkupFormat.rst SymbolizerMarkupFormat.md

[docs] Rename selected LLVM docs to Markdown (#214616)

Tracking issue: #201242
See the [migration guide] for more information. 

[migration guide]:
https://llvm.org/docs/SphinxQuickstartTemplate.html#markdown-migration-guidelines

This is the initial straight rename commit. It will probably break the
docs build, but it has to be a separate PR for blame preservation
purposes.
DeltaFile
+0-721llvm/docs/RISCVUsage.rst
+721-0llvm/docs/RISCVUsage.md
+0-672llvm/docs/LFI.rst
+672-0llvm/docs/LFI.md
+0-439llvm/docs/SymbolizerMarkupFormat.rst
+439-0llvm/docs/SymbolizerMarkupFormat.md
+1,832-1,83234 files not shown
+5,153-5,15340 files

LLVM/project debe28dclang/test/CodeGen/LoongArch/lasx builtin.c builtin-alias.c, llvm/lib/Target/AArch64 AArch64SchedHIP12.td

rebase now that dependency has landed

Created using spr 1.3.8-beta.1-arichardson
DeltaFile
+6,869-0llvm/test/tools/llvm-mca/AArch64/HiSilicon/hip12-sve-instructions.s
+2,728-2,728clang/test/CodeGen/LoongArch/lasx/builtin-alias.c
+2,724-2,724clang/test/CodeGen/LoongArch/lasx/builtin.c
+5,269-0llvm/test/tools/llvm-mca/AArch64/HiSilicon/hip12-writeback.s
+3,354-0llvm/lib/Target/AArch64/AArch64SchedHIP12.td
+3,159-0llvm/test/tools/llvm-mca/AArch64/HiSilicon/hip12-neon-instructions.s
+24,103-5,4521,367 files not shown
+80,852-29,9881,373 files

LLVM/project f308e0cclang/test/CodeGen/LoongArch/lasx builtin.c builtin-alias.c, llvm/lib/Target/AArch64 AArch64SchedHIP12.td

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.8-beta.1-arichardson

[skip ci]
DeltaFile
+6,869-0llvm/test/tools/llvm-mca/AArch64/HiSilicon/hip12-sve-instructions.s
+2,728-2,728clang/test/CodeGen/LoongArch/lasx/builtin-alias.c
+2,724-2,724clang/test/CodeGen/LoongArch/lasx/builtin.c
+5,269-0llvm/test/tools/llvm-mca/AArch64/HiSilicon/hip12-writeback.s
+3,354-0llvm/lib/Target/AArch64/AArch64SchedHIP12.td
+3,159-0llvm/test/tools/llvm-mca/AArch64/HiSilicon/hip12-neon-instructions.s
+24,103-5,4521,367 files not shown
+80,852-29,9881,373 files

LLVM/project 3fe75b6clang/include/clang/Basic DiagnosticCodeGenKinds.td, clang/lib/CIR/FrontendAction CIRGenAction.cpp CIRDiagnosticHandler.h

[CIR] Route MLIR diagnostics through clang::DiagnosticsEngine (#199297)

Install a scoped MLIR diagnostic handler on the CIRGenerator's
MLIRContext that translates mlir::Diagnostic severity and location to
clang diag IDs and SourceLocation, so CIR pass / verifier / lowering
errors surface in clang's standard format and respect -W/-R flags.

Disable MLIR multithreading on that context (DiagnosticsEngine is not
thread-safe). Gate the generic CIR-to-CIR fallback errors on
hasErrorOccurred() to avoid double-printing alongside specific routed
diagnostics.
DeltaFile
+245-0clang/unittests/CIR/CIRDiagnosticHandlerTest.cpp
+100-0clang/lib/CIR/FrontendAction/CIRDiagnosticHandler.cpp
+53-0clang/lib/CIR/FrontendAction/CIRDiagnosticHandler.h
+34-0clang/include/clang/Basic/DiagnosticCodeGenKinds.td
+18-4clang/lib/CIR/FrontendAction/CIRGenAction.cpp
+20-0clang/test/CIR/Diagnostics/mlir-error-routing.cu
+470-412 files not shown
+506-1318 files

LLVM/project e88a743llvm/docs SymbolizerMarkupFormat.rst SymbolizerMarkupFormat.md

[docs] Rename selected LLVM docs to Markdown
DeltaFile
+0-721llvm/docs/RISCVUsage.rst
+721-0llvm/docs/RISCVUsage.md
+0-672llvm/docs/LFI.rst
+672-0llvm/docs/LFI.md
+0-439llvm/docs/SymbolizerMarkupFormat.rst
+439-0llvm/docs/SymbolizerMarkupFormat.md
+1,832-1,83234 files not shown
+5,153-5,15340 files

LLVM/project bfe7afbllvm/docs/RISCV RISCVVectorExtension.md

revert to old upper case label names
DeltaFile
+2-2llvm/docs/RISCV/RISCVVectorExtension.md
+2-21 files

LLVM/project 404cd9fllvm/docs DirectXUsage.md RISCVUsage.md, llvm/docs/PDB index.md

[docs] Finish MyST migration for selected docs
DeltaFile
+391-337llvm/docs/LFI.md
+203-207llvm/docs/SymbolizerMarkupFormat.md
+192-202llvm/docs/RISCVUsage.md
+80-44llvm/docs/PDB/index.md
+20-25llvm/docs/DirectXUsage.md
+14-15llvm/docs/RISCV/RISCVVectorExtension.md
+900-8306 files not shown
+913-85912 files

LLVM/project 339190allvm/docs DirectXUsage.md

Fix DX table format
DeltaFile
+17-17llvm/docs/DirectXUsage.md
+17-171 files

LLVM/project a0e1741llvm/docs Telemetry.md CMakePrimer.md, llvm/docs/RISCV RISCVVectorExtension.md

[docs] Convert selected rst docs with rst2myst
DeltaFile
+563-482llvm/docs/RISCVUsage.md
+282-270llvm/docs/SymbolizerMarkupFormat.md
+257-256llvm/docs/yaml2obj.md
+215-235llvm/docs/CMakePrimer.md
+200-229llvm/docs/RISCV/RISCVVectorExtension.md
+175-182llvm/docs/Telemetry.md
+1,692-1,65414 files not shown
+2,771-2,84420 files

LLVM/project 266071fllvm/docs RISCVUsage.md LFI.md, llvm/docs/PDB index.md

[docs] Fix LLVM markdown migration defects
DeltaFile
+15-16llvm/docs/ResponseGuide.md
+7-7llvm/docs/PDB/index.md
+5-6llvm/docs/ReportingGuide.md
+6-5llvm/docs/CodeOfConduct.md
+3-3llvm/docs/LFI.md
+3-0llvm/docs/RISCVUsage.md
+39-371 files not shown
+40-397 files

LLVM/project cfcdf93

[bazel][libc] Update path to syscall.h for darwin aarch64 (#215399)

This file was moved in bfd7024b0d665de02abbfc7b16f593020d2c12c9.
DeltaFile
+0-00 files

LLVM/project 7fe69beclang/lib/CIR/CodeGen CIRGenStmtOpenACCLoop.cpp CIRGenStmtOpenACC.cpp, clang/lib/CodeGen CodeGenFunction.h

[OpenACC] Don't generate a call to emitStmt if we don't have one. (#215387)

OpenACC assumed that the statement it got when parsing the associated
statement would either be an error or a valid statement. However, there
are some cases where a statement does nothing where we don't bother to
generate a statement object at all. This patch makes the OpenACC codegen
tolerant of that.

Fixes: #215246
DeltaFile
+24-0clang/test/CodeGen/openacc-invalid-stmt.cpp
+12-6clang/lib/CodeGen/CodeGenFunction.h
+6-3clang/lib/CIR/CodeGen/CIRGenStmtOpenACC.cpp
+2-1clang/lib/CIR/CodeGen/CIRGenStmtOpenACCLoop.cpp
+44-104 files

LLVM/project 66a11b2clang/lib/StaticAnalyzer/Checkers LifetimeModeling.cpp

Clean up dead symbols.
DeltaFile
+6-0clang/lib/StaticAnalyzer/Checkers/LifetimeModeling.cpp
+6-01 files

LLVM/project 5bb2565flang/lib/Optimizer/OpenMP MapsForPrivatizedSymbols.cpp, flang/test/Transforms omp-maps-for-privatized-symbols.fir

[Flang][OpenMP] Generate maps for allocatable components of privatized symbols for target offload (#214015)

Currently we do not generate maps for allocatable components of derived
types for privatized derived type symbols, this can be a problem when
the variable requires initialization from the original copy, as the
device will try to perform initialization and the data will not be
present to do so. This causes a runtime memory access error on device.
Some example code that can trigger this:

type :: btype
    real(kind=8),allocatable, dimension(:) :: a
end type

!$omp target teams distribute parallel do firstprivate(b)

This does not apply to pointers as they aren't mandated to be
initialized as allocatables are at the moment I believe when they're
sub-objects. But it does apply to allocatables where initialization and
copy blocks are generated.

    [4 lines not shown]
DeltaFile
+44-1flang/test/Transforms/omp-maps-for-privatized-symbols.fir
+24-1flang/lib/Optimizer/OpenMP/MapsForPrivatizedSymbols.cpp
+68-22 files

LLVM/project 8045b02clang/include/clang/Basic DiagnosticDriverKinds.td, clang/lib/Driver Driver.cpp

[flang][AIX] Diagnose unsupported OBJECT_MODE setting and -maix32 option (#209919)

This patch is to align flang's default behavior to the other tools in
toolchain on AIX. Flang assumes 32-bit compile by default. The compile
mode can be overridden by setting environment variable OBJECT_MODE=64 or
specifying the -maix64 option.
DeltaFile
+35-12clang/lib/Driver/Driver.cpp
+28-0flang/test/Driver/aix-object-mode.f90
+5-5flang/test/Driver/m32-option.f90
+2-3flang-rt/test/lit.cfg.py
+4-0flang/test/lit.cfg.py
+3-0clang/include/clang/Basic/DiagnosticDriverKinds.td
+77-206 files

LLVM/project 1cbfd51clang/include/clang/CIR/Dialect/IR CIROps.td CIRAttrs.td, clang/lib/CIR/Dialect/IR CIRDialect.cpp

[CIR] Change the 'inline_kind' enum to have an explicit attribute (#215335)

If we use the builtin automatic inline-kind here, we don't get to have
it printed reasonably/normally. This patch adds the
'genSpecializedAttr=0' and adds an explicit attribute so we print it as
an enum value.
DeltaFile
+24-0clang/test/CIR/IR/invalid-call.cir
+8-8clang/test/CIR/CodeGen/callsite-inline-attributes.cpp
+16-0clang/test/CIR/IR/inline-attrs.cir
+11-2clang/include/clang/CIR/Dialect/IR/CIRAttrs.td
+2-2clang/include/clang/CIR/Dialect/IR/CIROps.td
+1-0clang/lib/CIR/Dialect/IR/CIRDialect.cpp
+62-126 files

LLVM/project 71cc370clang/lib/StaticAnalyzer/Checkers LifetimeModeling.h

Update doc comment for markAsReported.
DeltaFile
+2-2clang/lib/StaticAnalyzer/Checkers/LifetimeModeling.h
+2-21 files

LLVM/project 2ad7d47llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer Scheduler.h, llvm/lib/Transforms/Vectorize/SandboxVectorizer Scheduler.cpp

[SandboxVec][Scheduler] Fix false negatives (#211108)

This patch fixes an issue where trySchedule() could return false even
though scheduling was legal. This would happen after a failed
trySchedule(Bndl1) attempt for a bundle that would span a large number
of instructions. Any subsequent trySchedule(Bndl2) for a bundle that
would span fewer instrs than Bndl1 would return false because the
scheduler would not scan the required instructions to add them to the
ready list.
DeltaFile
+34-1llvm/unittests/Transforms/Vectorize/SandboxVectorizer/SchedulerTest.cpp
+12-6llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Scheduler.h
+9-3llvm/lib/Transforms/Vectorize/SandboxVectorizer/Scheduler.cpp
+55-103 files

LLVM/project c2cd1ffclang/lib/StaticAnalyzer/Checkers LifetimeModeling.h DanglingPtrDeref.cpp, clang/test/Analysis dangling-ptr-deref.cpp

[analyzer] Only report the first dereference of the same variable in DanglingPtrDeref
DeltaFile
+13-0clang/test/Analysis/dangling-ptr-deref.cpp
+8-0clang/lib/StaticAnalyzer/Checkers/LifetimeModeling.cpp
+6-0clang/lib/StaticAnalyzer/Checkers/DanglingPtrDeref.cpp
+5-0clang/lib/StaticAnalyzer/Checkers/LifetimeModeling.h
+32-04 files

LLVM/project 40001fdclang/include/clang/Options Options.td, clang/lib/Basic/Targets NVPTX.cpp

[NVPTX] Make `shortptr` a target ABI (#214112)

Refactor our handling of `shortptr` to make it a proper target ABI
instead of plumbing it through with CLI options.

Assisted by AI.
DeltaFile
+12-12llvm/test/CodeGen/NVPTX/clusterlaunchcontrol-multicast.ll
+4-10llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
+9-3clang/lib/Basic/Targets/NVPTX.cpp
+5-3clang/test/Driver/cuda-short-ptr.cu
+3-3clang/include/clang/Options/Options.td
+2-2llvm/test/CodeGen/NVPTX/tcgen05-commit.ll
+35-3345 files not shown
+116-11551 files

LLVM/project 86410eaclang/lib/Parse ParseOpenMP.cpp, flang/lib/Parser openmp-parsers.cpp

[OpenMP] Delete now unused OMPD_ordered

It has been replaced by OMPD_ordered_standalone and
OMPD_ordered_blockassoc.
DeltaFile
+0-13llvm/include/llvm/Frontend/OpenMP/OMP.td
+1-2llvm/unittests/Frontend/OpenMPDirectiveNameParserTest.cpp
+1-2flang/lib/Semantics/check-omp-structure.cpp
+1-2flang/lib/Parser/openmp-parsers.cpp
+1-1llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+1-1clang/lib/Parse/ParseOpenMP.cpp
+5-216 files

LLVM/project e6dc106clang/include/clang/AST StmtOpenMP.h, clang/lib/AST StmtOpenMP.cpp

[clang][OpenMP] Split OMPOrderedDirective into two classes

Now that OMPD_ordered has been replaced with two variants, split
the OMPOrderedDirective class into two classes, one for each
variant.
DeltaFile
+77-71clang/lib/CodeGen/CGStmtOpenMP.cpp
+65-13clang/include/clang/AST/StmtOpenMP.h
+24-18clang/lib/AST/StmtOpenMP.cpp
+12-5clang/lib/Serialization/ASTReaderStmt.cpp
+14-3clang/lib/Sema/TreeTransform.h
+13-3clang/tools/libclang/CIndex.cpp
+205-11314 files not shown
+279-13720 files

LLVM/project 0b724a4clang/lib/Parse ParseOpenMP.cpp

Update function name in all places
DeltaFile
+2-2clang/lib/Parse/ParseOpenMP.cpp
+2-21 files

LLVM/project 5bd4130clang/include/clang/AST StmtOpenMP.h

format
DeltaFile
+2-3clang/include/clang/AST/StmtOpenMP.h
+2-31 files