LLVM/project efa0f22llvm/lib/Target/RISCV/MCTargetDesc RISCVELFStreamer.cpp RISCVELFStreamer.h, llvm/test/MC/RISCV mapping-isa-option-rv32.s mapping-isa-option-rv64.s

[RISCV][MC] Emit ISA mapping symbols on .option arch/rvc/norvc/pop (#193123)

When .option arch, .option rvc, .option norvc, or .option pop changes
the active ISA, emit a "$x<ISAString>" mapping symbol before the next
instruction so that tools can determine the ISA in effect for each code
region.

Also emit ISA mapping symbols on begin of first instruction to make sure
link with different object still can disassemble correctly.

Based on #67541

---------

Co-authored-by: Joseph.Faulls <Joseph.Faulls at imgtec.com>
DeltaFile
+70-8llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp
+75-0llvm/test/MC/RISCV/mapping-isa-option-rv32.s
+75-0llvm/test/MC/RISCV/mapping-isa-option-rv64.s
+30-0llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.h
+28-0llvm/test/MC/RISCV/mapping-isa-option-rvc-dedup.s
+17-0llvm/test/MC/RISCV/mapping-isa-attribute.s
+295-83 files not shown
+320-159 files

LLVM/project fde2e27clang/lib/Sema SemaDeclCXX.cpp, clang/test/SemaCXX warn-weak-vtables.cpp

[clang][modules] Fix false positive -Wweak-vtables in named modules (#193136)

The -Wweak-vtables warning was incorrectly firing for classes defined in
C++20 module units. This warning does not apply to module units as the
vtable should be owned by the module and emitted only once.

Fixes #193004
DeltaFile
+102-82clang/test/SemaCXX/warn-weak-vtables.cpp
+4-1clang/lib/Sema/SemaDeclCXX.cpp
+106-832 files

LLVM/project bb76209llvm/lib/Passes PassBuilderPipelines.cpp, llvm/test/Other new-pm-defaults.ll new-pm-thinlto-postlink-pgo-defaults.ll

Reapply "[JTS][Passes] Enable JTS By Default" (#193409)

Reverts llvm/llvm-project#193399

The last assertion failure seen on the BOLT buildbot should be fixed by
ee06802dc4a85b4a05ae75c1853bca8e58f76f6d.
DeltaFile
+1-5llvm/test/Other/new-pm-defaults.ll
+2-2llvm/lib/Passes/PassBuilderPipelines.cpp
+1-0llvm/test/Other/new-pm-thinlto-postlink-pgo-defaults.ll
+1-0llvm/test/Other/new-pm-thinlto-postlink-samplepgo-defaults.ll
+1-0llvm/test/Other/new-pm-thinlto-prelink-pgo-defaults.ll
+1-0llvm/test/Other/new-pm-thinlto-prelink-samplepgo-defaults.ll
+7-72 files not shown
+9-78 files

LLVM/project 0f4fb3bllvm/include/llvm/MC MCPseudoProbe.h

[NFC] [MC] Fixed rule-of-five for MCPseudoProbeDecoder class (#193181)

- Added destructor for **MCPseudoProbeDecoder** class as rule of five
(https://en.cppreference.com/cpp/language/rule_of_three)
DeltaFile
+1-0llvm/include/llvm/MC/MCPseudoProbe.h
+1-01 files

LLVM/project 554edb2lld/test/ELF/linkerscript memory-include.test

[ELF,test] Cover empty INCLUDE inside MEMORY { ... } (#193411)
DeltaFile
+22-0lld/test/ELF/linkerscript/memory-include.test
+22-01 files

LLVM/project c10f290lld/test/ELF/linkerscript output-section-include.test section-include.test, lldb/test/API/functionalities/always-run-threads main.cpp

comment

Created using spr 1.3.7
DeltaFile
+24-11lld/test/ELF/linkerscript/output-section-include.test
+23-11lld/test/ELF/linkerscript/section-include.test
+31-0llvm/test/Transforms/JumpTableToSwitch/profile-no-guid-metadata.ll
+30-0llvm/test/TableGen/AsmMatcherFullCustomConversionMethod.td
+18-8lld/test/ELF/linkerscript/memory-include.test
+7-6lldb/test/API/functionalities/always-run-threads/main.cpp
+133-3621 files not shown
+159-6727 files

LLVM/project a5d5641lld/test/ELF/linkerscript output-section-include.test section-include.test, lldb/test/API/functionalities/always-run-threads main.cpp

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]
DeltaFile
+24-11lld/test/ELF/linkerscript/output-section-include.test
+23-11lld/test/ELF/linkerscript/section-include.test
+31-0llvm/test/Transforms/JumpTableToSwitch/profile-no-guid-metadata.ll
+30-0llvm/test/TableGen/AsmMatcherFullCustomConversionMethod.td
+18-8lld/test/ELF/linkerscript/memory-include.test
+7-6lldb/test/API/functionalities/always-run-threads/main.cpp
+133-3620 files not shown
+158-6626 files

LLVM/project 45617c9lld/test/ELF/linkerscript output-section-include.test section-include.test, lldb/test/API/functionalities/always-run-threads main.cpp

comment

Created using spr 1.3.7
DeltaFile
+24-11lld/test/ELF/linkerscript/output-section-include.test
+23-11lld/test/ELF/linkerscript/section-include.test
+31-0llvm/test/Transforms/JumpTableToSwitch/profile-no-guid-metadata.ll
+30-0llvm/test/TableGen/AsmMatcherFullCustomConversionMethod.td
+18-8lld/test/ELF/linkerscript/memory-include.test
+7-6lldb/test/API/functionalities/always-run-threads/main.cpp
+133-3620 files not shown
+158-6626 files

LLVM/project 40ec7adclang/lib/AST/ByteCode Compiler.cpp, clang/test/CodeGen/AArch64 neon-misc.c

message

Created using spr 1.3.7
DeltaFile
+868-0llvm/test/CodeGen/AArch64/hadd-combine-scalar.ll
+474-121clang/lib/AST/ByteCode/Compiler.cpp
+459-0llvm/test/CodeGen/AMDGPU/rewrite-vgpr-mfma-to-agpr-spill-multi-store-mir.mir
+0-428llvm/test/CodeGen/AArch64/xtn.ll
+355-0clang/test/CodeGen/AArch64/neon/vpaddl.c
+0-308clang/test/CodeGen/AArch64/neon-misc.c
+2,156-857302 files not shown
+7,499-2,433308 files

LLVM/project fe6dd83clang/lib/AST/ByteCode Compiler.cpp, clang/test/CodeGen/AArch64 neon-misc.c

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]
DeltaFile
+868-0llvm/test/CodeGen/AArch64/hadd-combine-scalar.ll
+474-121clang/lib/AST/ByteCode/Compiler.cpp
+459-0llvm/test/CodeGen/AMDGPU/rewrite-vgpr-mfma-to-agpr-spill-multi-store-mir.mir
+0-428llvm/test/CodeGen/AArch64/xtn.ll
+355-0clang/test/CodeGen/AArch64/neon/vpaddl.c
+0-308clang/test/CodeGen/AArch64/neon-misc.c
+2,156-857301 files not shown
+7,492-2,428307 files

LLVM/project 9734c34clang-tools-extra/clang-tidy/tool check_update_docs.py, clang/lib/Analysis UnsafeBufferUsage.cpp

rebase

Created using spr 1.3.7
DeltaFile
+251-0llvm/unittests/MC/DwarfDebugFrameCIE.cpp
+35-120lldb/examples/darwin/heap_find/heap.py
+66-57clang/lib/Analysis/UnsafeBufferUsage.cpp
+104-0llvm/test/Transforms/LowerTypeTests/x86-jumptable-dbg.ll
+69-27llvm/lib/DebugInfo/PDB/Native/SymbolCache.cpp
+93-0clang-tools-extra/clang-tidy/tool/check_update_docs.py
+618-20435 files not shown
+1,171-35441 files

LLVM/project 3c3966dllvm/lib/Passes PassBuilderPipelines.cpp, llvm/test/Other new-pm-defaults.ll new-pm-thinlto-postlink-samplepgo-defaults.ll

Revert "Revert "[JTS][Passes] Enable JTS By Default" (#193399)"

This reverts commit a843c699cc89c92ca60afc866d7257362796c416.
DeltaFile
+1-5llvm/test/Other/new-pm-defaults.ll
+2-2llvm/lib/Passes/PassBuilderPipelines.cpp
+1-0llvm/test/Other/new-pm-thinlto-postlink-samplepgo-defaults.ll
+1-0llvm/test/Other/new-pm-thinlto-prelink-defaults.ll
+1-0llvm/test/Other/new-pm-thinlto-prelink-pgo-defaults.ll
+1-0llvm/test/Other/new-pm-thinlto-prelink-samplepgo-defaults.ll
+7-72 files not shown
+9-78 files

LLVM/project ee06802llvm/lib/Transforms/Scalar JumpTableToSwitch.cpp, llvm/test/Transforms/JumpTableToSwitch profile-no-guid-metadata.ll

[JTS] Correctly handle all zero profile values in VP metadata (#193402)

We can end up with cases where the VP metadata only has zero profile
values, for example if all of the functions end up being external and
uninstrumented. This caused fixes an assertion failure on the BOLT
builder that came up last time we tried to turn the pass on by default.
DeltaFile
+31-0llvm/test/Transforms/JumpTableToSwitch/profile-no-guid-metadata.ll
+5-3llvm/lib/Transforms/Scalar/JumpTableToSwitch.cpp
+36-32 files

LLVM/project dee5769lldb/test/API/functionalities/always-run-threads main.cpp TestAlwaysRunThreadNames.py

[lldb] Fix potential TestAlwaysRunThreadNames flakiness (#193405)

Change the stepped function to spin on a flag until the helper thread
advances the counter, so the step-over can only complete if the helper
thread actually ran.

Fixes #193398
DeltaFile
+7-6lldb/test/API/functionalities/always-run-threads/main.cpp
+7-3lldb/test/API/functionalities/always-run-threads/TestAlwaysRunThreadNames.py
+14-92 files

LLVM/project df53d34llvm/include/llvm/IR LLVMContext.h, llvm/lib/IR LLVMContext.cpp Value.cpp

review: address suggestion
DeltaFile
+5-0llvm/lib/IR/LLVMContext.cpp
+5-0llvm/include/llvm/IR/LLVMContext.h
+1-3llvm/lib/IR/Value.cpp
+11-33 files

LLVM/project bf7ced3lldb/test/API/functionalities/thread/jump Makefile, lldb/test/API/python_api/lldbutil/process Makefile

[lldb] Remove ENABLE_THREADS from Makefiles that don't need it (#193363)

Likely these Makefiles were copy/pasted.
DeltaFile
+0-3lldb/test/API/tools/lldb-dap/stepInTargets/Makefile
+0-2lldb/test/API/tools/lldb-dap/step/Makefile
+0-2lldb/test/API/tools/lldb-dap/save-core/Makefile
+0-1lldb/test/API/python_api/module_section/Makefile
+0-1lldb/test/API/python_api/lldbutil/process/Makefile
+0-1lldb/test/API/functionalities/thread/jump/Makefile
+0-102 files not shown
+0-128 files

LLVM/project d0bb0c8lld/test/ELF/linkerscript output-section-include.test section-include.test

[ELF,test] Convert INCLUDE tests to split-file pattern (#193403)

Preparatory for adding negative test cases.
DeltaFile
+24-11lld/test/ELF/linkerscript/output-section-include.test
+23-11lld/test/ELF/linkerscript/section-include.test
+18-8lld/test/ELF/linkerscript/memory-include.test
+65-303 files

LLVM/project b3a5d14lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime AppleObjCRuntimeV2.cpp

[lldb] Doxygenify comments in AppleObjCRuntimeV2 (NFC) (#193401)
DeltaFile
+2-2lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
+2-21 files

LLVM/project eb4296fllvm/test/TableGen AsmMatcherFullCustomConversionMethod.td, llvm/utils/TableGen AsmMatcherEmitter.cpp

[llvm-mc][AsmMatcherEmitter] Fix the minimum ConversionTable entry size (#191977)

When working on a target with fully customized instruction
conversion method, there's a build failure due to the case that in the
target's generated asm matcher, the size of `ConversionTable` entry is 2
(i.e., the minimum size defined in `AsmMatcherEmitter` TableGen
backend).

However, for a target that has customized conversion method for all
instructions, a `ConversionTable` entry should be looking like: `{
CVT_<the-custom-conversion-method>, <the-position-of-operand>, CVT_Done
}`, where the position of operand for custom conversion is by-default 0.

This commit includes a test case to illustrate this scenario, along with
a little fix.
DeltaFile
+30-0llvm/test/TableGen/AsmMatcherFullCustomConversionMethod.td
+4-1llvm/utils/TableGen/AsmMatcherEmitter.cpp
+34-12 files

LLVM/project 9945632llvm/utils/TableGen/Common/GlobalISel GlobalISelMatchTable.cpp

test
DeltaFile
+1-1llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp
+1-11 files

LLVM/project a843c69llvm/lib/Passes PassBuilderPipelines.cpp, llvm/test/Other new-pm-defaults.ll new-pm-thinlto-prelink-samplepgo-defaults.ll

Revert "[JTS][Passes] Enable JTS By Default" (#193399)

Reverts llvm/llvm-project#193300

Still causing failures on the BOLT bot.

https://lab.llvm.org/buildbot/#/builders/113/builds/12403

Seems related to the zero GUID issue.
DeltaFile
+5-1llvm/test/Other/new-pm-defaults.ll
+2-2llvm/lib/Passes/PassBuilderPipelines.cpp
+0-1llvm/test/Other/new-pm-thinlto-prelink-samplepgo-defaults.ll
+0-1llvm/test/Other/new-pm-thinlto-prelink-pgo-defaults.ll
+0-1llvm/test/Other/new-pm-thinlto-prelink-defaults.ll
+0-1llvm/test/Other/new-pm-thinlto-postlink-samplepgo-defaults.ll
+7-72 files not shown
+7-98 files

LLVM/project e4e0d6bllvm/test/CodeGen/AMDGPU amdgcn.bitcast.1024bit.ll amdgcn.bitcast.512bit.ll, llvm/test/CodeGen/RISCV/rvv vfadd-vp.ll

better stack trace

Created using spr 1.3.7
DeltaFile
+4,805-4,811llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+1,871-1,882llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+764-1,229llvm/test/CodeGen/RISCV/rvv/vfadd-vp.ll
+837-855llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.256bit.ll
+1,139-456llvm/test/CodeGen/AMDGPU/llvm.amdgcn.intersect_ray.ll
+664-508llvm/test/Transforms/LoopVectorize/RISCV/strided-accesses.ll
+10,080-9,741818 files not shown
+35,852-19,410824 files

LLVM/project a36c07bllvm/test/CodeGen/AMDGPU amdgcn.bitcast.1024bit.ll amdgcn.bitcast.512bit.ll, llvm/test/CodeGen/RISCV/rvv vfadd-vp.ll

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]
DeltaFile
+4,805-4,811llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+1,871-1,882llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+764-1,229llvm/test/CodeGen/RISCV/rvv/vfadd-vp.ll
+837-855llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.256bit.ll
+1,139-456llvm/test/CodeGen/AMDGPU/llvm.amdgcn.intersect_ray.ll
+664-508llvm/test/Transforms/LoopVectorize/RISCV/strided-accesses.ll
+10,080-9,741815 files not shown
+35,790-19,390821 files

LLVM/project 3475801llvm/lib/Target/AMDGPU SIWholeQuadMode.cpp, llvm/test/CodeGen/AMDGPU wqm-propagate-for-execz-side-effect.ll

AMDGPU: Back-propagate wqm for sources of side-effect instruction

For readfirstlane instruction, as it would get undefined value if exec
is zero. To handle the case that only helper lanes execute the parent
block, we let the readfirstlane to execute under wqm. But this is not
enough. If the parent block was also executed by non-helper lanes, we
also need to make sure its sources were calculated under wqm. Otherwise,
if the instruction that generate the source of readfirstlane was
executed under exact mode, the value would contain garbage data in help
lane. The garbage data in helper lane maybe returned by the
readfirstlane running under wqm.

To fix this issue, we need to enforce the back-propagation of wqm for
instructions like readfirstlane. This was only done if the instruction
was possibly in the middle of wqm region (by checking OutNeeds).
DeltaFile
+33-4llvm/lib/Target/AMDGPU/SIWholeQuadMode.cpp
+3-3llvm/test/CodeGen/AMDGPU/wqm-propagate-for-execz-side-effect.ll
+36-72 files

LLVM/project 6926aa3llvm/test/CodeGen/AMDGPU wqm-propagate-for-execz-side-effect.ll

[test][AMDGPU] Precommit test for Back-propagate wqm for sources of side-effect instruction
DeltaFile
+127-0llvm/test/CodeGen/AMDGPU/wqm-propagate-for-execz-side-effect.ll
+127-01 files

LLVM/project 6caacefllvm/include/llvm/Analysis TargetTransformInfoImpl.h, llvm/include/llvm/CodeGen BasicTTIImpl.h

[LV][RISCV][NFC] Add explicit LMUL controls via computeFeasibleMaxVF

Add components of maxVF and its support for scalable
vectorization. The default for unspecified RISCV is
LMUL=4 with this change, so some tests will have
the flag that controls max LMUL to extend to LMUL=8
when the request is made.
DeltaFile
+50-0llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
+20-0llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+3-3llvm/test/Transforms/LoopVectorize/RISCV/reg-usage-maxbandwidth.ll
+5-0llvm/lib/Analysis/TargetTransformInfo.cpp
+5-0llvm/include/llvm/CodeGen/BasicTTIImpl.h
+5-0llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
+88-34 files not shown
+97-510 files

LLVM/project 7acde7allvm/lib/Analysis TargetTransformInfo.cpp, llvm/lib/Target/RISCV RISCVTargetTransformInfo.cpp RISCVSubtarget.h

[LV][RISCV][NFC] Add explicit LMUL controls via computeFeasibleMaxVF

Add components of maxVF and its support for scalable
vectorization. The default for unspecified RISCV is
LMUL=4 with this change, so some tests will have
the flag that controls max LMUL to extend to LMUL=8
when the request is made.
DeltaFile
+50-0llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
+22-0llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+9-0llvm/lib/Target/RISCV/RISCVSubtarget.h
+4-4llvm/test/Transforms/LoopVectorize/RISCV/lmul.ll
+3-3llvm/test/Transforms/LoopVectorize/RISCV/reg-usage-maxbandwidth.ll
+5-0llvm/lib/Analysis/TargetTransformInfo.cpp
+93-75 files not shown
+110-811 files

LLVM/project f4bf729lldb/examples/darwin/heap_find heap.py, lldb/examples/python lldbtk.py diagnose_unwind.py

[lldb] Add exe_ctx to examples commands (#193347)

Updates example python commands to use `SBExecutionContext` where
beneficial. This was to remove uses of
`GetSelected{Target,Thread,Frame}`.

While making this changes, I also renamed `dict` parameters to
`internal_dict`. In examples, it's better not to shadow `dict`, which is
the builtin type and constructor for dictionaries.

Lastly, I removed a command (`section_ptr_refs`) whose function was
disabled, and non-functional (it calls a non-existent function
`load_dylib`).
DeltaFile
+35-120lldb/examples/darwin/heap_find/heap.py
+10-14lldb/examples/python/lldbtk.py
+8-8lldb/examples/python/diagnose_unwind.py
+4-9lldb/examples/python/diagnose_nsstring.py
+5-7lldb/examples/python/jump.py
+5-4lldb/examples/python/types.py
+67-1623 files not shown
+75-1739 files

LLVM/project a680361clang-tools-extra/clang-tidy/readability UseAnyOfAllOfCheck.cpp, clang-tools-extra/docs ReleaseNotes.rst

[clang-tidy] Suggest materializing temporary ranges in readability-use-anyofallof (#185791)

While the check still correctly identifies that the loop can be replaced
with `any_of`/`all_of`, reusing these temporaries directly in the
replacement is often unsafe or leads to compilation errors. So we
suggest a `note: ` for these cases.

Closes https://github.com/llvm/llvm-project/issues/185593
DeltaFile
+59-0clang-tools-extra/test/clang-tidy/checkers/readability/use-anyofallof-cpp20.cpp
+57-0clang-tools-extra/test/clang-tidy/checkers/readability/use-anyofallof.cpp
+45-3clang-tools-extra/docs/clang-tidy/checks/readability/use-anyofallof.rst
+33-13clang-tools-extra/clang-tidy/readability/UseAnyOfAllOfCheck.cpp
+5-0clang-tools-extra/docs/ReleaseNotes.rst
+199-165 files

LLVM/project b5f7bc5utils/bazel/llvm-project-overlay/llvm/unittests BUILD.bazel

[Bazel] Fixes 3081d52 (#193376)

This fixes 3081d52d8242a31620d5ce8111fdd2ad817574b7.

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+1-0utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel
+1-01 files