LLVM/project 306b777mlir/include/mlir/Dialect/Arith/IR ArithOps.td, mlir/lib/Conversion/ArithToLLVM ArithToLLVM.cpp

[mlir][arith] Add rounding mode flags to binary arithmetic operations
DeltaFile
+76-14mlir/include/mlir/Dialect/Arith/IR/ArithOps.td
+75-0mlir/test/Dialect/Arith/canonicalize.mlir
+61-0mlir/test/Conversion/ArithToLLVM/arith-to-llvm.mlir
+40-15mlir/lib/Conversion/ArithToLLVM/ArithToLLVM.cpp
+28-8mlir/lib/Dialect/Arith/IR/ArithOps.cpp
+9-9mlir/lib/Dialect/Math/Transforms/ExpandOps.cpp
+289-465 files not shown
+325-6111 files

LLVM/project 5d67e4dmlir/lib/Dialect/OpenMP/IR OpenMPDialect.cpp, mlir/test/Dialect/OpenMP invalid.mlir

Improve error message

Make it clear that the requirement is for direct nesting.
DeltaFile
+3-3mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+2-2mlir/test/Dialect/OpenMP/invalid.mlir
+5-52 files

LLVM/project 0effa7clibclc/clc/lib/generic/math clc_asinpi.inc clc_asinpi.cl

