LLVM/project 91450f1clang-tools-extra/clang-doc HTMLGenerator.cpp, clang-tools-extra/clang-doc/assets index.js

[clang-doc] switched from using relative to absolute paths (#93281)

fixes https://github.com/llvm/llvm-project/issues/92867

This patches changes the way clang-doc index navigation works,
previously it was based a relative path approach, this approach is error
prone and lead to wrong paths for the anchor tag. The new navigation way
is based on absolute paths and should work and be less confusing
codewise.
Because the differences with serving over a http server and viewing via
file system I also added export a RootPath variable to the index_json.js
file
DeltaFile
+13-38clang-tools-extra/clang-doc/assets/index.js
+13-0clang-tools-extra/clang-doc/HTMLGenerator.cpp
+6-0clang-tools-extra/test/clang-doc/test-path-abs.cpp
+32-383 files

LLVM/project dfe650cllvm/test/Transforms/InstCombine struct-assign-tbaa-2.ll

[TBAA] Introduce test for PR96483 (NFC)
DeltaFile
+45-0llvm/test/Transforms/InstCombine/struct-assign-tbaa-2.ll
+45-01 files

LLVM/project 6ce7b1fllvm/include/llvm/IR Metadata.h, llvm/lib/Analysis TypeBasedAliasAnalysis.cpp

[TBAA] Do not rewrite TBAA if exists, always null out `!tbaa.struct`

Retrieve `!tbaa` metadata via `!tbaa.struct` in `adjustForAccess`
unless it already exists, as struct-path aware `MDNodes` emitted
via `new-struct-path-tbaa` may be leveraged. As `!tbaa.struct`
carries memcpy padding semantics among struct fields and `!tbaa`
is already meant to aid to alias semantics, it should be possible
to zero out `!tbaa.struct` once the memcpy has been simplified.
`SROA/tbaa-struct.ll` test has gone out of scope, as `!tbaa` has
already replaced `!tbaa.struct` in SROA.

Fixes: https://github.com/llvm/llvm-project/issues/95661.
DeltaFile
+25-29llvm/test/Transforms/SROA/tbaa-struct3.ll
+0-41llvm/test/Transforms/SROA/tbaa-struct.ll
+7-4llvm/test/Transforms/InstCombine/struct-assign-tbaa-2.ll
+4-5llvm/test/Transforms/InstCombine/struct-assign-tbaa.ll
+4-4llvm/lib/Analysis/TypeBasedAliasAnalysis.cpp
+4-2llvm/include/llvm/IR/Metadata.h
+44-851 files not shown
+45-867 files

LLVM/project 73d862ellvm/cmake/modules LLVMExternalProjectUtils.cmake

Revert "[LLVM] Silence compiler-rt warning in runtimes build (#99525)"

This patch broke LLVM Flang build on Windows. PR #100202
This reverts commit f6f88f4b99638821af803d1911ab6a7dac04880b.
DeltaFile
+0-1llvm/cmake/modules/LLVMExternalProjectUtils.cmake
+0-11 files

LLVM/project 6d12b3fllvm/include/llvm/IR VectorBuilder.h, llvm/include/llvm/Transforms/Utils LoopUtils.h

[VP] Refactor VectorBuilder to avoid layering violation. NFC (#99276)

This patch refactors the handling of reduction to eliminate layering
violations.

* Introduced `getReductionIntrinsicID` in LoopUtils.h for mapping
recurrence kinds to llvm.vector.reduce.* intrinsic IDs.
* Updated `VectorBuilder::createSimpleTargetReduction` to accept
llvm.vector.reduce.* intrinsic directly.
* New function `VPIntrinsic::getForIntrinsic` for mapping intrinsic ID
to the same functional VP intrinsic ID.
DeltaFile
+5-52llvm/lib/IR/VectorBuilder.cpp
+53-0llvm/unittests/IR/VPIntrinsicTest.cpp
+42-2llvm/lib/Transforms/Utils/LoopUtils.cpp
+19-0llvm/lib/IR/IntrinsicInst.cpp
+2-3llvm/include/llvm/IR/VectorBuilder.h
+4-0llvm/include/llvm/Transforms/Utils/LoopUtils.h
+125-571 files not shown
+129-577 files

LLVM/project 693d757clang/lib/Basic Sarif.cpp

Internalize a clang Sarif function
DeltaFile
+1-1clang/lib/Basic/Sarif.cpp
+1-11 files

LLVM/project 2914a4blldb/source/Commands CommandObjectScripting.cpp, lldb/source/Plugins/ScriptInterpreter/Python/Interfaces ScriptedProcessPythonInterface.cpp ScriptedThreadPlanPythonInterface.cpp

[lldb/Commands] Add `scripting template list` command with auto discovery

This patch introduces a new `template` multiword sub-command to the
`scripting` top-level command. As the name suggests, this sub-command
operates on scripting templates, and currently has the ability to
automatically discover the various scripting extensions that lldb
supports.

This was previously reviewed in #97273.

Signed-off-by: Med Ismail Bennani <ismail at bennani.ma>
DeltaFile
+236-0lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface/ScriptedProcessPythonInterface.cpp
+0-211lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface.cpp
+124-2lldb/source/Commands/CommandObjectScripting.cpp
+125-0lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedThreadPlanPythonInterface/ScriptedThreadPlanPythonInterface.cpp
+110-0lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPlatformPythonInterface/ScriptedPlatformPythonInterface.cpp
+0-105lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedThreadPlanPythonInterface.cpp
+595-31826 files not shown
+1,234-72632 files

LLVM/project 50c0a81llvm/lib/CodeGen MachineModuleInfo.cpp

Prune includes
DeltaFile
+0-10llvm/lib/CodeGen/MachineModuleInfo.cpp
+0-101 files

LLVM/project 80b2365llvm/test/Transforms/SLPVectorizer/AMDGPU min_max.ll

AMDGPU: Add baseline test for vectorize of integer min/max
DeltaFile
+366-0llvm/test/Transforms/SLPVectorizer/AMDGPU/min_max.ll
+366-01 files

LLVM/project c98dcbfllvm/include/llvm/CodeGen BasicTTIImpl.h, llvm/test/Analysis/CostModel/X86 arith-overflow.ll intrinsic-cost-kinds.ll

TTI: Check legalization cost of mul overflow ISD nodes
DeltaFile
+60-60llvm/test/Analysis/CostModel/X86/arith-overflow.ll
+36-31llvm/include/llvm/CodeGen/BasicTTIImpl.h
+3-3llvm/test/Analysis/CostModel/X86/intrinsic-cost-kinds.ll
+99-943 files

LLVM/project b9bc720llvm/test/Analysis/CostModel/AMDGPU arith-sminmax.ll arith-uminmax.ll, llvm/test/Analysis/CostModel/ARM reduce-umin.ll reduce-smax.ll

TTI: Check legalization cost of min/max ISD nodes

Instead of counting the cost of the assumed expansion.

The AMDGPU costs for the i64 case look too high to me.
DeltaFile
+90-138llvm/test/Analysis/CostModel/AMDGPU/arith-sminmax.ll
+90-138llvm/test/Analysis/CostModel/AMDGPU/arith-uminmax.ll
+39-39llvm/test/Analysis/CostModel/ARM/reduce-umin.ll
+39-39llvm/test/Analysis/CostModel/ARM/reduce-smax.ll
+39-39llvm/test/Analysis/CostModel/ARM/reduce-smin.ll
+39-39llvm/test/Analysis/CostModel/ARM/reduce-umax.ll
+336-4324 files not shown
+426-48410 files

LLVM/project 330c0e2llvm/test/Analysis/CostModel/AMDGPU abs.ll

AMDGPU: Add baseline test for cost of abs intrinsics
DeltaFile
+341-0llvm/test/Analysis/CostModel/AMDGPU/abs.ll
+341-01 files

LLVM/project 142b888llvm/include/llvm/CodeGen BasicTTIImpl.h, llvm/test/Analysis/CostModel/AArch64 fptoi_sat.ll

TTI: Check legalization cost of fptosi_sat/fptoui_sat nodes
DeltaFile
+200-200llvm/test/Analysis/CostModel/X86/fptoi_sat.ll
+76-76llvm/test/Analysis/CostModel/AArch64/fptoi_sat.ll
+58-58llvm/test/Analysis/CostModel/ARM/fptoi_sat.ll
+35-44llvm/test/Transforms/AggressiveInstCombine/AArch64/fptosisat.ll
+31-25llvm/include/llvm/CodeGen/BasicTTIImpl.h
+35-14llvm/test/Transforms/AggressiveInstCombine/ARM/fptosisat.ll
+435-4176 files

LLVM/project 689ea87llvm/include/llvm/CodeGen BasicTTIImpl.h

TTI: Check legalization cost of mulfix ISD nodes
DeltaFile
+29-24llvm/include/llvm/CodeGen/BasicTTIImpl.h
+29-241 files

LLVM/project 215939fllvm/include/llvm/CodeGen BasicTTIImpl.h, llvm/test/Analysis/CostModel/ARM arith-overflow.ll arith-ssat.ll

TTI: Check legalization cost of add/sub overflow ISD nodes
DeltaFile
+152-152llvm/test/Analysis/CostModel/ARM/arith-overflow.ll
+86-86llvm/test/Analysis/CostModel/ARM/arith-ssat.ll
+84-84llvm/test/Analysis/CostModel/ARM/arith-usat.ll
+52-38llvm/include/llvm/CodeGen/BasicTTIImpl.h
+44-44llvm/test/Analysis/CostModel/X86/arith-ssat-codesize.ll
+44-44llvm/test/Analysis/CostModel/X86/arith-ssat-latency.ll
+462-4482 files not shown
+518-5048 files

LLVM/project 9518b34llvm/test/Analysis/CostModel/AMDGPU arith-uminmax.ll arith-sminmax.ll, llvm/test/Analysis/CostModel/ARM reduce-umax.ll reduce-smax.ll

Preserve default expansion logic
DeltaFile
+33-33llvm/test/Analysis/CostModel/ARM/reduce-umax.ll
+33-33llvm/test/Analysis/CostModel/ARM/reduce-smax.ll
+33-33llvm/test/Analysis/CostModel/ARM/reduce-umin.ll
+33-33llvm/test/Analysis/CostModel/ARM/reduce-smin.ll
+32-32llvm/test/Analysis/CostModel/AMDGPU/arith-uminmax.ll
+32-32llvm/test/Analysis/CostModel/AMDGPU/arith-sminmax.ll
+196-1963 files not shown
+232-2169 files

LLVM/project ca78bfbllvm/include/llvm/CodeGen BasicTTIImpl.h, llvm/test/Analysis/CostModel/AMDGPU abs.ll

TTI: Check legalization cost of abs nodes
DeltaFile
+20-20llvm/test/Analysis/CostModel/AMDGPU/abs.ll
+18-14llvm/include/llvm/CodeGen/BasicTTIImpl.h
+38-342 files

LLVM/project dd9c04cllvm/include/llvm/CodeGen BasicTTIImpl.h

Use switch
DeltaFile
+14-8llvm/include/llvm/CodeGen/BasicTTIImpl.h
+14-81 files

LLVM/project bec8ff8llvm/lib/CodeGen MachineModuleInfo.cpp, llvm/test/CodeGen/Generic disable-debug-info-print.ll

CodeGen: Remove -disable-debug-info-print cl::opt

This was first introduced way back in in 2010 by
6c74a872a8d34d41b751efb68e335cbe91b5a5cc, and has little evidence
of use. Only one test attempts to make use of this, but it's
also redundant since it's also using strip to drop debug info anyway
(and that also makes the test buggy, since it's intended to test
with and without debug info).

The other tests using it were only added to test the option after
discovering it was untested and moved, in later commits.
DeltaFile
+0-50llvm/test/CodeGen/Generic/disable-debug-info-print.ll
+0-19llvm/test/CodeGen/X86/disable-debug-info-print-codeview.ll
+2-8llvm/lib/CodeGen/MachineModuleInfo.cpp
+2-2llvm/test/CodeGen/X86/frame-order.ll
+4-794 files

LLVM/project d84d3f2llvm/test/Analysis/CostModel/X86 arith-ssat-latency.ll arith-ssat.ll, llvm/test/Transforms/SLPVectorizer/X86 arith-sub-ssat.ll arith-add-ssat.ll

compute approx default expansion cost in expand case
DeltaFile
+77-293llvm/test/Transforms/SLPVectorizer/X86/arith-sub-ssat.ll
+77-293llvm/test/Transforms/SLPVectorizer/X86/arith-add-ssat.ll
+146-146llvm/test/Analysis/CostModel/X86/arith-ssat-latency.ll
+146-146llvm/test/Analysis/CostModel/X86/arith-ssat.ll
+145-145llvm/test/Analysis/CostModel/X86/arith-ssat-sizelatency.ll
+144-144llvm/test/Analysis/CostModel/X86/arith-ssat-codesize.ll
+735-1,16713 files not shown
+1,573-1,96419 files

LLVM/project a7880e6llvm/test/Analysis/CostModel/X86 arith-usat-latency.ll arith-ssat-latency.ll

TTI: Fix special casing vectorization costs of saturating add/sub
DeltaFile
+352-352llvm/test/Analysis/CostModel/X86/arith-usat-latency.ll
+352-352llvm/test/Analysis/CostModel/X86/arith-ssat-latency.ll
+352-352llvm/test/Analysis/CostModel/X86/arith-usat-codesize.ll
+352-352llvm/test/Analysis/CostModel/X86/arith-usat-sizelatency.ll
+351-351llvm/test/Analysis/CostModel/X86/arith-ssat-sizelatency.ll
+350-350llvm/test/Analysis/CostModel/X86/arith-ssat-codesize.ll
+2,109-2,10916 files not shown
+3,604-3,30222 files

LLVM/project 70f6b40llvm/include/llvm/ADT DenseMap.h

[𝘀𝗽𝗿] initial version

Created using spr 1.3.5-bogner
DeltaFile
+47-29llvm/include/llvm/ADT/DenseMap.h
+47-291 files

LLVM/project 74fcb6allvm/lib/TargetParser PPCTargetParser.cpp

[TargetParser] Fix warnings

This patch fixes:

  llvm/include/llvm/TargetParser/PPCTargetParser.def:109:9: error:
  suggest braces around initialization of subobject
  [-Werror,-Wmissing-braces]

  llvm/lib/TargetParser/PPCTargetParser.cpp:96:16: error: address of
  stack memory associated with local variable 'CPU' returned
  [-Werror,-Wreturn-stack-address]
DeltaFile
+2-2llvm/lib/TargetParser/PPCTargetParser.cpp
+2-21 files

LLVM/project 2e0c215llvm/lib/Target/X86 X86InstrAsmAlias.td, llvm/test/MC/X86/apx ctest-att.s ctest-intel.s

[X86][MC] Support 'ctestX <reg>, <mem>' and 'ctextX <mem>, <reg>' as synonyms. (#97985)

relate gas discussion:
https://sourceware.org/pipermail/binutils/2024-July/135349.html
DeltaFile
+14-1llvm/test/MC/X86/apx/ctest-att.s
+12-0llvm/test/MC/X86/apx/ctest-intel.s
+8-0llvm/lib/Target/X86/X86InstrAsmAlias.td
+34-13 files

LLVM/project 26b7070clang/lib/CodeGen CGOpenMPRuntime.cpp

[Clang] Remove some dead code in getNumTeamsExprForTargetDirective (#95695)

This was reported in https://pvs-studio.com/en/blog/posts/cpp/1126/,
fragment N9.

V523 The 'then' statement is equivalent to the subsequent code fragment.
CGOpenMPRuntime.cpp:6040, 6036

---------

Co-authored-by: Shivam Gupta <shivma98.tkg at gmail.com>
DeltaFile
+0-5clang/lib/CodeGen/CGOpenMPRuntime.cpp
+0-51 files

LLVM/project fabb2a9llvm/test/Analysis/CostModel/AMDGPU arith-sminmax.ll arith-uminmax.ll, llvm/test/Analysis/CostModel/ARM reduce-umin.ll reduce-smax.ll

Preserve default expansion logic
DeltaFile
+33-33llvm/test/Analysis/CostModel/ARM/reduce-umin.ll
+33-33llvm/test/Analysis/CostModel/ARM/reduce-smax.ll
+33-33llvm/test/Analysis/CostModel/ARM/reduce-smin.ll
+33-33llvm/test/Analysis/CostModel/ARM/reduce-umax.ll
+32-32llvm/test/Analysis/CostModel/AMDGPU/arith-sminmax.ll
+32-32llvm/test/Analysis/CostModel/AMDGPU/arith-uminmax.ll
+196-1963 files not shown
+232-2169 files

LLVM/project 1b7631aclang-tools-extra/clang-doc Mapper.cpp Mapper.h, clang-tools-extra/clang-doc/tool ClangDocMain.cpp

[clang-doc] Improve clang-doc performance through memoization (#96809)

DeltaFile
+35-9clang-tools-extra/clang-doc/Mapper.cpp
+1-1clang-tools-extra/clang-doc/Mapper.h
+0-1clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
+36-113 files

LLVM/project 7a8f09dllvm/test/Transforms/SLPVectorizer/AMDGPU min_max.ll

AMDGPU: Add baseline test for vectorize of integer min/max
DeltaFile
+366-0llvm/test/Transforms/SLPVectorizer/AMDGPU/min_max.ll
+366-01 files

LLVM/project 810200dllvm/test/Analysis/CostModel/AMDGPU arith-uminmax.ll arith-sminmax.ll, llvm/test/Analysis/CostModel/ARM reduce-smin.ll reduce-umax.ll

TTI: Check legalization cost of min/max ISD nodes

Instead of counting the cost of the assumed expansion.

The AMDGPU costs for the i64 case look too high to me.
DeltaFile
+90-138llvm/test/Analysis/CostModel/AMDGPU/arith-uminmax.ll
+90-138llvm/test/Analysis/CostModel/AMDGPU/arith-sminmax.ll
+39-39llvm/test/Analysis/CostModel/ARM/reduce-smin.ll
+39-39llvm/test/Analysis/CostModel/ARM/reduce-umax.ll
+39-39llvm/test/Analysis/CostModel/ARM/reduce-umin.ll
+39-39llvm/test/Analysis/CostModel/ARM/reduce-smax.ll
+336-4324 files not shown
+426-48410 files

LLVM/project ebc2c5bllvm/include/llvm/CodeGen BasicTTIImpl.h

Use switch
DeltaFile
+14-8llvm/include/llvm/CodeGen/BasicTTIImpl.h
+14-81 files