LLVM/project cf39eb3clang/docs LanguageExtensions.rst, clang/include/clang/Options Options.td

Enable driver changes for fexec-charset
DeltaFile
+14-6clang/lib/Driver/ToolChains/Clang.cpp
+14-4clang/include/clang/Options/Options.td
+11-3clang/test/Driver/clang_f_opts.c
+10-0llvm/lib/Support/TextEncoding.cpp
+4-3clang/test/Driver/cl-options.c
+3-3clang/docs/LanguageExtensions.rst
+56-193 files not shown
+60-199 files

LLVM/project 91824e1clang/include/clang/Basic TargetInfo.h, clang/lib/AST ASTContext.cpp

convert to exec-charset inside getPredefinedStringLiteralFromCache, test __builtin_FILE()
DeltaFile
+28-0clang/test/CodeGen/systemz-charset.cpp
+10-0clang/lib/AST/ASTContext.cpp
+5-4clang/lib/Lex/TextEncodingConfig.cpp
+3-0clang/lib/Basic/TargetInfo.cpp
+2-0clang/include/clang/Basic/TargetInfo.h
+48-45 files

LLVM/project c977a65clang/lib/AST PrintfFormatString.cpp FormatString.cpp, clang/lib/Sema SemaChecking.cpp

Add format string handling
DeltaFile
+58-31clang/lib/AST/PrintfFormatString.cpp
+46-40clang/lib/AST/FormatString.cpp
+33-21clang/lib/Sema/SemaChecking.cpp
+25-11clang/lib/AST/FormatStringParsing.h
+15-8clang/lib/AST/ScanfFormatString.cpp
+19-0llvm/lib/Support/TextEncoding.cpp
+196-11111 files not shown
+257-12117 files

LLVM/project 13ce103clang/include/clang/Sema Sema.h

Remove old include
DeltaFile
+0-1clang/include/clang/Sema/Sema.h
+0-11 files

LLVM/project 92cc35cclang/include/clang/Sema Sema.h, clang/lib/Parse ParseDecl.cpp ParseExpr.cpp

add ParserConversionAction, do not translate unevaluated strings
DeltaFile
+15-0clang/test/CodeGen/systemz-charset.c
+6-5clang/lib/Sema/SemaExpr.cpp
+10-0clang/lib/Parse/ParseDecl.cpp
+9-0clang/test/CodeGen/systemz-charset-diag.cpp
+3-3clang/lib/Parse/ParseExpr.cpp
+3-1clang/include/clang/Sema/Sema.h
+46-93 files not shown
+53-99 files

LLVM/project 418a6c5clang/lib/Lex LiteralSupport.cpp, clang/test/CodeGen systemz-charset.cpp

move conversion into EncodeUCNEscape, update testcase
DeltaFile
+23-27clang/lib/Lex/LiteralSupport.cpp
+3-0clang/test/CodeGen/systemz-charset.cpp
+26-272 files

LLVM/project b5e0ab2clang/include/clang/Sema Sema.h

Fix build failure
DeltaFile
+1-0clang/include/clang/Sema/Sema.h
+1-01 files

LLVM/project bacc3e0clang-tools-extra/test/clang-tidy/checkers/bugprone unhandled-code-paths.cpp, clang-tools-extra/test/clang-tidy/checkers/hicpp multiway-paths-covered.cpp

Merge branch 'main' into users/kparzysz/getobjectsymbol-ultimate
DeltaFile
+573-578llvm/unittests/IR/LegacyPassManagerTest.cpp
+910-1clang/test/CodeGen/AArch64/neon/perm.c
+1-797clang/test/CodeGen/AArch64/neon-perm.c
+143-572flang/lib/Lower/Bridge.cpp
+0-468clang-tools-extra/test/clang-tidy/checkers/hicpp/multiway-paths-covered.cpp
+468-0clang-tools-extra/test/clang-tidy/checkers/bugprone/unhandled-code-paths.cpp
+2,095-2,416659 files not shown
+18,593-8,847665 files