libclc: Update asinpi (#188454)

This was originally ported from rocm device libs in
eea0997566cad3be13df897a06dfda74cbd684b9. Update for more recent
changes.
DeltaFile
+109-108libclc/clc/lib/generic/math/clc_asinpi.inc
+3-4libclc/clc/lib/generic/math/clc_asinpi.cl
+112-1122 files

LLVM/project 56714adclang/test/OpenMP target_teams_distribute_parallel_for_simd_schedule_codegen.cpp teams_distribute_parallel_for_simd_schedule_codegen.cpp, libc/AOR_v20.02/math/test/traces sincosf.txt exp.txt

Merge branch 'main' into users/ssahasra/asyncmark-gfx1250
DeltaFile
+0-31,999libc/AOR_v20.02/math/test/traces/sincosf.txt
+0-16,000libc/AOR_v20.02/math/test/traces/exp.txt
+6,835-6,798llvm/test/CodeGen/AMDGPU/memintrinsic-unroll.ll
+6,432-6,562llvm/test/CodeGen/X86/vector-interleaved-load-i64-stride-7.ll
+5,294-4,814clang/test/OpenMP/target_teams_distribute_parallel_for_simd_schedule_codegen.cpp
+5,238-4,758clang/test/OpenMP/teams_distribute_parallel_for_simd_schedule_codegen.cpp
+23,799-70,9318,045 files not shown
+543,123-369,6578,051 files

LLVM/project 89431a3llvm/lib/Analysis LazyValueInfo.cpp

[LVI] Use block numbers (#188270)

Store the cache as a vector indexed by block numbers instead of a map,
which results in a small compile-time improvement.
DeltaFile
+48-32llvm/lib/Analysis/LazyValueInfo.cpp
+48-321 files

LLVM/project f64cd66libclc/clc/lib/generic/math clc_acospi.inc clc_acospi.cl

libclc: Update acospi

This was originally ported from rocm device libs in
084124a8fab6fd71d49ac4928d17c3ef8b350ead. Merge in more
recent changes.
DeltaFile
+94-111libclc/clc/lib/generic/math/clc_acospi.inc
+2-3libclc/clc/lib/generic/math/clc_acospi.cl
+96-1142 files

LLVM/project 7588660libclc/clc/lib/generic/math clc_asinpi.inc clc_asinpi.cl

libclc: Update asinpi

This was originally ported from rocm device libs in
eea0997566cad3be13df897a06dfda74cbd684b9. Update for more recent
changes.
DeltaFile
+109-108libclc/clc/lib/generic/math/clc_asinpi.inc
+3-4libclc/clc/lib/generic/math/clc_asinpi.cl
+112-1122 files

LLVM/project 065a39bllvm/lib/Transforms/Vectorize VPlanTransforms.cpp

[VPlan] Tighten SafeAVL matching in convertEVLExitCond. NFC (#179164)

Follow-up from
https://github.com/llvm/llvm-project/pull/178181#discussion_r2743630145
DeltaFile
+6-3llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+6-31 files

FreeBSD/ports a4c01e9filesystems/zrepl-dsh2dsh distinfo Makefile

filesystems/zrepl-dsh2dsh: Update to 1.2.1

changelog: https://github.com/dsh2dsh/zrepl/releases/tag/v1.2.1

PR:             293938
DeltaFile
+5-5filesystems/zrepl-dsh2dsh/distinfo
+1-2filesystems/zrepl-dsh2dsh/Makefile
+6-72 files

FreeBSD/ports 387b071audio/exaile distinfo Makefile, audio/exaile/files patch-xl_player_gst_sink.py

audio/exaile: update to 4.2.2-beta1

- remove local patch applied upstream

Release notes:
https://github.com/exaile/exaile/wiki/Exaile-4.2-release-notes#422-unreleased
DeltaFile
+0-16audio/exaile/files/patch-xl_player_gst_sink.py
+3-3audio/exaile/distinfo
+1-2audio/exaile/Makefile
+4-213 files

LLVM/project d21e1a3llvm/include/llvm/Analysis VecFuncs.def, llvm/include/llvm/IR RuntimeLibcalls.td

[LIBM][AMDLIBM] - New vector calls for cdfnorm and round scalar calls (#187232)

In amdlibm, new vector calls

cdfnorm
amd_vrd2_cdfnorm
amd_vrd4_cdfnorm
amd_vrd8_cdfnorm

round
amd_vrs16_roundf
amd_vrs8_roundf
amd_vrs4_roundf
amd_vrd8_round 
amd_vrd4_round 
amd_vrd2_round

Link to aocl repo -
[aocl-libm-ose](https://github.com/amd/aocl-libm-ose)
DeltaFile
+141-5llvm/test/Transforms/LoopVectorize/X86/amdlibm-calls.ll
+18-0llvm/include/llvm/Analysis/VecFuncs.def
+11-0llvm/include/llvm/IR/RuntimeLibcalls.td
+170-53 files

LLVM/project 86c1510llvm/lib/Transforms/Vectorize VPlanRecipes.cpp, llvm/test/Transforms/LoopVectorize/AArch64 binop-costs.ll predicated-costs.ll

[VPlan] Remove isVector guard in getCostForRecipeWithOpcode. (#188126)

The legacy cost model computes and passes RHSInfo both when widening and
replicating. Match behavior in VPlan-based cost model.

The added test shows that we now compute the same cost as the legacy
cost model.

Without this change, the test added in
llvm/test/Transforms/LoopVectorize/AArch64/predicated-costs.ll would
crash with https://github.com/llvm/llvm-project/pull/187056.

PR: https://github.com/llvm/llvm-project/pull/188126
DeltaFile
+43-0llvm/test/Transforms/LoopVectorize/AArch64/binop-costs.ll
+42-0llvm/test/Transforms/LoopVectorize/AArch64/predicated-costs.ll
+7-12llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+92-123 files

LLVM/project 2e7dd44clang/lib/StaticAnalyzer/Checkers CStringChecker.cpp, clang/test/Analysis bstring.cpp malloc.c

[analyzer] Untangle subcheckers of CStringChecker (#186802)

It turns out, that some checks for cstring functions happened as a side
effect of other checks. For example, whether the arguments to memcpy
were uninitialized happened during buffer overflow checking.

The way this was implemented is that if alpha.unix.cstring.OutOfBounds
was disabled, alpha.unix.cstring.UninitializedRead couldn't emit any
warnings. It turns out that major modeling steps are early-exited if a
certain checker is disabled!

This patch moved the early returns to the report emission parts --
modeling still happens, only the bug report construction is omitted.
This would mean that if we find a fatal error (like buffer overflow) we
_should_ stop analysis even if we don't emit a warning (thats a part of
doing modeling), but I decided against implementing that.

One hurdle is that CStringChecker is a dependency of MallocChecker, and
the current tests rely on the CStringChecker _not_ terminating execution

    [9 lines not shown]
DeltaFile
+61-23clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
+57-5clang/test/Analysis/bstring.cpp
+11-0clang/test/Analysis/malloc.c
+129-283 files

LLVM/project 458d3a8libc/src/sys/time/linux utimes.cpp

[libc] Fix unused variable warning in utimes.cpp (#188347) (#188448)

Moved the declaration of 'ret' inside the SYS_utimes block to prevent an
unused variable warning on the libc-riscv32-qemu-yocto-fullbuild-dbg
builder, which doesn't define SYS_utimes.
DeltaFile
+1-3libc/src/sys/time/linux/utimes.cpp
+1-31 files

LLVM/project c879ca7llvm/lib/Analysis DependenceAnalysis.cpp, llvm/test/Analysis/DependenceAnalysis weak-crossing-siv-overflow.ll

[DA] Fix overflow of calculation in weakCrossingSIVtest

This patch fixes a correctness issue where integer overflow in the
upper bound calculation of weakCrossingSIVtest caused the pass to
incorrectly prove independence.

The previous logic used `SCEV::getMulExpr` to calculate
`2 * ConstCoeff * UpperBound` and compared it to `Delta` using
`isKnownPredicate`. In the presence of overflow, this could yield
unsafe results.

This change replaces the SCEV arithmetic with `ConstantRange` and
its operation (`smul_fast`). If the calculation overflows,
`intersectWith(MLRange).isEmptySet()` would be false, ensures we
conservatively assume a dependence if the bounds cannot be proven
safe.

Signed-off-by: Ruoyu Qiu <cabbaken at outlook.com>
DeltaFile
+12-6llvm/lib/Analysis/DependenceAnalysis.cpp
+2-2llvm/test/Analysis/DependenceAnalysis/weak-crossing-siv-overflow.ll
+14-82 files

LLVM/project aaa76aelibsycl/src/detail device_binary_structures.hpp

remove clang-offload-wrapper mentioning

Signed-off-by: Tikhomirova, Kseniya <kseniya.tikhomirova at intel.com>
DeltaFile
+2-2libsycl/src/detail/device_binary_structures.hpp
+2-21 files

LLVM/project 3ac9b77llvm/include/llvm/Analysis LazyValueInfo.h, llvm/lib/Analysis LazyValueInfo.cpp

[LVI] Remove unused DL member (NFC)

This is never used (the data layout is taken later from the
module instead) and not even initialized in the legacy PM code path.
DeltaFile
+3-5llvm/include/llvm/Analysis/LazyValueInfo.h
+1-1llvm/lib/Analysis/LazyValueInfo.cpp
+4-62 files

LLVM/project 2ecd8e2llvm/include/llvm/Analysis LazyValueInfo.h, llvm/lib/Analysis LazyValueInfo.cpp

[LVI] Store function in LVI wrapper class

We know the function we're working on at construction, there is
no need to have code to fetch the module in every place that
fetches the Impl object.

I'm storing the function instead of the module to be able to get
the block number epoch in a future change.
DeltaFile
+18-27llvm/lib/Analysis/LazyValueInfo.cpp
+5-4llvm/include/llvm/Analysis/LazyValueInfo.h
+23-312 files

LLVM/project ad93032llvm/include/llvm/ADT GenericUniformityImpl.h, llvm/lib/Analysis UniformityAnalysis.cpp

review: address suggestions
DeltaFile
+16-39llvm/include/llvm/ADT/GenericUniformityImpl.h
+15-0llvm/lib/Analysis/UniformityAnalysis.cpp
+31-392 files

LLVM/project 04d42e2llvm/include/llvm/ADT GenericUniformityImpl.h GenericUniformityInfo.h

review: address suggestion on hasDivergence flag
DeltaFile
+26-16llvm/include/llvm/ADT/GenericUniformityImpl.h
+0-3llvm/include/llvm/ADT/GenericUniformityInfo.h
+26-192 files

LLVM/project 525180cllvm/include/llvm/ADT GenericUniformityImpl.h GenericSSAContext.h, llvm/lib/Analysis UniformityAnalysis.cpp

review: add comment in isNeverDivergent and separate VH callback for other follow-up
DeltaFile
+0-83llvm/unittests/Target/AMDGPU/UniformityAnalysisCallbackVHTest.cpp
+0-46llvm/lib/Analysis/UniformityAnalysis.cpp
+4-14llvm/include/llvm/ADT/GenericUniformityImpl.h
+5-0llvm/include/llvm/ADT/GenericSSAContext.h
+0-4llvm/lib/CodeGen/MachineUniformityAnalysis.cpp
+0-1llvm/unittests/Target/AMDGPU/CMakeLists.txt
+9-1481 files not shown
+9-1497 files

LLVM/project d27b6c3llvm/include/llvm/ADT GenericUniformityImpl.h GenericUniformityInfo.h, llvm/lib/Analysis UniformityAnalysis.cpp

review: chnage design to track uniform values
DeltaFile
+46-50llvm/lib/Analysis/UniformityAnalysis.cpp
+11-29llvm/include/llvm/ADT/GenericUniformityImpl.h
+17-21llvm/lib/CodeGen/MachineUniformityAnalysis.cpp
+1-1llvm/include/llvm/ADT/GenericUniformityInfo.h
+75-1014 files

LLVM/project b549b33clang/lib/CIR/CodeGen CIRGenBuiltinRISCV.cpp CIRGenBuiltin.cpp

[CIR][RISCV][NFC] Add CIRGenBuiltinRISCV file to support RISCV builtins codegen (#186050)

This PR adds CIRGenBuiltinRISCV.cpp file for RISCV specific builtins
codegen support.
List all builtins except vector builtins which need tablegen, and mark
them as "NYI".
DeltaFile
+112-0clang/lib/CIR/CodeGen/CIRGenBuiltinRISCV.cpp
+3-2clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp
+3-0clang/lib/CIR/CodeGen/CIRGenFunction.h
+1-0clang/lib/CIR/CodeGen/CMakeLists.txt
+119-24 files

LLVM/project a9a3a6fllvm/include/llvm/ADT GenericUniformityImpl.h, llvm/lib/Analysis UniformityAnalysis.cpp

review: separate isDivergent internal and exxternal use and clear divergentValues after finalizing uniformValues
DeltaFile
+41-16llvm/include/llvm/ADT/GenericUniformityImpl.h
+10-5llvm/lib/CodeGen/MachineUniformityAnalysis.cpp
+2-0llvm/lib/Analysis/UniformityAnalysis.cpp
+53-213 files

LLVM/project 17c45b4llvm/include/llvm/ADT GenericUniformityImpl.h, llvm/lib/Analysis UniformityAnalysis.cpp

use CallbackVH for deletion/RAUW
DeltaFile
+149-0llvm/unittests/Target/AMDGPU/UniformityAnalysisCallbackVHTest.cpp
+45-0llvm/lib/Analysis/UniformityAnalysis.cpp
+12-1llvm/include/llvm/ADT/GenericUniformityImpl.h
+1-0llvm/unittests/Target/AMDGPU/CMakeLists.txt
+207-14 files

LLVM/project df08126llvm/include/llvm/ADT GenericUniformityImpl.h, llvm/lib/Analysis UniformityAnalysis.cpp

review: address suggestions
DeltaFile
+2-68llvm/unittests/Target/AMDGPU/UniformityAnalysisCallbackVHTest.cpp
+5-7llvm/lib/Analysis/UniformityAnalysis.cpp
+3-5llvm/include/llvm/ADT/GenericUniformityImpl.h
+10-803 files

LLVM/project b085d47llvm/include/llvm/ADT GenericUniformityImpl.h

review: remove isNeverDivergent check for internal query
DeltaFile
+0-2llvm/include/llvm/ADT/GenericUniformityImpl.h
+0-21 files

LLVM/project 329a0adllvm/include/llvm/ADT GenericUniformityImpl.h GenericUniformityInfo.h

Add api to query unknown uniformity
DeltaFile
+16-7llvm/include/llvm/ADT/GenericUniformityImpl.h
+4-0llvm/include/llvm/ADT/GenericUniformityInfo.h
+20-72 files

LLVM/project 245ecffllvm/include/llvm/ADT GenericUniformityImpl.h GenericSSAContext.h, llvm/lib/CodeGen MachineSSAContext.cpp

review: remove ir header
DeltaFile
+5-9llvm/include/llvm/ADT/GenericUniformityImpl.h
+4-0llvm/lib/IR/SSAContext.cpp
+2-0llvm/lib/CodeGen/MachineSSAContext.cpp
+1-0llvm/include/llvm/ADT/GenericSSAContext.h
+12-94 files

LLVM/project b965d58llvm/include/llvm/ADT GenericUniformityImpl.h

clean-up
DeltaFile
+2-6llvm/include/llvm/ADT/GenericUniformityImpl.h
+2-61 files