LLVM/project f4f17bdclang-tools-extra/clang-tidy ClangTidy.cpp

[clang-tidy][NFC] Fix misc-override-with-different-visibility warnings (#182763)

Ran with config:
```yaml
  - key:             misc-override-with-different-visibility.DisallowedVisibilityChange
    value:           widening
```
I think we should only care about widening changes.
DeltaFile
+4-3clang-tools-extra/clang-tidy/ClangTidy.cpp
+4-31 files

LLVM/project 404452bclang-tools-extra/clang-tidy NoLintDirectiveHandler.cpp, clang-tools-extra/clang-tidy/bugprone ImplicitWideningOfMultiplicationResultCheck.cpp

[clang-tidy][NFC] Fix readability-inconsistent-ifelse-braces warnings (#182764)

This align with [LLVM coding
conventions](https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements):
Quote:
```cpp
// Use braces for the `if` block to keep it uniform with the `else` block.
if (isa<FunctionDecl>(D)) {
  handleFunctionDecl(D);
} else {
  // In this `else` case, it is necessary that we explain the situation with
  // this surprisingly long comment, so it would be unclear without the braces
  // whether the following statement is in the scope of the `if`.
  handleOtherDecl(D);
}
```
DeltaFile
+16-14clang-tools-extra/clang-tidy/utils/FormatStringConverter.cpp
+6-5clang-tools-extra/clang-tidy/misc/MisleadingBidirectionalCheck.cpp
+5-3clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp
+4-4clang-tools-extra/clang-tidy/cppcoreguidelines/InitVariablesCheck.cpp
+4-3clang-tools-extra/clang-tidy/bugprone/ImplicitWideningOfMultiplicationResultCheck.cpp
+4-3clang-tools-extra/clang-tidy/NoLintDirectiveHandler.cpp
+39-3220 files not shown
+87-6526 files

LLVM/project 57f3f14clang-tools-extra/clang-tidy/altera UnrollLoopsCheck.cpp, clang-tools-extra/clang-tidy/bugprone NondeterministicPointerIterationOrderCheck.cpp

[clang-tidy][NFC] Fix readability-redundant-parentheses warnings (#182766)

DeltaFile
+4-4clang-tools-extra/clang-tidy/altera/UnrollLoopsCheck.cpp
+2-2clang-tools-extra/clang-tidy/bugprone/NondeterministicPointerIterationOrderCheck.cpp
+6-62 files

LLVM/project bc21100llvm/lib/Target/AMDGPU VOPDInstructions.td, llvm/lib/Target/AMDGPU/AsmParser AMDGPUAsmParser.cpp

[AMDGPU] Add VOPD to gfx13
DeltaFile
+16,004-0llvm/test/MC/AMDGPU/gfx13_asm_vopd3.s
+196-0llvm/test/MC/AMDGPU/gfx13_asm_vopd_errs.s
+14-9llvm/lib/Target/AMDGPU/VOPDInstructions.td
+12-1llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
+6-3llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
+2-0llvm/test/MC/AMDGPU/gfx1250_asm_vopd.s
+16,234-131 files not shown
+16,235-137 files

LLVM/project 5f21b7dllvm/test/MC/AMDGPU gfx13_asm_vop2.s gfx13_asm_vop3_from_vop2.s, llvm/test/MC/Disassembler/AMDGPU gfx13_dasm_vop2.txt gfx13_dasm_vop3_from_vop2.txt

[AMDGPU] Add VOP2 to gfx13
DeltaFile
+2,807-0llvm/test/MC/AMDGPU/gfx13_asm_vop2.s
+2,642-0llvm/test/MC/Disassembler/AMDGPU/gfx13_dasm_vop2.txt
+2,269-0llvm/test/MC/AMDGPU/gfx13_asm_vop3_from_vop2.s
+2,091-0llvm/test/MC/Disassembler/AMDGPU/gfx13_dasm_vop3_from_vop2.txt
+2,007-0llvm/test/MC/AMDGPU/gfx13_asm_vop2_dpp16.s
+1,903-0llvm/test/MC/AMDGPU/gfx13_asm_vop3_from_vop2_dpp16.s
+13,719-013 files not shown
+19,594-11519 files

LLVM/project 9a109fbllvm/test/CodeGen/SPIRV/hlsl-resources cbuffer-struct.ll, llvm/test/CodeGen/SPIRV/legalization vector-index-scalarization.ll load-store-global.ll

[SPIR-V] Don't emit alignment decoration for non-kernel SPIR-V (#182772)

Fixes: https://github.com/llvm/llvm-project/issues/135165
DeltaFile
+36-36llvm/test/CodeGen/SPIRV/legalization/vector-index-scalarization.ll
+35-35llvm/test/CodeGen/SPIRV/legalization/load-store-global.ll
+18-18llvm/test/CodeGen/SPIRV/pointers/getelementptr-downcast-vector.ll
+13-13llvm/test/CodeGen/SPIRV/hlsl-resources/cbuffer-struct.ll
+12-12llvm/test/CodeGen/SPIRV/structurizer/merge-exit-multiple-break.ll
+10-10llvm/test/CodeGen/SPIRV/pointers/sgep-array.ll
+124-12435 files not shown
+212-21241 files

LLVM/project c4e26aellvm/lib/Target/RISCV RISCVInstrInfoXAndes.td

[RISCV] Reduce duplicated SFB patterns in RISCVInstrInfoXAndes.td. NFC. (#182800)

This PR is similar to what we did in RISCVInstrInfoSFB.td.
DeltaFile
+16-14llvm/lib/Target/RISCV/RISCVInstrInfoXAndes.td
+16-141 files

LLVM/project cf8ee99llvm/lib/Target/AMDGPU FLATInstructions.td AMDGPU.td, llvm/lib/Target/AMDGPU/MCTargetDesc AMDGPUInstPrinter.cpp

[AMDGPU] Add VFLAT, VGLOBAL, VSCRATCH to gfx13
DeltaFile
+3,441-0llvm/test/MC/AMDGPU/gfx13_asm_vflat.s
+414-0llvm/test/MC/AMDGPU/gfx13_asm_vflat_alias.s
+218-0llvm/lib/Target/AMDGPU/FLATInstructions.td
+2-2llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
+1-1llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp
+1-0llvm/lib/Target/AMDGPU/AMDGPU.td
+4,077-36 files

LLVM/project 9222cd8llvm/lib/Target/AMDGPU GCNSchedStrategy.cpp, llvm/test/CodeGen/AMDGPU machine-scheduler-sink-trivial-remats.mir machine-scheduler-sink-trivial-remats-debug.mir

[AMDGPU] Move `advanceBeforeNext` before `advanceToNext`

The document of `advanceToNext` says, `advanceBeforeNext` has to be called first.
DeltaFile
+52-52llvm/test/CodeGen/AMDGPU/machine-scheduler-sink-trivial-remats.mir
+3-7llvm/test/CodeGen/AMDGPU/machine-scheduler-sink-trivial-remats-debug.mir
+2-2llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
+57-613 files

LLVM/project dd27138llvm/lib/Target/AMDGPU GCNSchedStrategy.cpp

[NFC][AMDGPU] Move `advanceBeforeNext` before `advanceToNext`

The document of `advanceToNext` says, `advanceBeforeNext` has to be called first.
DeltaFile
+2-2llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
+2-21 files

LLVM/project 1d6853ellvm/include/llvm/Passes CodeGenPassBuilder.h, llvm/lib/Target/AMDGPU R600TargetMachine.cpp

formatting

Created using spr 1.3.7
DeltaFile
+4-4llvm/lib/Target/X86/X86CodeGenPassBuilder.cpp
+3-3llvm/include/llvm/Passes/CodeGenPassBuilder.h
+3-3llvm/lib/Target/AMDGPU/R600TargetMachine.cpp
+10-103 files

LLVM/project 951cbballvm/include/llvm/Passes CodeGenPassBuilder.h, llvm/lib/Target/AMDGPU R600TargetMachine.cpp

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]
DeltaFile
+4-4llvm/lib/Target/X86/X86CodeGenPassBuilder.cpp
+3-3llvm/include/llvm/Passes/CodeGenPassBuilder.h
+3-3llvm/lib/Target/AMDGPU/R600TargetMachine.cpp
+10-103 files

LLVM/project 738baffllvm/include/llvm/Passes CodeGenPassBuilder.h, llvm/lib/Target/AMDGPU R600TargetMachine.cpp

formatting

Created using spr 1.3.7
DeltaFile
+4-4llvm/lib/Target/X86/X86CodeGenPassBuilder.cpp
+3-3llvm/lib/Target/AMDGPU/R600TargetMachine.cpp
+3-3llvm/include/llvm/Passes/CodeGenPassBuilder.h
+10-103 files

LLVM/project 059acccmlir/include/mlir-c ExtensibleDialect.h, mlir/include/mlir/Bindings/Python IRTypes.h

[MLIR][Python] Add Python and C API of `mlir::DynamicType` (#182751)

This PR adds C and Python API support for `mlir::DynamicType`. It
primarily enables types in dialects that are dynamically generated via
IRDL to be constructed in Python, and allows retrieving the parameters
contained in a dynamic type from Python.

---------

Co-authored-by: Rolf Morel <rolfmorel at gmail.com>
DeltaFile
+75-0mlir/test/python/dialects/irdl.py
+64-0mlir/lib/Bindings/Python/IRTypes.cpp
+52-0mlir/lib/CAPI/IR/ExtensibleDialect.cpp
+40-0mlir/include/mlir-c/ExtensibleDialect.h
+12-0mlir/include/mlir/Bindings/Python/IRTypes.h
+243-05 files

LLVM/project 4b773acllvm/include/llvm/Passes CodeGenPassBuilder.h, llvm/lib/CodeGen/AsmPrinter AsmPrinter.cpp

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+57-39llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+32-15llvm/include/llvm/Passes/CodeGenPassBuilder.h
+21-6llvm/lib/Target/X86/X86CodeGenPassBuilder.cpp
+20-5llvm/lib/Target/AMDGPU/R600TargetMachine.cpp
+16-4llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
+15-5llvm/lib/Target/X86/X86AsmPrinter.cpp
+161-747 files not shown
+187-8813 files

LLVM/project d9822afllvm/include/llvm/CodeGen AsmPrinter.h, llvm/include/llvm/Passes CodeGenPassBuilder.h

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+59-41llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+85-0llvm/lib/Target/X86/X86AsmPrinter.h
+78-3llvm/include/llvm/CodeGen/AsmPrinter.h
+32-15llvm/include/llvm/Passes/CodeGenPassBuilder.h
+23-7llvm/lib/Target/X86/X86CodeGenPassBuilder.cpp
+20-5llvm/lib/Target/AMDGPU/R600TargetMachine.cpp
+297-718 files not shown
+355-9514 files

LLVM/project 6359be8llvm/include/llvm/CodeGen AsmPrinter.h, llvm/include/llvm/Passes CodeGenPassBuilder.h

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+57-39llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+32-15llvm/include/llvm/Passes/CodeGenPassBuilder.h
+21-6llvm/lib/Target/X86/X86CodeGenPassBuilder.cpp
+20-5llvm/lib/Target/AMDGPU/R600TargetMachine.cpp
+16-4llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
+12-3llvm/include/llvm/CodeGen/AsmPrinter.h
+158-725 files not shown
+169-8311 files

LLVM/project b303a70llvm/include/llvm/Passes CodeGenPassBuilder.h, llvm/lib/CodeGen/AsmPrinter AsmPrinter.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+57-39llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+32-15llvm/include/llvm/Passes/CodeGenPassBuilder.h
+21-6llvm/lib/Target/X86/X86CodeGenPassBuilder.cpp
+20-5llvm/lib/Target/AMDGPU/R600TargetMachine.cpp
+16-4llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
+15-5llvm/lib/Target/X86/X86AsmPrinter.cpp
+161-747 files not shown
+187-8813 files

LLVM/project cfd7560llvm/include/llvm/CodeGen AsmPrinter.h, llvm/include/llvm/Passes CodeGenPassBuilder.h

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+57-39llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+12-3llvm/include/llvm/CodeGen/AsmPrinter.h
+7-6llvm/include/llvm/Passes/CodeGenPassBuilder.h
+5-6llvm/include/llvm/Target/TargetMachine.h
+3-3llvm/lib/Target/X86/X86CodeGenPassBuilder.cpp
+3-2llvm/tools/llc/NewPMDriver.cpp
+87-595 files not shown
+94-6611 files

LLVM/project b64cb4allvm/include/llvm/CodeGen AsmPrinter.h, llvm/include/llvm/Passes CodeGenPassBuilder.h

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+57-39llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+32-15llvm/include/llvm/Passes/CodeGenPassBuilder.h
+21-6llvm/lib/Target/X86/X86CodeGenPassBuilder.cpp
+20-5llvm/lib/Target/AMDGPU/R600TargetMachine.cpp
+16-4llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
+12-3llvm/include/llvm/CodeGen/AsmPrinter.h
+158-725 files not shown
+169-8311 files

LLVM/project 8a78b2bllvm/include/llvm/CodeGen AsmPrinter.h, llvm/lib/CodeGen/AsmPrinter AsmPrinter.cpp

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+57-39llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+12-3llvm/include/llvm/CodeGen/AsmPrinter.h
+69-422 files

LLVM/project 5973c79llvm/include/llvm/CodeGen AsmPrinter.h, llvm/include/llvm/Passes CodeGenPassBuilder.h

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+57-39llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+12-3llvm/include/llvm/CodeGen/AsmPrinter.h
+7-6llvm/include/llvm/Passes/CodeGenPassBuilder.h
+5-6llvm/include/llvm/Target/TargetMachine.h
+3-3llvm/lib/Target/X86/X86CodeGenPassBuilder.cpp
+3-2llvm/tools/llc/NewPMDriver.cpp
+87-595 files not shown
+94-6611 files

LLVM/project f759d60llvm/include/llvm/CodeGen AsmPrinter.h, llvm/lib/CodeGen/AsmPrinter AsmPrinter.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+57-39llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+12-3llvm/include/llvm/CodeGen/AsmPrinter.h
+69-422 files

LLVM/project ff88b83llvm/lib/Transforms/Vectorize VPlanRecipes.cpp VPlanTransforms.cpp

[VPlan] Handle extracts for middle blocks also used by early exiting blocks. NFC (#181789)

Currently createExtractsForLiveOuts only handles creating extracts when
the middle block has one predecessor, but if an early exit exits to the
same block as the latch then it might have multiple predecessors.

This handles the latter case to avoid the need to handle it in
VPlanTransforms::handleUncountableEarlyExits. Addresses the comment in
https://github.com/llvm/llvm-project/pull/174864#discussion_r2794153217
DeltaFile
+8-18llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+0-24llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+7-11llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp
+4-5llvm/lib/Transforms/Vectorize/VPlan.h
+19-584 files

LLVM/project 2617cc5llvm/lib/CodeGen/SelectionDAG TargetLowering.cpp, llvm/test/Analysis/CostModel/X86 clmul.ll

[TargetLowering][RISCV] Avoid ISD::MUL in expandCLMUL if hasBitTest or MUL requires a library call. (#182389)

Scalar multiply is not part of the most basic RISC-V ISA. Use a
and+setcc+select for these targets.

The and+setcc+select is also beneficial for targets with bit test
instructions. RISC-V may not get the full benefit here due to
not having a cmove-like instruction without Zicond.

Co-authored-by: fbrv <Fabio.Baravalle at gmail.com>
DeltaFile
+24,655-20,149llvm/test/CodeGen/RISCV/clmul.ll
+12,512-13,372llvm/test/CodeGen/RISCV/clmulr.ll
+12,350-13,322llvm/test/CodeGen/RISCV/clmulh.ll
+2,888-1,812llvm/test/CodeGen/X86/clmul.ll
+16-16llvm/test/Analysis/CostModel/X86/clmul.ll
+22-2llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+52,443-48,6731 files not shown
+52,451-48,6747 files

LLVM/project 0285308llvm/include/llvm/Target TargetMachine.h, llvm/lib/Target/X86 X86TargetMachine.h

[CodeGen][NewPM] Name parameters in buildCodeGenPipeline

This is consistent with the coding style, and makes things consistent
between the various header files/improves readability slightly.

Reviewers: 

Pull Request: https://github.com/llvm/llvm-project/pull/182774
DeltaFile
+6-4llvm/include/llvm/Target/TargetMachine.h
+5-4llvm/lib/Target/X86/X86TargetMachine.h
+11-82 files

LLVM/project 384106bllvm/lib/Target/RISCV RISCVSchedAndes45.td, llvm/test/tools/llvm-mca/RISCV/Andes45 rvv-fp.s rvv-conversion.s

[RISCV] Update Andes45 vector floating-point arithmetic scheduling info (#181289)

This PR adds latency/throughput for all RVV floating-point arithmetic to
the andes45 series scheduling model.
DeltaFile
+1,447-1,447llvm/test/tools/llvm-mca/RISCV/Andes45/rvv-fp.s
+370-370llvm/test/tools/llvm-mca/RISCV/Andes45/rvv-conversion.s
+121-121llvm/test/tools/llvm-mca/RISCV/Andes45/rvv-fma.s
+105-34llvm/lib/Target/RISCV/RISCVSchedAndes45.td
+25-25llvm/test/tools/llvm-mca/RISCV/Andes45/rvv-permutation.s
+2,068-1,9975 files

LLVM/project e37c985libcxx/include/__atomic atomic.h

[libc++] Fix typo in atomic.h comment (#182719)

DeltaFile
+2-2libcxx/include/__atomic/atomic.h
+2-21 files

LLVM/project 686acf6mlir/include/mlir/Dialect/MemRef/IR MemRefOps.td, mlir/include/mlir/Dialect/Tensor/IR TensorOps.td

[mlir] Make [tensor|memref]::ExpandShapeOp verifier stricter. (#181020)

The number of dynamic dims in output_shape is expected to be as the same
as the result type.

The revision also trims double whitespaces from the doc, because it also
updates the op description.

---------

Signed-off-by: hanhanW <hanhan0912 at gmail.com>
DeltaFile
+13-0mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
+6-5mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td
+5-4mlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td
+8-0mlir/test/Dialect/MemRef/invalid.mlir
+7-0mlir/test/Dialect/Tensor/invalid.mlir
+6-0mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
+45-93 files not shown
+49-139 files

LLVM/project 5b1a023libclc/cmake/modules AddLibclc.cmake

[libclc][CMake] Add COMPONENT ${ARG_PARENT_TARGET} to install (#182716)

Toolchain can specify the component to selectively install libclc to a
deploy folder. E.g. our downstream SYCL toolchain deploy:
https://github.com/intel/llvm/blob/e7b423fd517d/sycl/CMakeLists.txt#L531

Also check ARG_PARENT_TARGET is defined and non-empty.

Co-authored-by: Jinsong Ji <jinsong.ji at intel.com>
DeltaFile
+6-0libclc/cmake/modules/AddLibclc.cmake
+6-01 files