LLVM/project 422d390lldb/source/Plugins/SymbolFile/DWARF DWARFBaseDIE.h, llvm/include/llvm/DebugInfo/DWARF DWARFTypePrinter.h

Revert "[gsymutil] Fix crash caused by infinite recursion in `unwrapReference…"

This reverts commit 4d12a16b78391f5542e1bc1e748927f1f5cc6b44.
DeltaFile
+0-156llvm/unittests/DebugInfo/GSYM/GSYMTest.cpp
+10-21llvm/include/llvm/DebugInfo/DWARF/DWARFTypePrinter.h
+0-2lldb/source/Plugins/SymbolFile/DWARF/DWARFBaseDIE.h
+10-1793 files

LLVM/project 875e622lld/test/wasm/lto inline-asm-symbols.ll signature-mismatch.ll, lld/wasm SymbolTable.cpp

[lld][WebAssembly] Allow defining of arbitrary symbols types in LTO objects (#196552)

Bitcode files don't contains precise symbol type information so we
always allow the post-LTO defined symbols (from the LTO object file) to
overwrite bitcode symbols. We don't want to be reporting type mismatches
in these cases.

Fixes: #195311
DeltaFile
+24-0lld/test/wasm/lto/inline-asm-symbols.ll
+18-2lld/wasm/SymbolTable.cpp
+3-3lld/test/wasm/lto/signature-mismatch.ll
+45-53 files

LLVM/project 223a945llvm/include/llvm/CodeGen/GlobalISel LegalizerHelper.h, llvm/lib/CodeGen/GlobalISel LegalizerHelper.cpp

[GlobalISel][AArch64] Add lowering for G_SMULFIX (#196757)

Adding lowering for G_SMULFIX G_OP. It is needed to compile
`libc/src/stdfix/expk.cpp` with `-O3`.
DeltaFile
+216-79llvm/test/CodeGen/AArch64/smul_fix.ll
+181-0llvm/test/CodeGen/AArch64/GlobalISel/legalize-smulfix.mir
+26-0llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
+2-2llvm/test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir
+2-0llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
+1-0llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
+428-816 files

LLVM/project af2d117flang-rt/lib/runtime allocator-registry.cpp

[flang-rt] Return default allocator directly in device rt (#197009)
DeltaFile
+10-0flang-rt/lib/runtime/allocator-registry.cpp
+10-01 files

LLVM/project 78d124elldb/include/lldb/Interpreter CommandReturnObject.h, lldb/source/Commands CommandObjectProtocolServer.cpp

[lldb] Assert that CommandObject::DoExecute sets a return status (#196589)

Change the default value of CommandReturnObject::m_status from
eReturnStatusStarted to eReturnStatusInvalid, and add a debug-only RAII
check in CommandObjectParsed::Execute and CommandObjectRaw::Execute that
asserts the status is no longer Invalid after DoExecute returns.

This catches commands that forget to call SetStatus on a success or
failure path. Succeeded() still returns true when the status is Invalid
(0 sorts below eReturnStatusSuccessContinuingResult), so helpers that
read result.Succeeded() as a precondition before any explicit SetStatus
(e.g. StopProcessIfNecessary) continue to work.

rdar://176506732
DeltaFile
+38-0lldb/unittests/Interpreter/TestCommandReturnObject.cpp
+24-1lldb/source/Interpreter/CommandObject.cpp
+4-1lldb/include/lldb/Interpreter/CommandReturnObject.h
+2-2lldb/test/API/commands/command/script/TestCommandScript.py
+2-1lldb/source/Commands/CommandObjectProtocolServer.cpp
+1-1lldb/source/Interpreter/CommandReturnObject.cpp
+71-62 files not shown
+74-68 files

LLVM/project 4c0e5a5llvm/test/CodeGen/AMDGPU srem.ll load-global-i8.ll

DAGCombiner: (srl/sra (add nuw/nsw X, c), d) --> (add nuw/nsw (srl/sra X, d), c >> d)

Additional precondition:
* The LSBs of c are 0; equivalently: c >> d is exact

Alive2 for
* unsigned case: https://alive2.llvm.org/ce/z/YcJ8qA
* signed case: https://alive2.llvm.org/ce/z/fgpvyE

We already canonicalize (shl (add ...) ...) to (add (shl ...) ...).

Restrict this combine to the single-use case to minimize risk for now.
The main target of this combine is a fan-out tree of `add`s that all end
up being shifted by the same amount at the leaves. This change happens to
improve a bunch of existing CodeGen tests in AMDGPU.

v2:
- remove a redundant check on the shift amount -- large shift amounts
  results in poison anyway

    [2 lines not shown]
DeltaFile
+2,123-2,126llvm/test/CodeGen/AMDGPU/srem.ll
+1,647-1,991llvm/test/CodeGen/AMDGPU/load-global-i8.ll
+1,469-1,786llvm/test/CodeGen/AMDGPU/load-global-i16.ll
+860-1,133llvm/test/CodeGen/AMDGPU/load-constant-i1.ll
+743-910llvm/test/CodeGen/AMDGPU/load-constant-i8.ll
+682-844llvm/test/CodeGen/AMDGPU/load-constant-i16.ll
+7,524-8,79023 files not shown
+10,259-11,88029 files

LLVM/project 48c864allvm/lib/FileCheck FileCheck.cpp, llvm/test/FileCheck check-empty-tag.txt check-eof-no-pattern.txt

[FileCheck] Handle directives at EOF without a trailing newline (#196576)

FileCheck could assert when a check directive ended at EOF without a
trailing newline. After parsing the directive suffix, EOF can be a valid
continuation point, so parsing now continues directly from
`AfterSuffix`.

Fixes #101582
DeltaFile
+12-0llvm/test/FileCheck/check-empty-tag.txt
+6-6llvm/lib/FileCheck/FileCheck.cpp
+7-0llvm/test/FileCheck/check-eof-no-pattern.txt
+25-63 files

LLVM/project f86f548llvm/lib/Target/RISCV RISCVInsertVSETVLI.cpp, llvm/test/CodeGen/RISCV/rvv vsetvli-insert-O0.ll

[RISCV] Check for null LIS before trying to move AVL in canMutatePriorConfig. (#196673)

If LIS is null then the VN info are null and we don't know if we need to
move the AVL.

Fixes an assertion like
RegAllocFast.cpp:729: void (anonymous
namespace)::RegAllocFastImpl::reloadAtBegin(MachineBasicBlock &):
Assertion `(&MBB != &MBB.getParent()->front() || IgnoreMissingDefs) &&
"no reload in start block. Missing vreg def?"' failed.
DeltaFile
+38-2llvm/test/CodeGen/RISCV/rvv/vsetvli-insert-O0.ll
+4-0llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
+42-22 files

LLVM/project 1b89edcclang/include/clang/Basic TargetInfo.h, clang/lib/AST ASTContext.cpp

convert to exec-charset inside getPredefinedStringLiteralFromCache, test __builtin_FILE()
DeltaFile
+28-0clang/test/CodeGen/systemz-charset.cpp
+10-0clang/lib/AST/ASTContext.cpp
+5-4clang/lib/Lex/TextEncodingConfig.cpp
+3-0clang/lib/Basic/TargetInfo.cpp
+2-0clang/include/clang/Basic/TargetInfo.h
+48-45 files

LLVM/project 66d464fclang/docs LanguageExtensions.rst, clang/include/clang/Options Options.td

Enable driver changes for fexec-charset
DeltaFile
+14-6clang/lib/Driver/ToolChains/Clang.cpp
+14-4clang/include/clang/Options/Options.td
+11-3clang/test/Driver/clang_f_opts.c
+10-0llvm/lib/Support/TextEncoding.cpp
+4-3clang/test/Driver/cl-options.c
+3-3clang/docs/LanguageExtensions.rst
+56-193 files not shown
+60-199 files

LLVM/project 7dd821aclang/include/clang/Sema Sema.h

Fix build failure
DeltaFile
+1-0clang/include/clang/Sema/Sema.h
+1-01 files

LLVM/project 957754aclang/lib/Parse ParseDecl.cpp ParseExpr.cpp, clang/lib/Sema SemaExpr.cpp

add ParserConversionAction, do not translate unevaluated strings
DeltaFile
+15-0clang/test/CodeGen/systemz-charset.c
+6-5clang/lib/Sema/SemaExpr.cpp
+10-0clang/lib/Parse/ParseDecl.cpp
+9-0clang/test/CodeGen/systemz-charset-diag.cpp
+3-3clang/lib/Parse/ParseExpr.cpp
+4-0clang/lib/Parse/Parser.cpp
+47-83 files not shown
+53-99 files

LLVM/project 4f8da2eclang/include/clang/Sema Sema.h

Remove old include
DeltaFile
+0-1clang/include/clang/Sema/Sema.h
+0-11 files

LLVM/project 5a73ae5clang/lib/AST PrintfFormatString.cpp FormatString.cpp, clang/lib/Sema SemaChecking.cpp

Add format string handling
DeltaFile
+58-31clang/lib/AST/PrintfFormatString.cpp
+46-40clang/lib/AST/FormatString.cpp
+33-21clang/lib/Sema/SemaChecking.cpp
+25-11clang/lib/AST/FormatStringParsing.h
+15-8clang/lib/AST/ScanfFormatString.cpp
+19-0llvm/lib/Support/TextEncoding.cpp
+196-11111 files not shown
+257-12117 files

LLVM/project f610141clang/lib/Lex LiteralSupport.cpp, clang/test/CodeGen systemz-charset.cpp

move conversion into EncodeUCNEscape, update testcase
DeltaFile
+25-27clang/lib/Lex/LiteralSupport.cpp
+3-0clang/test/CodeGen/systemz-charset.cpp
+28-272 files

LLVM/project a902d76llvm/test/CodeGen/AMDGPU llvm.amdgcn.image.sample.a16.dim.ll llvm.amdgcn.image.a16.encode.ll, llvm/test/MC/AMDGPU gfx13_asm_vsample.s gfx13_asm_vimage.s

[AMDGPU] Add VIMAGE and VSAMPLE encodings for gfx13
DeltaFile
+1,208-0llvm/test/MC/AMDGPU/gfx13_asm_vsample.s
+565-563llvm/test/CodeGen/AMDGPU/llvm.amdgcn.image.sample.a16.dim.ll
+1,030-0llvm/test/MC/AMDGPU/gfx13_asm_vimage.s
+495-494llvm/test/CodeGen/AMDGPU/llvm.amdgcn.image.a16.encode.ll
+483-416llvm/test/CodeGen/AMDGPU/llvm.amdgcn.image.sample.dim.ll
+456-412llvm/test/CodeGen/AMDGPU/llvm.amdgcn.image.dim.ll
+4,237-1,88523 files not shown
+6,234-3,76329 files

LLVM/project c8e13e7llvm/test/CodeGen/AMDGPU amdgcn.bitcast.1024bit.ll amdgcn.bitcast.512bit.ll, llvm/test/CodeGen/AMDGPU/NextUseAnalysis spill-vreg-many-lanes.mir acyclic-770bb.mir

added test

Created using spr 1.3.4
DeltaFile
+160,855-171,854llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+275,101-0llvm/test/CodeGen/AMDGPU/NextUseAnalysis/spill-vreg-many-lanes.mir
+144,679-0llvm/test/CodeGen/AMDGPU/NextUseAnalysis/acyclic-770bb.mir
+54,567-55,132llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+92,827-0llvm/test/CodeGen/RISCV/rvv/clmulh-sdnode.ll
+42,349-42,348llvm/test/MC/AMDGPU/gfx8_asm_vop3.s
+770,378-269,33438,292 files not shown
+6,032,031-2,971,43138,298 files

LLVM/project 88f0e3alldb/source/Core SourceManager.cpp, lldb/test/Shell/Commands command-source-embedded.test

[lldb] Support list-ing Source Embedded in DWARF (#191802)

Compiled programs that embed their source code into their debugging
information (using, e.g., DW_LNCT_LLVM_source) should display that code
during debugging sessions.

Fixes #191801
DeltaFile
+29-0lldb/test/Shell/Commands/command-source-embedded.test
+6-1lldb/source/Core/SourceManager.cpp
+35-12 files

LLVM/project f9fe429llvm/lib/Target/SPIRV SPIRVNonSemanticDebugHandler.cpp SPIRVNonSemanticDebugHandler.h, llvm/test/CodeGen/SPIRV/debug-info debug-type-function-int-string-dedup.ll debug-type-function-omit.ll

[SPIRV] Extend NSDI debug handling for DebugTypeFunction.

Changes:

- Collect required types with DebugInfoFinder instead of walking DbgVariableRecords only. This allows processing types that might not be available in these records, and avoids code duplication for the traversals.

- Emit DebugTypeFunction for DISubroutineType when every signature slot maps to an
emitted debug type.

- Reset per-module state in beginModule().

- Replace parallel FileStringRegs/BasicTypeNameRegs with a StringMap OpString
cache, deduplicating identical strings.

- Add LLVM DINode flag lowering for NSDI.

- Cache DebugInfoNone, OpTypeVoid and OpTypeInt32 registers to avoid duplicate instructions.
DeltaFile
+259-64llvm/lib/Target/SPIRV/SPIRVNonSemanticDebugHandler.cpp
+66-27llvm/lib/Target/SPIRV/SPIRVNonSemanticDebugHandler.h
+44-0llvm/test/CodeGen/SPIRV/debug-info/debug-type-function-int-string-dedup.ll
+44-0llvm/test/CodeGen/SPIRV/debug-info/debug-type-function-omit.ll
+42-0llvm/test/CodeGen/SPIRV/debug-info/debug-type-function-void-prototypes.ll
+39-0llvm/test/CodeGen/SPIRV/debug-info/debug-type-function-multi-scalar-params.ll
+494-914 files not shown
+635-9110 files

LLVM/project 53ff447.github/workflows issue-write.yml

[GitHub] Support issue_comment workflows in issue_write (#192205)

This is split off from #190010. We want to add a new workflow triggered
whenever a comment is added to an issue (workflow_run.event ==
'issue_comment'), that also writes an comment back via the issue_write
workflow.

However for issue_comment workflows, the head branch for the workflow
won't be the head of the PR, but the default branch of the repository.
So trying to fetch the PR based on the branch will fail.

GitHub docs seem to recommend that the PR number is explicitly passed
via an artifact in these cases:
https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#using-data-from-the-triggering-workflow

This PR adds support for this so we can eventually leave comments from
the test-suite.yml workflow
DeltaFile
+53-47.github/workflows/issue-write.yml
+53-471 files

LLVM/project aeea965libc/src/string/memory_utils/generic inline_strlen.h

[libc] Fix -Wshadow warnings in inline_strlen.h (#196855)
DeltaFile
+4-5libc/src/string/memory_utils/generic/inline_strlen.h
+4-51 files

LLVM/project 0100b52libc/src/unistd getopt.cpp

[libc] Fix -Wshadow warnings in getopt.cpp (#196853)
DeltaFile
+3-3libc/src/unistd/getopt.cpp
+3-31 files