LLVM/project 87a2cd9llvm/test/CodeGen/AMDGPU vector-reduce-umin.ll integer-mad-patterns.ll, llvm/test/CodeGen/AMDGPU/GlobalISel fdiv.f32.ll

AMDGPU/GlobalISel: Remove -new-reg-bank-select option

AMDGPU's -global-isel pipeline that uses AMDGPURegBankSelect and
AMDGPURegBankLegalize, previously -global-isel -new-reg-bank-select,
is now the default -global-isel pipeline.

Remove -new-reg-bank-select option from the compiler.
Remove -new-reg-bank-select from all llvm regression tests.
Edit a couple comments to reference RegBankLegalize instead of
-new-reg-bank-select.
DeltaFile
+12-12llvm/test/CodeGen/AMDGPU/vector-reduce-umin.ll
+12-12llvm/test/CodeGen/AMDGPU/integer-mad-patterns.ll
+12-12llvm/test/CodeGen/AMDGPU/vector-reduce-umax.ll
+12-12llvm/test/CodeGen/AMDGPU/GlobalISel/fdiv.f32.ll
+12-12llvm/test/CodeGen/AMDGPU/vector-reduce-smax.ll
+11-11llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wave.shuffle.ll
+71-71891 files not shown
+2,531-2,539897 files

LLVM/project 5bb3690llvm/lib/Target/AMDGPU/AsmParser AMDGPUAsmParser.cpp, llvm/lib/Target/SPIRV SPIRVCommandLine.cpp

