LLVM/project d4dae71 — llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes LoadStoreVec.cpp, llvm/test/Transforms/SandboxVectorizer/Passes/LoadStoreVec load_store_vec_mixed_type_loads.ll

[SandboxVec][LoadStoreVec] Address review on mixed-type loads

Rename getLanesTypeFor to getSameBitWidthType and document that a wider
scalar spans several lanes. Drop the unused LoadInst cast, explain the
test data layout, and cover a reversed vector/scalar chain plus loads
with multiple uses.

Co-authored-by: Cursor <cursoragent at cursor.com>
DeltaFile
+264-3llvm/test/Transforms/SandboxVectorizer/Passes/LoadStoreVec/load_store_vec_mixed_type_loads.ll
+26-16llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/LoadStoreVec.cpp
+290-192 files

LLVM/project 9403fc4 — llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes LoadStoreVec.h, llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes LoadStoreVec.cpp

[SandboxVec][LoadStoreVec] Support mixed-type load vectorization

Remove the restriction that every load in a top-level load chain must have the vector's element type. A chain of mixed types such as {i32, float} or {double, i32, i32} is loaded as a vector of integers (as chosen by VecUtils::getCombinedVectorTypeFor()), each original load is unpacked from the lanes it occupies, and then reinterpreted back to its own type with SameSizeReinterpret::reinterpretValue().

Chains involving a non-integral pointer are left alone, since such a pointer cannot be recovered from an integer lane.

SameSizeReinterpret is also used by createConstantVector() to pack constants of mixed types into a constant vector.

Co-authored-by: Cursor <cursoragent at cursor.com>
DeltaFile
+140-0llvm/test/Transforms/SandboxVectorizer/Passes/LoadStoreVec/load_store_vec_mixed_type_loads.ll
+38-10llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/LoadStoreVec.cpp
+11-1llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes/LoadStoreVec.h
+189-113 files

LLVM/project 8ac2987 — mlir/lib/Dialect/LLVMIR/IR NVVMMBarrierOps.cpp NVVMAsyncCopyOps.cpp

