LLVM/project bafbf2dllvm/lib/TargetParser RISCVISAInfo.cpp, llvm/unittests/TargetParser RISCVISAInfoTest.cpp

[RISCV] Add rules for Zca+Zcb+Zcmp+Zcmpt implying Zce. (#175041)

The implication rules need to consider whether F is enabled like was
done for C in #172860.
DeltaFile
+86-0llvm/unittests/TargetParser/RISCVISAInfoTest.cpp
+12-0llvm/lib/TargetParser/RISCVISAInfo.cpp
+98-02 files

LLVM/project d27672bclang/include/clang/Basic BuiltinsAMDGPU.def, clang/test/CodeGenHIP builtins-amdgcn-raytracing.hip builtins-amdgcn-wmma-w64.hip

[AMDGPU] Modifies raytracing and wmma builtin def to take _Float16 for HIP/C++ (#175039)

For raytrace and wmma builtins, using 'x' in the def to take _Float16
for HIP/C++ and half for OpenCL.
DeltaFile
+96-0clang/test/CodeGenHIP/builtins-amdgcn-raytracing.hip
+90-0clang/test/CodeGenHIP/builtins-amdgcn-wmma-w64.hip
+89-0clang/test/CodeGenHIP/builtins-amdgcn-wmma-w32.hip
+62-0clang/test/CodeGenHIP/builtins-amdgcn-gfx12-wmma-w64.hip
+62-0clang/test/CodeGenHIP/builtins-amdgcn-gfx12-wmma-w32.hip
+12-12clang/include/clang/Basic/BuiltinsAMDGPU.def
+411-126 files

LLVM/project bff604eclang-tools-extra/clang-doc/assets class-template.mustache enum-template.mustache, clang-tools-extra/test/clang-doc enum.cpp mustache-index.cpp

fix tests
DeltaFile
+21-29clang-tools-extra/clang-doc/assets/class-template.mustache
+17-23clang-tools-extra/test/clang-doc/json/class.cpp
+11-11clang-tools-extra/unittests/clang-doc/JSONGeneratorTest.cpp
+4-12clang-tools-extra/clang-doc/assets/enum-template.mustache
+8-5clang-tools-extra/test/clang-doc/enum.cpp
+5-7clang-tools-extra/test/clang-doc/mustache-index.cpp
+66-8710 files not shown
+98-11416 files

LLVM/project 8fcb996llvm/test/CodeGen/AMDGPU carryout-selection.ll llvm.amdgcn.wmma.gfx1250.w32.ll

update the SWAR
DeltaFile
+2-713llvm/test/CodeGen/AMDGPU/carryout-selection.ll
+0-246llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wmma.gfx1250.w32.ll
+0-220llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wmma.imod.gfx1250.w32.ll
+0-212llvm/test/CodeGen/AMDGPU/flat-saddr-load.ll
+0-174llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wmma.imm.gfx1250.w32.ll
+170-0llvm/test/CodeGen/AMDGPU/vgpr-setreg-mode-swar.mir
+172-1,565145 files not shown
+201-6,089151 files

LLVM/project 8d0228ellvm/test/CodeGen/AMDGPU carryout-selection.ll llvm.amdgcn.wmma.gfx1250.w32.ll

[AMDGPU] Handle `s_setreg_imm32_b32` targeting `MODE` register

On certain hardware, this instruction clobbers VGPR MSB `bits[12:19]`, so we need to restore the current mode.
DeltaFile
+713-2llvm/test/CodeGen/AMDGPU/carryout-selection.ll
+246-0llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wmma.gfx1250.w32.ll
+220-0llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wmma.imod.gfx1250.w32.ll
+212-0llvm/test/CodeGen/AMDGPU/flat-saddr-load.ll
+174-0llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wmma.imm.gfx1250.w32.ll
+166-0llvm/test/CodeGen/AMDGPU/flat-saddr-atomics.ll
+1,731-2146 files not shown
+6,212-3152 files

LLVM/project 4913ed4llvm/test/CodeGen/AMDGPU llvm.amdgcn.wmma.gfx1250.w32.ll llvm.amdgcn.wmma.imod.gfx1250.w32.ll

resolve comments
DeltaFile
+246-246llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wmma.gfx1250.w32.ll
+220-220llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wmma.imod.gfx1250.w32.ll
+212-212llvm/test/CodeGen/AMDGPU/flat-saddr-load.ll
+174-174llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wmma.imm.gfx1250.w32.ll
+166-166llvm/test/CodeGen/AMDGPU/flat-saddr-atomics.ll
+103-103llvm/test/CodeGen/AMDGPU/flat-saddr-store.ll
+1,121-1,121144 files not shown
+5,383-5,461150 files

LLVM/project 5308e0dllvm/lib/Target/AMDGPU AMDGPULowerVGPREncoding.cpp

resolve review comments
DeltaFile
+9-6llvm/lib/Target/AMDGPU/AMDGPULowerVGPREncoding.cpp
+9-61 files

LLVM/project 1314c79clang-tools-extra/clang-doc/assets class-template.mustache enum-template.mustache, clang-tools-extra/test/clang-doc index.cpp

[clang-doc] Fix misnamed, mismatched, or incorrect tags

This is mostly a chore patch that fixes misnamed, mismatched,
or non-existant tags. That includes renaming the function tags in the
class template to `Has*Methods` instead of `Has*Functions`. The "method"
style was already preferred in the template HTML.

Some extraneous tags were removed from the enum template. All templates should use
`Description` for rendering comments, but it was still using an old tag
name. Also, the JSON generator currently doesn't serialize individual
enum value comments, so that tag was removed. Same for public members.

`Description` is removed for friends due to the way Mustache handles missing
tags. If `Description` isn't present, it will use the parent's
description which is undesirable.
DeltaFile
+21-29clang-tools-extra/clang-doc/assets/class-template.mustache
+17-23clang-tools-extra/test/clang-doc/json/class.cpp
+11-11clang-tools-extra/unittests/clang-doc/JSONGeneratorTest.cpp
+4-12clang-tools-extra/clang-doc/assets/enum-template.mustache
+8-3clang-tools-extra/test/clang-doc/json/class-template.cpp
+5-5clang-tools-extra/test/clang-doc/index.cpp
+66-8310 files not shown
+94-10616 files

LLVM/project 82830b4clang-tools-extra/clang-doc/assets clang-doc-mustache.css navbar-template.mustache, clang-tools-extra/test/clang-doc basic-project.mustache.test

[clang-doc] Fix inconsistent padding and spacing in HTML

The navbar and sidebar caused spacing and alignment issues since they
were fixed elements with defined height/width. It was difficult to have
all elements below them correctly offset the height. This patch changes them
to sticky elements within the normal document flow that don't define their
height/width explicitly. This actually lets us use existing HTML/CSS
properties (like the "content" div) more naturally.

This also changes the navbar behavior to not follow while scrolling.
DeltaFile
+26-24clang-tools-extra/clang-doc/assets/clang-doc-mustache.css
+12-12clang-tools-extra/test/clang-doc/basic-project.mustache.test
+7-7clang-tools-extra/clang-doc/assets/navbar-template.mustache
+3-1clang-tools-extra/clang-doc/assets/namespace-template.mustache
+3-1clang-tools-extra/clang-doc/assets/index-template.mustache
+3-1clang-tools-extra/clang-doc/assets/class-template.mustache
+54-466 files

LLVM/project 36d8658clang-tools-extra/clang-doc/assets class-template.mustache enum-template.mustache, clang-tools-extra/test/clang-doc enum.cpp mustache-index.cpp

[clang-doc] Serialize repository URL in Mustache templates

Location tags didn't handle possible `FileURL` fields when a repository
URL was specified in a clang-doc invocation. This also cleans up all
location occurences to use `<p>` instead of `<div>` and allows linking
to the repository URL.
DeltaFile
+4-6clang-tools-extra/test/clang-doc/enum.cpp
+1-3clang-tools-extra/test/clang-doc/mustache-index.cpp
+3-1clang-tools-extra/clang-doc/assets/class-template.mustache
+1-3clang-tools-extra/clang-doc/assets/enum-template.mustache
+3-1clang-tools-extra/clang-doc/assets/namespace-template.mustache
+1-2clang-tools-extra/test/clang-doc/templates.cpp
+13-164 files not shown
+17-2110 files

LLVM/project 4fa0767clang-tools-extra/clang-doc/assets function-template.mustache, clang-tools-extra/test/clang-doc templates.cpp

[clang-doc] Don't serialize non-existant locations in HTML (#174887)

The function template didn't check to see if a `Location` existed before
emitting the definition location line.
DeltaFile
+3-1clang-tools-extra/clang-doc/assets/function-template.mustache
+0-2clang-tools-extra/test/clang-doc/templates.cpp
+0-1clang-tools-extra/test/clang-doc/json/class.cpp
+3-43 files

LLVM/project d5a1ed0clang/lib/CIR/Analysis FallThroughWarning.cpp

Remove more unnecesary stuff
DeltaFile
+0-12clang/lib/CIR/Analysis/FallThroughWarning.cpp
+0-121 files

LLVM/project 5f531eellvm/lib/Transforms/Instrumentation BoundsChecking.cpp, llvm/test/Instrumentation/BoundsChecking big-function.ll

[BoundsChecking] Clamp trap ID if it would overflow (#175103)

This was exposed by a83c89495ba6fe0134dcaa02372c320cc7ff0dbf. We were
trying to create 8-bit integers to represent the size of the function,
which might be larger than what can fit in an 8-bit integer. This patch
clamps the argument and adds a regression test.
DeltaFile
+647-0llvm/test/Instrumentation/BoundsChecking/big-function.ll
+10-6llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp
+657-62 files

LLVM/project d067379mlir/lib/Dialect/OpenACC/Transforms OffloadLiveInValueCanonicalization.cpp

[mlir][acc] Fix unused variable warning in non-asserts build (#175101)

f79f50cd547d0582af15aebd3a0413136b9311ae added a pass that has an
iteration variable that is only used behind a LLVM_DEBUG macro which are
no-op in release builds, thus leaving the variable unused.
DeltaFile
+1-1mlir/lib/Dialect/OpenACC/Transforms/OffloadLiveInValueCanonicalization.cpp
+1-11 files

LLVM/project 3b01071clang/test CMakeLists.txt

[clang][test] Rebuild lld if the clang driver tests will use it (#174512)

The clang driver tests use lld, so set that as a dependency.
DeltaFile
+4-0clang/test/CMakeLists.txt
+4-01 files

LLVM/project da383e7clang-tools-extra/clang-doc/assets namespace-template.mustache enum-template.mustache, clang-tools-extra/test/clang-doc enum.cpp mustache-index.cpp

[clang-doc] Serialize repository URL in Mustache templates

Location tags didn't handle possible `FileURL` fields when a repository
URL was specified in a clang-doc invocation. This also cleans up all
location occurences to use `<p>` instead of `<div>` and allows linking
to the repository URL.
DeltaFile
+4-6clang-tools-extra/test/clang-doc/enum.cpp
+1-3clang-tools-extra/test/clang-doc/mustache-index.cpp
+3-1clang-tools-extra/clang-doc/assets/namespace-template.mustache
+1-3clang-tools-extra/clang-doc/assets/enum-template.mustache
+3-1clang-tools-extra/clang-doc/assets/class-template.mustache
+2-1clang-tools-extra/clang-doc/assets/function-template.mustache
+14-154 files not shown
+17-2110 files

LLVM/project be256e4clang-tools-extra/clang-doc/assets function-template.mustache, clang-tools-extra/test/clang-doc templates.cpp

[clang-doc] Don't serialize non-existant locations in HTML

The function template didn't check to see if a `Location` existed before
emitting the definition location line.
DeltaFile
+3-1clang-tools-extra/clang-doc/assets/function-template.mustache
+0-2clang-tools-extra/test/clang-doc/templates.cpp
+0-1clang-tools-extra/test/clang-doc/json/class.cpp
+3-43 files

LLVM/project 6de75a9clang-tools-extra/clang-doc JSONGenerator.cpp, clang-tools-extra/clang-doc/assets class-template.mustache

[clang-doc] Add protected methods to class template (#174884)

Protected method tags already existed in the class template, but they didn't conform to the current JSON scheme.
DeltaFile
+16-18clang-tools-extra/clang-doc/assets/class-template.mustache
+10-0clang-tools-extra/test/clang-doc/json/class.cpp
+1-1clang-tools-extra/clang-doc/JSONGenerator.cpp
+27-193 files

LLVM/project 568b8e4flang/include/flang/Parser parse-tree-visitor.h parse-tree.h, flang/lib/Lower Bridge.cpp

[flang] Add traits to several AST nodes (#175065)

There are quite a few AST nodes that don't have any of the standard
traits (Wrapper/Tuple/etc). Because of that they require special
handling in the parse tree visitor.

Convert a subset of these nodes to the typical format, and remove the
special cases from the parse tree visitor.
DeltaFile
+0-153flang/include/flang/Parser/parse-tree-visitor.h
+20-44flang/include/flang/Parser/parse-tree.h
+23-20flang/lib/Semantics/resolve-names.cpp
+21-20flang/lib/Semantics/check-case.cpp
+16-10flang/lib/Parser/unparse.cpp
+7-6flang/lib/Lower/Bridge.cpp
+87-2533 files not shown
+95-2589 files

LLVM/project 7a22beallvm/lib/Target/WebAssembly WebAssemblyISelLowering.cpp, llvm/test/CodeGen/WebAssembly libcalls.ll simd-unsupported.ll

[WebAssembly] Expand vector frem instructions (#174854)

Commit
https://github.com/llvm/llvm-project/commit/6ad41bcc498b7c186ceb54616c3697fc9873c04a
changed how frem is expanded during legalization and it
broke WebAssembly but we were missing test coverage. We want to maintain
our previous behavior of unrolling vectors and using a libcall to
implement scalar frem. I'm not sure why this now has to be different
(in ISelLowering) from other libcalls like fsin which work the same way
in the end, but this code does accurately describe what we want.

Fixes: https://github.com/emscripten-core/emscripten/issues/25991
DeltaFile
+68-59llvm/test/CodeGen/WebAssembly/libcalls.ll
+14-0llvm/test/CodeGen/WebAssembly/simd-unsupported.ll
+5-1llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
+87-603 files

LLVM/project 208687ellvm/test/Transforms/SampleProfile pseudo-probe-coro-debug-fix.ll

[SampleProfile] Fix pseudo-probe-coro-debug-fix.ll to only x86 targets (#175093)

Test case in https://github.com/llvm/llvm-project/pull/173834 is failing
on non-x86 targets. Adding `REQUIRES: x86-registered-target` to fix the
failures.
DeltaFile
+1-0llvm/test/Transforms/SampleProfile/pseudo-probe-coro-debug-fix.ll
+1-01 files

LLVM/project 8e7d6eallvm/test/CodeGen/AMDGPU carryout-selection.ll llvm.amdgcn.wmma.gfx1250.w32.ll

update the SWAR
DeltaFile
+2-713llvm/test/CodeGen/AMDGPU/carryout-selection.ll
+0-246llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wmma.gfx1250.w32.ll
+0-220llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wmma.imod.gfx1250.w32.ll
+0-212llvm/test/CodeGen/AMDGPU/flat-saddr-load.ll
+0-174llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wmma.imm.gfx1250.w32.ll
+0-166llvm/test/CodeGen/AMDGPU/flat-saddr-atomics.ll
+2-1,731144 files not shown
+32-6,089150 files

LLVM/project aaab3dfclang/lib/CodeGen CGDebugInfo.cpp

clang format
DeltaFile
+2-2clang/lib/CodeGen/CGDebugInfo.cpp
+2-21 files

LLVM/project be6c875clang/include/clang/Basic DebugOptions.def, clang/include/clang/Options Options.td

Address comments
DeltaFile
+14-22clang/lib/CodeGen/CGDebugInfo.cpp
+4-0clang/include/clang/Options/Options.td
+3-0clang/include/clang/Basic/DebugOptions.def
+1-1clang/test/DebugInfo/Generic/macro-info.c
+22-234 files

LLVM/project 60f4958clang/lib/CodeGen CGDebugInfo.cpp, clang/test/DebugInfo/Generic macro-info.c

[Clang][DebugInfo] Add a flag to use expansion loc for macro params.

This patch adds a flag to allow users to preserve the old behaviour - use the macro expansion location for parameters. This is useful for wider testing of sample profile driven PGO which relies on debug information based mapping.
DeltaFile
+19-16clang/lib/CodeGen/CGDebugInfo.cpp
+12-6clang/test/DebugInfo/Generic/macro-info.c
+31-222 files

LLVM/project 3529754clang/lib/CodeGen CGDebugInfo.cpp

Add a flag to preserve the old macro behaviour.

This allows us to more accurately quantify the impact of this change in
isolation for sample based profiling which relies on debug information.
DeltaFile
+24-9clang/lib/CodeGen/CGDebugInfo.cpp
+24-91 files

LLVM/project 022542aclang/lib/CodeGen CGDebugInfo.cpp

clang format
DeltaFile
+2-2clang/lib/CodeGen/CGDebugInfo.cpp
+2-21 files

LLVM/project 734eff8libc/src/__support/wctype/conversion/random stdrng.h CMakeLists.txt

[libc][wctype] Upstream StdRng from PtrHash-cc prototype to LLVM libc
DeltaFile
+269-0libc/src/__support/wctype/conversion/random/stdrng.h
+10-0libc/src/__support/wctype/conversion/random/CMakeLists.txt
+279-02 files

LLVM/project a360959libc/src/__support/wctype/conversion/random vec512_storage.cpp imm.h

[libc][wctype] Upstream immintrin storage from PtrHash-cc prototype to LLVM libc
DeltaFile
+342-0libc/src/__support/wctype/conversion/random/vec512_storage.cpp
+268-0libc/src/__support/wctype/conversion/random/imm.h
+82-0libc/src/__support/wctype/conversion/random/vec512_storage.h
+76-0libc/src/__support/wctype/conversion/random/vec128_storage.h
+63-0libc/src/__support/wctype/conversion/random/vec256_storage.h
+60-0libc/src/__support/wctype/conversion/random/vec256_storage.cpp
+891-01 files not shown
+913-07 files

LLVM/project a00af6alibc/src/__support/wctype/conversion/utils utils.h CMakeLists.txt

[libc][wctype] Upstream common utils header file from PtrHash-cc prototype to LLVM libc
DeltaFile
+212-0libc/src/__support/wctype/conversion/utils/utils.h
+12-0libc/src/__support/wctype/conversion/utils/CMakeLists.txt
+224-02 files