[llvm][Target] Avoid premature Twine .str() materialization (#204836)

Call sites in the AMDGPU and SPIRV parsers and the SystemZ AsmPrinter /
InstrInfo pass `expr.str()` (or `.str().c_str()`) to parameters of type
`const llvm::Twine &`, forcing a throwaway heap std::string that is
immediately rewrapped into a Twine. Drop the materialization and let
Twine accept the concatenation directly.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply at anthropic.com>
DeltaFile
+7-8llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
+2-4llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
+3-2llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
+2-2llvm/lib/Target/SPIRV/SPIRVCommandLine.cpp
+14-164 files

LLVM/project 7b79470clang/include/clang/Options Options.td, clang/lib/Driver/ToolChains Clang.cpp

address comments
DeltaFile
+3-3clang/include/clang/Options/Options.td
+1-1clang/lib/Driver/ToolChains/Clang.cpp
+4-42 files

LLVM/project 41b2fb2clang/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 adc342bclang/lib/AST ASTContext.cpp, clang/lib/Lex TextEncoding.cpp

Convert the key before cache lookup to prevent encoding differences
DeltaFile
+9-9clang/lib/AST/ASTContext.cpp
+1-1clang/lib/Lex/TextEncoding.cpp
+10-102 files

LLVM/project 5288c12clang/include/clang/Basic TargetInfo.h, clang/lib/AST ASTContext.cpp

convert to exec-charset inside getPredefinedStringLiteralFromCache, test __builtin_FILE()
DeltaFile
+10-0clang/lib/AST/ASTContext.cpp
+4-0clang/test/CodeGen/systemz-charset.cpp
+3-0clang/lib/Basic/TargetInfo.cpp
+2-1clang/lib/Lex/TextEncoding.cpp
+2-0clang/include/clang/Basic/TargetInfo.h
+21-15 files

LLVM/project 669d4d6clang/lib/Lex TextEncoding.cpp, clang/lib/Sema SemaChecking.cpp

do not convert character by character
DeltaFile
+6-4clang/lib/Sema/SemaChecking.cpp
+1-1clang/lib/Lex/TextEncoding.cpp
+7-52 files

LLVM/project 50b34fdclang/include/clang/Lex TextEncoding.h, clang/lib/Lex TextEncoding.cpp

fix CI
DeltaFile
+2-2clang/lib/Lex/TextEncoding.cpp
+1-0clang/include/clang/Lex/TextEncoding.h
+3-22 files

LLVM/project 37f6827clang/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-1117 files not shown
+233-12013 files

LLVM/project 5b71164clang/include/clang/AST Expr.h, clang/include/clang/Sema Sema.h

fix CI
DeltaFile
+15-0clang/lib/AST/Expr.cpp
+6-0clang/include/clang/AST/Expr.h
+3-2clang/lib/Sema/SemaExpr.cpp
+2-2clang/include/clang/Sema/Sema.h
+1-1clang/lib/Parse/Parser.cpp
+0-1clang/lib/Parse/ParseDecl.cpp
+27-66 files

LLVM/project 8cd93a5clang/test/CodeGen systemz-charset.c

fix CI
DeltaFile
+2-0clang/test/CodeGen/systemz-charset.c
+2-01 files

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

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

LLVM/project 6e3ddcaclang/include/clang/Sema Sema.h, clang/lib/Parse ParseDecl.cpp ParseExpr.cpp

add ParserConversionAction, do not translate unevaluated strings
DeltaFile
+6-6clang/lib/Sema/SemaExpr.cpp
+10-0clang/lib/Parse/ParseDecl.cpp
+8-0clang/test/CodeGen/systemz-charset-diag.cpp
+3-3clang/lib/Parse/ParseExpr.cpp
+5-0clang/test/CodeGen/systemz-charset.c
+3-1clang/include/clang/Sema/Sema.h
+35-103 files not shown
+42-109 files

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

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

LLVM/project 27a8c84clang/lib/Frontend FrontendAction.cpp

remove change in ReadOriginalFileName, since we have another PR to change it to an unevaluated string
DeltaFile
+1-3clang/lib/Frontend/FrontendAction.cpp
+1-31 files

LLVM/project 43d8b33clang/include/clang/Basic LangOptions.h, clang/include/clang/Lex TextEncoding.h

use LiteralEncoding internally, address other comments
DeltaFile
+8-8clang/lib/Lex/TextEncoding.cpp
+6-6clang/lib/Frontend/InitPreprocessor.cpp
+10-0clang/test/CodeGen/systemz-charset.c
+4-4clang/include/clang/Lex/TextEncoding.h
+2-2clang/include/clang/Options/Options.td
+2-2clang/include/clang/Basic/LangOptions.h
+32-225 files not shown
+37-2711 files

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

remove extra conversion from utf32 to utf8 in CharLiteralParser
DeltaFile
+19-16clang/lib/Lex/LiteralSupport.cpp
+1-0clang/test/CodeGen/systemz-charset.cpp
+20-162 files

LLVM/project ceae0cbclang/include/clang/Basic TargetInfo.h, clang/include/clang/Lex TextEncodingConfig.h

Move function to TargetInfo, remove unused includes
DeltaFile
+7-0clang/include/clang/Basic/TargetInfo.h
+0-7llvm/lib/TargetParser/Triple.cpp
+2-3clang/lib/Frontend/InitPreprocessor.cpp
+0-4llvm/include/llvm/TargetParser/Triple.h
+0-3clang/include/clang/Lex/TextEncodingConfig.h
+9-175 files

LLVM/project 3c6a5e9clang/include/clang/Lex LiteralSupport.h, clang/lib/Lex TextEncoding.cpp

change default of StringLiteralParser to NoConversion instead of CA_ToExecEncoding
DeltaFile
+2-1clang/lib/Sema/SemaExpr.cpp
+1-1clang/lib/Lex/TextEncoding.cpp
+1-1clang/include/clang/Lex/LiteralSupport.h
+4-33 files

LLVM/project f178adbclang/include/clang/Lex TextEncodingConfig.h LiteralSupport.h, clang/lib/Lex LiteralSupport.cpp TextEncodingConfig.cpp

This patch enables the fexec-charset option to control the execution charset of string literals. It sets the default internal charset, system charset, and execution charset for z/OS and UTF-8 for all other platforms.
DeltaFile
+139-31clang/lib/Lex/LiteralSupport.cpp
+70-0clang/test/CodeGen/systemz-charset.cpp
+58-0clang/test/CodeGen/systemz-charset.c
+45-0clang/lib/Lex/TextEncodingConfig.cpp
+34-0clang/include/clang/Lex/TextEncodingConfig.h
+12-7clang/include/clang/Lex/LiteralSupport.h
+358-3813 files not shown
+409-4519 files

LLVM/project 1b11e7bclang/include/clang/Lex TextEncodingConfig.h TextEncoding.h, clang/lib/Frontend InitPreprocessor.cpp

rename TextEncodingConfig to TextEncoding, address other comments
DeltaFile
+0-45clang/lib/Lex/TextEncodingConfig.cpp
+43-0clang/lib/Lex/TextEncoding.cpp
+0-31clang/include/clang/Lex/TextEncodingConfig.h
+30-0clang/include/clang/Lex/TextEncoding.h
+6-6clang/lib/Frontend/InitPreprocessor.cpp
+6-6clang/lib/Lex/LiteralSupport.cpp
+85-887 files not shown
+100-10513 files

LLVM/project ff4286bclang/test/CodeGen systemz-charset-diag.cpp

Add test coverage for conversion errors in string literals
DeltaFile
+3-0clang/test/CodeGen/systemz-charset-diag.cpp
+3-01 files

LLVM/project e185a71clang/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 9dd2130clang/docs LanguageExtensions.rst, clang/lib/CodeGen CodeGenModule.cpp CodeGenModule.h

[Clang][AIX] Add -mloadtime-comment-vars support to preserve variables in the final object file.
DeltaFile
+119-0clang/lib/CodeGen/CodeGenModule.cpp
+66-0clang/docs/LanguageExtensions.rst
+61-0clang/test/CodeGen/loadtime-comment-vars.c
+13-8llvm/test/Transforms/LowerCommentString/lower-comment-string.ll
+18-0clang/lib/CodeGen/CodeGenModule.h
+12-0clang/test/CodeGen/PowerPC/loadtime-comment-mixed.c
+289-84 files not shown
+319-810 files

LLVM/project e768b15llvm/lib/Target/AMDGPU AMDGPUTargetMachine.cpp, llvm/test/CodeGen/AMDGPU maximumnum.ll minimumnum.ll

AMDGPU/GlobalISel: Use AMDGPURegBankSelect + AMDGPURegBankLegalize by default

Change AMDGPU's default -global-isel pipeline to use AMDGPURegBankSelect
and AMDGPURegBankLegalize (previously -global-isel -new-reg-bank-select)
by default instead of RegBankSelect which uses AMDGPURegisterBankInfo.

-global-isel pipeline that used RegBankSelect/AMDGPURegisterBankInfo is
now deprecated, since it could not generate functionally correct code in
some cases involving divergent control flow and phis.

-new-reg-bank-select option does nothing and will be removed in followup
patch.

Delete regbankselect-mui.ll and regbankselect-mui-salu-float.ll, which
existed to compare the -global-isel vs -global-isel -new-reg-bank-select.

Temporarily disable a couple of tests that are missing AMDGPURegBankLegalize
support.
DeltaFile
+0-643llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-mui.ll
+0-52llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-mui-salu-float.ll
+13-13llvm/test/CodeGen/AMDGPU/maximumnum.ll
+13-13llvm/test/CodeGen/AMDGPU/minimumnum.ll
+5-9llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
+3-3llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wqm.vote.ll
+34-7334 files not shown
+38-73710 files

LLVM/project 16a0a10llvm/lib/Target/AArch64 SVEShuffleOpts.cpp

[NFC] Remove SVEShuffleOpts variable unused in release build (#204833)

Fixes a warning-as-error build failure for #193951
DeltaFile
+1-2llvm/lib/Target/AArch64/SVEShuffleOpts.cpp
+1-21 files

LLVM/project 8c7b7ddlldb/source/Target Target.cpp

[lldb] Fix format string (#204837)

GetLoadAddress() returns an integer value, not a null-terminated string.
DeltaFile
+3-2lldb/source/Target/Target.cpp
+3-21 files

LLVM/project bf18f6fllvm/include/llvm/Passes CodeGenPassBuilder.h, llvm/include/llvm/Target CGPassBuilderOption.h

[CommandLine] Make cl::boolOrDefault a scoped enum (#204553)

Prevents implicit conversion to bool/int, where BOU_FALSE wrongly
evaluated as true. All uses qualified as cl::boolOrDefault::BOU_*.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply at anthropic.com>
DeltaFile
+15-13llvm/lib/CodeGen/TargetPassConfig.cpp
+10-8llvm/include/llvm/Passes/CodeGenPassBuilder.h
+10-5llvm/lib/CodeGen/BranchFolding.cpp
+7-7llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
+6-6llvm/include/llvm/Target/CGPassBuilderOption.h
+10-1llvm/lib/Support/CommandLine.cpp
+58-4024 files not shown
+129-10130 files

LLVM/project d6ccc29clang/lib/AST/ByteCode Interp.cpp, clang/test/AST/ByteCode cxx20.cpp

[clang][bytecode] Take AccessKinds into account in diagnoseNonConstVa… (#204824)

…riable

And diagnose it as a modification and not a read if applicable.
DeltaFile
+17-7clang/lib/AST/ByteCode/Interp.cpp
+5-0clang/test/AST/ByteCode/cxx20.cpp
+22-72 files

LLVM/project 8ca5830libcxx/include string

[libc++] Default the allocator argument for most string constructors (#169901)

Allocators are generally very cheap to copy, so avoiding copies by
having separate overloads is not that useful. Defaulting them
significanlty reduces the overload set the compiler has to consider and
simplifies the code, since we can remove some functions in the future.

Closes #87368
DeltaFile
+10-39libcxx/include/string
+10-391 files