[mlir][NVVM] Partition the NVVM dialect ops (#242400)

Including `NVVMDialect.h` is expensive. The header declares all 219 ops
of the dialect regardless of how many ops are being used by an includer.
The dialect library pays the same price: each of its 12 TUs includes all
op declarations through a precompiled `NVVMDialect.h`, including the 8
TUs that each define an eighth of the ops and `NVVMDialect.cpp`, which
implements all of them.

This patch replaces the index sharding with op partitions ("logical
sharding", #239254). The ops are grouped by topic into 10 partitions.
Every partition has its own header, which declares the ops of the
partition, and its own source file, which defines them together with
their hand-written implementations (verifiers, parsers, printers,
builders, intrinsic lowerings, etc.).

`NVVMDialect.h` stays as an umbrella header that includes all partition
headers, but its use is discouraged. Its includers in MLIR and flang now
include what they use instead unless they require the majority of the

    [24 lines not shown]
DeltaFile
+11-7,560mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
+2,192-0mlir/lib/Dialect/LLVMIR/IR/NVVMMmaOps.cpp
+1,386-0mlir/lib/Dialect/LLVMIR/IR/NVVMConvertOps.cpp
+1,118-0mlir/lib/Dialect/LLVMIR/IR/NVVMTcgen05Ops.cpp
+974-0mlir/lib/Dialect/LLVMIR/IR/NVVMAsyncCopyOps.cpp
+679-0mlir/lib/Dialect/LLVMIR/IR/NVVMMBarrierOps.cpp
+6,360-7,56045 files not shown
+8,584-7,64951 files

LLVM/project 5426281 — clang/lib/Basic/Targets Sparc.h Sparc.cpp, clang/test/Preprocessor predefined-arch-macros.c

[Sparc] Support 64-bit atomics in 32-bit V8+ code (#242578)

Implement 64-bit atomics for 32-bit SPARC when targeting V9 in V8+
mode, mirroring what GCC does:

- 64-bit atomic loads and stores use ldd/std (GCC's atomic_loaddi_1
  and atomic_storedi_1).
- 64-bit compare-and-swap packs the 32-bit halves into %g/%o
  registers, issues casx and splits the result back, using the same
  sequence as GCC's *atomic_compare_and_swapdi_v8plus. Only %g/%o
  registers are used for the 64-bit temporaries since those are the
  only registers whose upper halves are preserved under the V8+ ABI
  (GCC's "h" constraint / I64_REGS class, minus %o7, which holds the
  return address in leaf procedures). The pseudo is expanded after
  register allocation so no 64-bit value is spilled via a 32-bit slot.
- Other atomic RMW operations are expanded to cmpxchg loops.

The new %g/%o register class can allocate %o registers before %l0 is
used, which breaks the assumption behind the leaf procedure %i -> %o

    [22 lines not shown]
DeltaFile
+548-0llvm/test/CodeGen/SPARC/atomics-v8plus.ll
+62-6llvm/lib/Target/Sparc/SparcInstrInfo.cpp
+60-4llvm/lib/Target/Sparc/SparcISelLowering.cpp
+38-0clang/test/Preprocessor/predefined-arch-macros.c
+29-2clang/lib/Basic/Targets/Sparc.cpp
+21-6clang/lib/Basic/Targets/Sparc.h
+758-185 files not shown
+809-2411 files

LLVM/project 21ab24f — llvm/lib/Target/AMDGPU AMDGPUISelDAGToDAG.cpp

clang-format
DeltaFile
+2-2llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
+2-21 files

LLVM/project 0e3c188 — flang/lib/Optimizer/CodeGen CodeGen.cpp

[flang][CodeGen] Fix narrowing conversion in genGEP call (#244972)

Fixes a -Wnarrowing error (unsigned -> int32_t) in the genGEP call using
kRankPosInBox, which breaks GCC -Werror builds (seen on the
flang-s390x-linux bot).
DeltaFile
+2-1flang/lib/Optimizer/CodeGen/CodeGen.cpp
+2-11 files

LLVM/project e71c284 — clang/lib/CIR/Dialect/IR CIRTypes.cpp, mlir/docs/DefiningDialects AttributesAndTypes.md

address review comments
DeltaFile
+75-27mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
+100-0mlir/test/mlir-tblgen/dialect-initialize.td
+37-15mlir/docs/DefiningDialects/AttributesAndTypes.md
+31-16mlir/tools/mlir-tblgen/DialectGen.cpp
+22-2mlir/include/mlir/IR/DialectBase.td
+0-15clang/lib/CIR/Dialect/IR/CIRTypes.cpp
+265-75104 files not shown
+399-524110 files

LLVM/project 96ce87c — mlir/test/mlir-tblgen typedefs.td attrdefs.td, mlir/tools/mlir-tblgen DialectGen.cpp

address review comments
DeltaFile
+6-5mlir/tools/mlir-tblgen/DialectGen.cpp
+0-2mlir/test/mlir-tblgen/typedefs.td
+0-2mlir/test/mlir-tblgen/attrdefs.td
+6-93 files

LLVM/project 9d57c60 — mlir/docs/DefiningDialects AttributesAndTypes.md, mlir/include/mlir/IR TypeSupport.h AttributeSupport.h

[mlir][ODS] Generate hooks that register the attributes and types of a dialect

Dialects registered their generated attributes and types by expanding
`GET_ATTRDEF_LIST` (or `GET_TYPEDEF_LIST`) into the template arguments
of `addAttributes` (or `addTypes`).
This requires each and every type and attribute and their storage classes' to be defined at the callsite and is generally boilerplate that exists in most dialects.

This PR introduces a single registration hook that is generated by ODS and should be called from dialects' `initialize` method instead. The implementation of the hook now performs the registration.
The motivation and further advantage of this approach is that we can then also change the implementation of the registration method in ODS while keeping API compatibility. This is required for partitioning of attributes and types e.g. (https://github.com/llvm/llvm-project/pull/241935).

Docs have been updated to advise users to use the new registration method. However, no upstream dialect beyond the test dialect has been switched nor is the old method of registration planned to be deprecated as it is still useful in some contexts (e.g., extendible dialects or C++ defined types and attributes).

Co-authored-by: Claude <noreply at anthropic.com>
DeltaFile
+33-0mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
+11-12mlir/docs/DefiningDialects/AttributesAndTypes.md
+13-0mlir/lib/IR/MLIRContext.cpp
+13-0mlir/include/mlir/IR/TypeSupport.h
+13-0mlir/include/mlir/IR/AttributeSupport.h
+10-0mlir/test/mlir-tblgen/typedefs.td
+93-124 files not shown
+106-2010 files

LLVM/project 7b81b6d — mlir/tools/mlir-tblgen DialectGenUtilities.h

forgotten header
DeltaFile
+1-0mlir/tools/mlir-tblgen/DialectGenUtilities.h
+1-01 files

LLVM/project 124884a — llvm/include/llvm/ADT APFloat.h, llvm/lib/Support APFloat.cpp

[APFloat] Support user defined bit conversions (#242370)

[APFloat] Support user provided conversion to/from bits

This change allows users to provide custom functions to convert to/from
bits.

- fltSemantics has function pointers for conversion and user provided
values of it are supported
- built-in semantics also use these instead of chained if, making the
code less repetitive and slightly faster
- APFloat/IEEFloat internals like types and ranges of significand,
mantissa etc. can only be accessed using FloatRepr interface so only
user defined bitcast functions will be affected by changes

Resubmitted https://github.com/llvm/llvm-project/pull/233961 / #240920
with fixes for GCC 7 and MSVC2019
DeltaFile
+410-354llvm/lib/Support/APFloat.cpp
+343-3llvm/unittests/ADT/APFloatTest.cpp
+93-64llvm/include/llvm/ADT/APFloat.h
+846-4213 files

LLVM/project a1b469d — llvm/test/CodeGen/WebAssembly llc-pipeline.ll, llvm/test/Transforms/SLPVectorizer/AArch64 fast-two-sum-operand-order.ll spillcost-hoisted-external-user.ll

Merge branch 'main' into users/zero9178/nvvm-dialect-op-partitions
DeltaFile
+442-0orc-rt/test/unit/bedrock/sys/posix/DlfcnLoaderAdapterTest.cpp
+425-0llvm/test/Transforms/SLPVectorizer/AArch64/spillcost-hoisted-external-user.ll
+357-0llvm/test/Transforms/SLPVectorizer/AArch64/fast-two-sum-operand-order.ll
+220-0mlir/lib/Target/LLVMIR/Dialect/OpenACC/OpenACCToLLVMIRTranslation.cpp
+216-0orc-rt/lib/bedrock/sys/posix/DlfcnLoaderAdapter.cpp
+170-0llvm/test/CodeGen/WebAssembly/llc-pipeline.ll
+1,830-0296 files not shown
+6,693-1,232302 files

LLVM/project d0f04f2 — llvm/lib/CodeGen RegUsageInfoCollector.cpp PrologEpilogInserter.cpp, llvm/test/CodeGen/X86 preserve_most-disabled-csrs.ll

[CodeGen] Honor disabled and reserved CSRs in `getCalleeSavedRegs` (#241593)

Previously, `getCalleeSavedRegs` simply returned the unfiltered TRI CSRs
on its first invocation, even when it had already populated
`UpdatedCSRs`. And calling `disableCalleeSavedRegister` prior to
`getCalleeSavedRegs` initialized `UpdatedCSRs` without filtering out
user-reserved registers.

Additionally, both the prolog/epilog inserter for zeroing call used
registers, and the register usage collector queried
`TRI.getCalleeSavedRegs`, ignoring anything disabled with
`disableCalleeSavedRegister`.

All this led to miscompiles:
https://cpp.compiler-explorer.com/z/rKdcnq7oP

Fixed by correctly returning `UpdatedCSRs` from MRI's
`getCalleeSavedRegs`, filtering user-reserved registers when populating
it, and changing the places to call it rather than TRI.

Assisted-by: Antigravity with Gemini
DeltaFile
+85-0llvm/test/CodeGen/X86/preserve_most-disabled-csrs.ll
+3-2llvm/lib/CodeGen/MachineRegisterInfo.cpp
+1-1llvm/lib/CodeGen/RegUsageInfoCollector.cpp
+1-1llvm/lib/CodeGen/PrologEpilogInserter.cpp
+90-44 files

LLVM/project 86ca1b8 — clang/lib/Basic/Targets Sparc.cpp, clang/test/Preprocessor predefined-arch-macros.c

[clang][Sparc] Define _SOFT_FLOAT instead of SOFT_FLOAT (#245137)

With -msoft-float, Clang defined SOFT_FLOAT to 1. GCC defines
_SOFT_FLOAT, and SOFT_FLOAT is not in the reserved namespace. Do what
GCC does.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+17-0clang/test/Preprocessor/predefined-arch-macros.c
+1-1clang/lib/Basic/Targets/Sparc.cpp
+18-12 files

LLVM/project fa48ebf — clang/include/clang/CIR/Dialect/IR CIRDialect.td, clang/test/CIR/Tools cir-offload-merge.cir

[CIR] Add a split mode to cir-offload-merge

Write each module of an offload container to its own file, named after
the driver's offload files (<stem>-<kind>-<triple>.cir). Combine keeps
the original module name in cir.offload.source_name so split can give
back the modules as they were before combine.
DeltaFile
+123-6clang/tools/cir-offload-merge/cir-offload-merge.cpp
+83-7clang/test/CIR/Tools/cir-offload-merge.cir
+1-0clang/include/clang/CIR/Dialect/IR/CIRDialect.td
+207-133 files

LLVM/project 1120314 — llvm/lib/Transforms/Scalar LoopUnrollPass.cpp, llvm/test/Transforms/LoopUnroll/AMDGPU uniform-trip-count-shared-scev.ll

[LoopUnroll] Avoid revisiting shared SCEVs in uniformity checks (#244318)

Checking whether a backedge count is uniform can take exponential time
when its SCEV contains shared subexpressions. Use SCEVExprContains to
visit each node once.

LoopUnroll only checks backedge count uniformity for targets with branch
divergence. The regression test uses AMDGPU to exercise that check.

Assisted-by: OpenAI Codex
DeltaFile
+34-0llvm/test/Transforms/LoopUnroll/AMDGPU/uniform-trip-count-shared-scev.ll
+6-10llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
+40-102 files

LLVM/project ef3b506 — llvm/lib/Target/Sparc/AsmParser SparcAsmParser.cpp, llvm/test/MC/Sparc sparc-asm-errors.s

[Sparc][MC] Reject out-of-range %rN register names (#245110)

matchRegisterName only parsed the first two digits after "%r", so
"%r100" was accepted as %r10 (%o2), "%r145" as %r14 (%sp) and "%r310"
as %r31 (%i7). Parse the whole number instead.

GNU as rejects these names too.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+10-0llvm/test/MC/Sparc/sparc-asm-errors.s
+2-2llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
+12-22 files

LLVM/project f6e91f3 — mlir/lib/Dialect/NVGPU/Transforms CreateAsyncGroups.cpp, mlir/test/Dialect/NVGPU transform-create-async-groups.mlir

[mlir][nvgpu] Do not convert transfers masked by vector.mask to async copies (#238721)

`createAsyncGroups` checked the mask operand of a
`vector.transfer_write` but not an enclosing `vector.mask`. A
region-masked write was replaced in place, which dropped the mask and
left non-maskable ops inside the `vector.mask` region, failing
verification.

Reject transfers masked by `vector.mask`.

Found while auditing the `in_bounds` readers for #227821.

Part of #239511.
DeltaFile
+27-0mlir/test/Dialect/NVGPU/transform-create-async-groups.mlir
+5-3mlir/lib/Dialect/NVGPU/Transforms/CreateAsyncGroups.cpp
+32-32 files

LLVM/project d2a8e00 — llvm/include/llvm/ExecutionEngine/Orc/Shared/SPSCI SimpleNativeMemoryMapSPSCI.h, llvm/lib/ExecutionEngine/Orc SimpleMemoryMapSPS.cpp

[orc-rt][ORC] Let controllers create SimpleNativeMemoryMaps (#245113)

Executors previously had to create a SimpleNativeMemoryMap up front and
publish it under an instance symbol. This commit adds a create
entrypoint, orc_rt_ci_sps_SimpleNativeMemoryMap_create, that constructs
a new instance, adds it to the calling Session as a Service, and returns
its address. Executors still decide whether SimpleNativeMemoryMap is
available, but controllers now decide whether to create instances, and
how many.

orc-rt changes:

* SimpleNativeMemoryMap's Create methods are replaced with a public
constructor, and its header no longer depends on the SPS controller
interface.
* sps::ci::addSimpleNativeMemoryMap adds the create entrypoint along
with the memory operations. It is still called from sps::ci::addAll.
* ogre no longer creates an instance, since sps::ci::addAll now
publishes the create entrypoint.

    [14 lines not shown]
DeltaFile
+104-12llvm/unittests/ExecutionEngine/Orc/EPCGenericJITLinkMemoryManagerTest.cpp
+30-47orc-rt/test/unit/bedrock/SimpleNativeMemoryMapTest.cpp
+61-5orc-rt/test/unit/bedrock/sps/SimpleNativeMemoryMapSPSCITest.cpp
+29-9llvm/lib/ExecutionEngine/Orc/SimpleMemoryMapSPS.cpp
+11-18orc-rt/include/orc-rt/bedrock/SimpleNativeMemoryMap.h
+21-5llvm/include/llvm/ExecutionEngine/Orc/Shared/SPSCI/SimpleNativeMemoryMapSPSCI.h
+256-966 files not shown
+303-13912 files

LLVM/project dd54bc3 — mlir/include/mlir/Dialect/OpenACC OpenACC.h, mlir/lib/Target/LLVMIR/Dialect/OpenACC CMakeLists.txt OpenACCToLLVMIRTranslation.cpp

[mlir][acc] Translate the acc.offload_entry attribute to an offloading entry (#242809)

Add the acc.offload_entry unit attribute, which marks a global host
symbol (either a function or a global variable) that the offload runtime
must be able to associate with its device counterpart. The translation
emits entries that are registered with the OpenACC runtime libacctarget.

Assisted-by: Claude Sonnet 5.5
DeltaFile
+47-0mlir/lib/Target/LLVMIR/Dialect/OpenACC/OpenACCToLLVMIRTranslation.cpp
+24-2mlir/test/Target/LLVMIR/openacc-offload.mlir
+7-0mlir/include/mlir/Dialect/OpenACC/OpenACC.h
+1-0mlir/lib/Target/LLVMIR/Dialect/OpenACC/CMakeLists.txt
+79-24 files

LLVM/project cb3713e — clang/lib/Frontend ASTUnit.cpp, clang/lib/Interpreter Interpreter.cpp

[clang-repl] Use an in-memory main file and createTarget in CreateCI (#243830)

This PR simplifies how clang-repl sets up its compiler instance.
clang-repl needs an empty starting file, which was previously provided
through a heap-allocated buffer that leaked if nothing used it, so the
unit tests had to free it by hand. That file is now an empty in-memory
input that needs no cleanup, so the manual cleanup in the tests is
removed.

It also replaces the hand-written target setup with clang's existing
`createTarget()` helper.

Assisted by Claude Opus 5.5
DeltaFile
+7-9clang/lib/Interpreter/Interpreter.cpp
+0-9clang/unittests/Interpreter/InterpreterTestFixture.h
+2-4clang/lib/Frontend/ASTUnit.cpp
+0-3clang/unittests/Interpreter/DeviceOffloadTest.cpp
+0-2clang/unittests/Interpreter/IncrementalCompilerBuilderTest.cpp
+9-275 files

LLVM/project b6f08ad — mlir/include/mlir/Target/LLVMIR/Dialect All.h, mlir/include/mlir/Target/LLVMIR/Dialect/OpenACC OpenACCToLLVMIRTranslation.h

[mlir][acc] Translate #acc.offload_packager to LLVM IR (#242808)

Add a translation library for the OpenACC dialect that implements the
offloading translation interface of #acc.offload_packager. Each object
of a gpu.binary is wrapped in an offloading binary of kind OpenACC,
carrying the target triple and architecture, and the images are placed
in the .llvm.offloading section of the host module for the offloading
linker wrapper to extract.

Assisted-by: Claude Sonnet 5.5
DeltaFile
+173-0mlir/lib/Target/LLVMIR/Dialect/OpenACC/OpenACCToLLVMIRTranslation.cpp
+43-0mlir/test/Target/LLVMIR/openacc-offload.mlir
+29-0mlir/include/mlir/Target/LLVMIR/Dialect/OpenACC/OpenACCToLLVMIRTranslation.h
+23-0mlir/test/Target/LLVMIR/openacc-offload-objdump.mlir
+20-0mlir/lib/Target/LLVMIR/Dialect/OpenACC/CMakeLists.txt
+2-0mlir/include/mlir/Target/LLVMIR/Dialect/All.h
+290-04 files not shown
+294-010 files

LLVM/project cf75bcf — mlir/include/mlir/Dialect/OpenACC OpenACC.h, mlir/lib/Target/LLVMIR/Dialect/OpenACC CMakeLists.txt OpenACCToLLVMIRTranslation.cpp

[mlir][acc] Translate the acc.offload_entry attribute to an offloading entry

Add the acc.offload_entry unit attribute, which marks a global host symbol
(either a function or a global variable) that the offload runtime must be able
to associate with its device counterpart. The translation emits entries that
are registered with the OpenACC runtime libacctarget.

Assisted-by: Claude Sonnet 5.5
DeltaFile
+47-0mlir/lib/Target/LLVMIR/Dialect/OpenACC/OpenACCToLLVMIRTranslation.cpp
+24-2mlir/test/Target/LLVMIR/openacc-offload.mlir
+7-0mlir/include/mlir/Dialect/OpenACC/OpenACC.h
+1-0mlir/lib/Target/LLVMIR/Dialect/OpenACC/CMakeLists.txt
+79-24 files

LLVM/project a8b2883 — mlir/include/mlir/Target/LLVMIR/Dialect All.h, mlir/include/mlir/Target/LLVMIR/Dialect/OpenACC OpenACCToLLVMIRTranslation.h

[mlir][acc] Translate #acc.offload_packager to LLVM IR

Add a translation library for the OpenACC dialect that implements the
offloading translation interface of #acc.offload_packager. Each object
of a gpu.binary is wrapped in an offloading binary of kind OpenACC,
carrying the target triple and architecture, and the images are placed
in the .llvm.offloading section of the host module for the offloading
linker wrapper to extract.

Assisted-by: Claude Sonnet 5.5
DeltaFile
+173-0mlir/lib/Target/LLVMIR/Dialect/OpenACC/OpenACCToLLVMIRTranslation.cpp
+43-0mlir/test/Target/LLVMIR/openacc-offload.mlir
+29-0mlir/include/mlir/Target/LLVMIR/Dialect/OpenACC/OpenACCToLLVMIRTranslation.h
+23-0mlir/test/Target/LLVMIR/openacc-offload-objdump.mlir
+20-0mlir/lib/Target/LLVMIR/Dialect/OpenACC/CMakeLists.txt
+2-0mlir/include/mlir/Target/LLVMIR/Dialect/All.h
+290-04 files not shown
+294-010 files

LLVM/project 574f15e — mlir/include/mlir/Dialect/OpenACC OpenACC.h OpenACCCGAttributes.td, mlir/test/Dialect/OpenACC ops-cg.mlir

[mlir][acc] Add the #acc.offload_packager offloading handler (#242807)

Add an offloading handler attribute for gpu.module and gpu.binary that
is meant to embed the device images in the host object as LLVM
offloading binaries of kind OpenACC, for the offloading linker wrapper
to link and register with the OpenACC runtime.

Assisted-by: Claude Sonnet 5.5
DeltaFile
+19-0mlir/include/mlir/Dialect/OpenACC/OpenACCCGAttributes.td
+11-0mlir/test/Dialect/OpenACC/ops-cg.mlir
+1-0mlir/include/mlir/Dialect/OpenACC/OpenACC.h
+31-03 files

LLVM/project e83183c — llvm/lib/Target/AArch64 AArch64Arm64ECCallLowering.cpp AArch64ISelLowering.cpp, llvm/test/CodeGen/AArch64 arm64ec-entry-thunks.ll arm64ec-exit-thunks.ll

[ARM64EC] Fix vararg pointer in entry/exit thunks for 16-byte return value (#237817)

When a function returns a 16-byte structure, in the x86-64 calling
convention it is returned in memory with a hidden pointer, but in the
ARM64EC calling convention it is returned in {X0,X1} so it does not have
a hidden pointer. In this case the x86-64 function has one more
argument, and up to at most three arguments can be passed in register --
X4 now points to the 4th argument, instead of the 5th as the old code
mentioned.

In the exit thunk, the reverse applies: The ARM64EC function does not
pass a hidden pointer, but the x86-64 function expects one, causing the
4th argument (if any) to spill on the stack.

This commit shifts arguments by one, pops one argument from the stack
into an integer register, and adds X4 by 8 so it will point to the 5th
argument as ARM64EC expects.

Assisted-by: DeepSeek V4.1 Flash
DeltaFile
+126-29llvm/test/CodeGen/AArch64/arm64ec-exit-thunks.ll
+132-1llvm/test/CodeGen/AArch64/arm64ec-entry-thunks.ll
+41-6llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+10-7llvm/lib/Target/AArch64/AArch64Arm64ECCallLowering.cpp
+309-434 files

LLVM/project cf97459 — llvm/lib/Target/Hexagon HexagonRegisterInfo.cpp, llvm/test/CodeGen/Hexagon/autohvx xqf-reserve-v30.ll

[Hexagon] Reserve V30 for v79 QFloat handling (#243763)

For v79, floating point vector operations involving extended qfloat, we
need to use v30 as a scratch register in the post RA Xtended QF handling
pass. We reserve it when we use xqf for v79 for non-legacy mode, ie.
strict-ieee, ieee or lossy mode when xqf instructions are present.

Fixes #237215

Co-authored-by: quic-santdas <quic_santdas at qti.qualcomm.com>
DeltaFile
+109-0llvm/test/CodeGen/Hexagon/autohvx/xqf-reserve-v30.ll
+13-0llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp
+122-02 files

LLVM/project fbdb396 — clang/include/clang/CIR/Dialect/IR CIRDialect.td, clang/lib/CIR/CodeGen/Targets AMDGPU.cpp

[CIR][NFC] Use dialect getters for AMDGPU attribute names
DeltaFile
+9-7clang/lib/CIR/CodeGen/Targets/AMDGPU.cpp
+5-4clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVMIR.cpp
+6-0clang/include/clang/CIR/Dialect/IR/CIRDialect.td
+20-113 files

LLVM/project ba73617 — clang/lib/Driver/ToolChains CSKYToolChain.cpp Darwin.cpp, clang/test/Driver ohos.c csky-toolchain.c

[Driver] Support -rtlib=none (#245001)

This is helpful in situations when linking the runtime library is
undesirable, for example when building the runtime library itself. It
also makes the --rtlib= option consistent with --unwindlib=.
DeltaFile
+16-1clang/test/Driver/linux-ld.c
+9-6clang/lib/Driver/ToolChains/BareMetal.cpp
+8-5clang/lib/Driver/ToolChains/Darwin.cpp
+6-5clang/lib/Driver/ToolChains/CSKYToolChain.cpp
+11-0clang/test/Driver/csky-toolchain.c
+9-0clang/test/Driver/ohos.c
+59-1714 files not shown
+106-3420 files

LLVM/project 22b881c — llvm/include/llvm/Transforms/IPO SampleProfile.h, llvm/lib/Transforms/IPO IPOOptions.td SampleProfile.cpp

[IPO] Declare sample profile inliner command line options in TableGen (#244670)

SampleProfile.h replaces the exported cl::opts with
SampleProfileInlineOptions, which
SampleProfileLoaderPass::getInlineOptions fills from the options given
over the caller's defaults. llvm-profgen's preinliner reads its
thresholds this way instead of writing the cl::opts, and the loader no
longer writes the global size limits for non-CS profiles.
DeltaFile
+43-54llvm/lib/Transforms/IPO/SampleProfile.cpp
+18-17llvm/tools/llvm-profgen/CSPreInliner.cpp
+19-7llvm/include/llvm/Transforms/IPO/SampleProfile.h
+14-0llvm/lib/Transforms/IPO/IPOOptions.td
+3-0llvm/tools/llvm-profgen/ProfiledBinary.h
+2-0llvm/tools/llvm-profgen/CSPreInliner.h
+99-781 files not shown
+101-787 files