LLVM/project a3b5b4bclang/docs AddressSanitizer.rst LibASTImporter.rst

[clang] Proofread *.rst (#166897)

This patch is limited to single-word replacements to fix spelling
and/or grammar to ease the review process.  Punctuation and markdown
fixes are specifically excluded.
DeltaFile
+3-3clang/docs/AddressSanitizer.rst
+2-2clang/docs/LibASTImporter.rst
+2-2clang/docs/BoundsSafety.rst
+2-2clang/docs/ClangNVLinkWrapper.rst
+1-1clang/docs/ClangPlugins.rst
+1-1clang/docs/ClangTools.rst
+11-1115 files not shown
+26-2621 files

LLVM/project f55b393clang/lib/CIR/CodeGen CIRGenStmt.cpp

[clang][CIR] Fix build. NFC

- 'getStmtExprResult' is removed after d9c7c76. Use the original one to
  get the compound stmt's expr result.
DeltaFile
+1-1clang/lib/CIR/CodeGen/CIRGenStmt.cpp
+1-11 files

LLVM/project 9857791utils/bazel/llvm-project-overlay/mlir BUILD.bazel

[bazel] Add mlir/utils/generate-test-checks.py to bazel overlay (#160693)

DeltaFile
+6-0utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+6-01 files

LLVM/project 2432051llvm/test/Analysis/DependenceAnalysis monotonicity-loop-guard.ll

fix the br argument
DeltaFile
+2-2llvm/test/Analysis/DependenceAnalysis/monotonicity-loop-guard.ll
+2-21 files

LLVM/project f090dd1libcxx/test/libcxx/time/time.traits is.clock.verify.cpp, libcxx/test/libcxx/time/time.traits.is.clock trait.is.clock.compile.verify.cpp

[libc++][test] Fix-up tests for `is_clock(_v)` (#166888)

This fixes incompleteness and inconsistency for test files added in
adc79324618f0e95914ac0fcb26fe0d942319cab, by
- renaming
`libcxx/test/std/time/time.traits.is.clock/trait.is.clock.compile.pass.cpp`
to `libcxx/test/std/time/time.traits/is.clock.compile.pass.cpp`,
- renaming
`libcxx/test/libcxx/time/time.traits.is.clock/trait.is.clock.compile.verify.cpp`
to `libcxx/test/libcxx/time/time.traits/is.clock.verify.cpp` , and
- adding comments clarifying what are being tested.
DeltaFile
+230-0libcxx/test/std/time/time.traits/is.clock.compile.pass.cpp
+0-225libcxx/test/std/time/time.traits.is.clock/trait.is.clock.compile.pass.cpp
+36-0libcxx/test/libcxx/time/time.traits/is.clock.verify.cpp
+0-24libcxx/test/libcxx/time/time.traits.is.clock/trait.is.clock.compile.verify.cpp
+266-2494 files

LLVM/project 1baf7dbflang-rt/include/flang-rt/runtime io-stmt.h, flang-rt/lib/runtime io-stmt.cpp edit-output.cpp

[flang][runtime] Allow some list-directed child output to advance (#166847)

List-directed child input is allowed to advance to new records in some
circumstances, and list-directed output should be as well so that e.g.
NAMELIST output via a defined WRITE(FORMATTED) generic doesn't get
truncated by FORT_FMT_RECL.

Fixes https://github.com/llvm/llvm-project/issues/166804.
DeltaFile
+14-14flang-rt/lib/runtime/io-stmt.cpp
+4-3flang-rt/lib/runtime/edit-output.cpp
+1-2flang-rt/include/flang-rt/runtime/io-stmt.h
+19-193 files

LLVM/project 3d0ae1eflang/lib/Evaluate common.cpp intrinsics-library.cpp, flang/test/Evaluate folding33.f90

[flang] Improve warning text (#166407)

When an overflow or other floating-point exception occurs at compilation
time while folding a conversion of a math library call to a smaller
type, don't confuse the user by mentioning the conversion; just note
that the exception was noted while folding the intrinsic function.
DeltaFile
+10-9flang/lib/Evaluate/common.cpp
+1-1flang/lib/Evaluate/intrinsics-library.cpp
+1-1flang/test/Evaluate/folding33.f90
+12-113 files

LLVM/project b3b4ea1flang/lib/Evaluate check-expression.cpp, flang/test/Semantics structconst12.f90

[flang] Explicit interface externals are constant expressions (#166181)

... but the constant expression test didn't allow for them, so they
weren't working in initializers.
DeltaFile
+12-0flang/test/Semantics/structconst12.f90
+5-2flang/lib/Evaluate/check-expression.cpp
+17-22 files

LLVM/project 093f947llvm/lib/CAS UnifiedOnDiskCache.cpp

[CAS] Fix wrong usage of `llvm::sort()` in UnifiedOnDiskCache (#166963)

Fix compare function in getAllDBDirs(). The compare function in sort
should be strictly less than operator.
DeltaFile
+1-1llvm/lib/CAS/UnifiedOnDiskCache.cpp
+1-11 files

LLVM/project a7c0e78flang/lib/Optimizer/OpenMP MapInfoFinalization.cpp, flang/test/Lower/OpenMP optional-argument-map-2.f90 map-character.f90

[Flang][OpenMP] Unify MapInfoFinalization's BoxChar handling with other Box types (#165954)

Currently we handle BoxChars separately and a little differently to the
other BoxType's, however realistically they can be handled the same and
should be to simplify the pass as much as we can.
DeltaFile
+10-85flang/lib/Optimizer/OpenMP/MapInfoFinalization.cpp
+13-12flang/test/Lower/OpenMP/optional-argument-map-2.f90
+11-5flang/test/Lower/OpenMP/map-character.f90
+3-4flang/test/Transforms/omp-map-info-finalization.fir
+1-1flang/test/Lower/OpenMP/DelayedPrivatization/target-private-multiple-variables.f90
+38-1075 files

LLVM/project c19957cllvm/include/llvm/MC MCSymbolGOFF.h, llvm/lib/MC MCSymbolGOFF.cpp

Fix some formatting issues.
DeltaFile
+3-2llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
+1-3llvm/include/llvm/MC/MCSymbolGOFF.h
+2-2llvm/lib/MC/MCSymbolGOFF.cpp
+6-73 files

LLVM/project 194ba3allvm/include/llvm/MC MCSymbolGOFF.h, llvm/lib/MC MCSymbolGOFF.cpp

Add HLASM output and external references

Adds HLASM output and tests for it, per reviewer comment.
Also adds external references, because it fits very well
into the implementation.
DeltaFile
+151-7llvm/lib/Target/SystemZ/MCTargetDesc/SystemZHLASMAsmStreamer.cpp
+37-21llvm/test/CodeGen/SystemZ/zos-section-1.ll
+37-0llvm/test/CodeGen/SystemZ/zos-symbol-1.ll
+21-13llvm/test/CodeGen/SystemZ/zos-section-2.ll
+18-10llvm/lib/MC/MCSymbolGOFF.cpp
+26-2llvm/include/llvm/MC/MCSymbolGOFF.h
+290-5313 files not shown
+398-6319 files

LLVM/project 6261752llvm/include/llvm/MC MCSymbolGOFF.h MCGOFFStreamer.h, llvm/lib/MC MCGOFFStreamer.cpp MCSymbolGOFF.cpp

[GOFF] Emit symbols for functions.

A function entry is mapped to a LD symbol with an offset to the begin of the section.
DeltaFile
+57-0llvm/lib/MC/MCGOFFStreamer.cpp
+39-0llvm/lib/MC/MCSymbolGOFF.cpp
+22-14llvm/test/CodeGen/SystemZ/zos-section-1.ll
+20-2llvm/include/llvm/MC/MCSymbolGOFF.h
+4-3llvm/include/llvm/MC/MCGOFFStreamer.h
+1-0llvm/lib/MC/GOFFObjectWriter.cpp
+143-191 files not shown
+144-197 files

LLVM/project 373e70dllvm/lib/CAS UnifiedOnDiskCache.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+1-1llvm/lib/CAS/UnifiedOnDiskCache.cpp
+1-11 files

LLVM/project 80a5332mlir/lib/Dialect/Bufferization/IR BufferizationDialect.cpp

[mlir] Remove redundant declarations (NFC) (#166896)

In C++17, static constexpr members are implicitly inline, so they no
longer require an out-of-line definition.

The comments for these variables are also present in:

  mlir/include/mlir/Dialect/Bufferization/IR/BufferizationBase.td

Identified with readability-redundant-declaration.
DeltaFile
+0-19mlir/lib/Dialect/Bufferization/IR/BufferizationDialect.cpp
+0-191 files

LLVM/project de4d953llvm/lib/Demangle ItaniumDemangle.cpp

[Demangle] Remove redundant declarations (NFC) (#166895)

In C++17, static constexpr members are implicitly inline, so they no
longer require an out-of-line definition.

Identified with readability-redundant-declaration.
DeltaFile
+0-4llvm/lib/Demangle/ItaniumDemangle.cpp
+0-41 files

LLVM/project 563ea29clang-tools-extra/clang-doc BitcodeWriter.cpp, clang-tools-extra/clangd FuzzyMatch.cpp FileDistance.cpp

[clang-tools-extra] Remove redundant declarations (NFC) (#166894)

In C++17, static constexpr members are implicitly inline, so they no
longer require an out-of-line definition.

Identified with readability-redundant-declaration.
DeltaFile
+0-3clang-tools-extra/clangd/index/SymbolLocation.cpp
+0-3clang-tools-extra/clangd/FuzzyMatch.cpp
+0-2clang-tools-extra/clang-doc/BitcodeWriter.cpp
+0-1clang-tools-extra/clangd/FileDistance.cpp
+0-1clang-tools-extra/clangd/ClangdLSPServer.cpp
+0-105 files

LLVM/project bddab83bolt/lib/Core BinaryBasicBlock.cpp DynoStats.cpp, bolt/lib/Profile DataAggregator.cpp

[BOLT] Remove redundant declarations (NFC) (#166893)

In C++17, static constexpr members are implicitly inline, so they no
longer require an out-of-line definition.

Identified with readability-redundant-declaration.
DeltaFile
+0-2bolt/lib/Core/BinaryBasicBlock.cpp
+0-2bolt/lib/Core/DynoStats.cpp
+0-2bolt/lib/Profile/DataAggregator.cpp
+0-1bolt/lib/Rewrite/RewriteInstance.cpp
+0-74 files

LLVM/project f802149llvm/lib/Target/AMDGPU AMDGPUUniformIntrinsicCombine.cpp

drop duplicate switch case
DeltaFile
+1-11llvm/lib/Target/AMDGPU/AMDGPUUniformIntrinsicCombine.cpp
+1-111 files

LLVM/project da9e715clang/lib/Driver/ToolChains AMDGPU.cpp

fix after rebase
DeltaFile
+1-1clang/lib/Driver/ToolChains/AMDGPU.cpp
+1-11 files

LLVM/project cfa15f4clang/lib/Driver/ToolChains AMDGPU.cpp AMDGPU.h, clang/test/Driver hip-sanitize-options.hip amdgpu-openmp-sanitize-options.c

ignore sanitizers selectively
DeltaFile
+13-9clang/lib/Driver/ToolChains/AMDGPU.cpp
+18-1clang/test/Driver/hip-sanitize-options.hip
+9-7clang/lib/Driver/ToolChains/AMDGPU.h
+9-5clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp
+7-6clang/test/Driver/amdgpu-openmp-sanitize-options.c
+11-1clang/lib/Driver/ToolChains/HIPAMD.cpp
+67-296 files

LLVM/project e2a11d3clang/lib/Driver/ToolChains AMDGPU.h

fix formatting
DeltaFile
+1-2clang/lib/Driver/ToolChains/AMDGPU.h
+1-21 files

LLVM/project 1d0052bclang/include/clang/Basic DiagnosticDriverKinds.td

add forgotten diagnostic
DeltaFile
+3-0clang/include/clang/Basic/DiagnosticDriverKinds.td
+3-01 files

LLVM/project bc0aad0clang/lib/Driver/ToolChains AMDGPU.h AMDGPU.cpp, clang/test/Driver amdgpu-openmp-sanitize-options.c

[AMDGPU][clang] Fix clang driver check for multiple sanitizer arguments

`-fsanitize=address,fuzzer` should be rejected like
`-fsanitize=fuzzer,address`.
The address sanitizer enables the device sanitizer pipeline. The fuzzer
implicitly turns on LLVMs SanitizerCoverage, which the driver then
forwards to the device cc1.  SanitizerCoverage is not supported on
amdgcn.
DeltaFile
+13-0clang/test/Driver/amdgpu-openmp-sanitize-options.c
+7-5clang/lib/Driver/ToolChains/AMDGPU.h
+5-3clang/lib/Driver/ToolChains/AMDGPU.cpp
+25-83 files

LLVM/project 70f4b59llvm/docs LangRef.rst, llvm/lib/CodeGen/SelectionDAG DAGCombiner.cpp TargetLowering.cpp

Add `llvm.vector.partial.reduce.fadd` intrinsic (#159776)

With this intrinsic, and supporting SelectionDAG nodes, we can better
make use of instructions such as AArch64's `FDOT`.
DeltaFile
+230-0llvm/test/CodeGen/AArch64/sve2p1-fixed-length-fdot.ll
+71-44llvm/docs/LangRef.rst
+93-0llvm/test/CodeGen/AArch64/sve2p1-fdot.ll
+31-14llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+23-10llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+12-0llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+460-6812 files not shown
+501-7218 files

LLVM/project 411ea8ellvm/lib/Target/PowerPC PPCISelLowering.cpp PPCTargetTransformInfo.cpp, llvm/test/CodeGen/PowerPC vp-ld-st.ll

[PowerPC] Lowering support for EVL type VP_LOAD/VP_STORE (#165910)

Map EVL type VP_LOAD/VP_STORE for fixed length vectors to PPC load/store
with length.
DeltaFile
+160-0llvm/test/CodeGen/PowerPC/vp-ld-st.ll
+71-0llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+43-0llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
+3-0llvm/lib/Target/PowerPC/PPCISelLowering.h
+3-0llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h
+280-05 files

LLVM/project 67d0f18llvm/test/CodeGen/AMDGPU amdgpu-codegenprepare-idiv.ll srem64.ll

[AMDGPU] Delete redundant s_or_b32 (#165261)

Transform sequences like:

```
s_cselect_b64 s[12:13], -1, 0
s_or_b32 s6, s12, s13
```

where s6 is dead to: 

`s_cselect_b64 s[12:13], -1, 0`

---------

Signed-off-by: John Lu <John.Lu at amd.com>
DeltaFile
+450-495llvm/test/CodeGen/AMDGPU/amdgpu-codegenprepare-idiv.ll
+190-226llvm/test/CodeGen/AMDGPU/srem64.ll
+173-195llvm/test/CodeGen/AMDGPU/sdiv64.ll
+137-165llvm/test/CodeGen/AMDGPU/urem64.ll
+91-110llvm/test/CodeGen/AMDGPU/udiv64.ll
+178-0llvm/test/CodeGen/AMDGPU/optimize-compare.mir
+1,219-1,1916 files not shown
+1,258-1,21812 files

LLVM/project 7377ac0clang/lib/CodeGen/TargetBuiltins ARM.cpp, clang/test/CodeGen/AArch64 v9.6a-neon-f16-intrinsics.c v9.6a-neon-f32-intrinsics.c

[AArch64][llvm] Add support for Neon vmmlaq_{f16,f32}_mf8_fpm intrinsics (#165431)

Add support for the following new AArch64 Neon intrinsics:
```
float16x8_t vmmlaq_f16_mf8_fpm(float16x8_t, mfloat8x16_t, mfloat8x16_t, fpm_t);
float32x4_t vmmlaq_f32_mf8_fpm(float32x4_t, mfloat8x16_t, mfloat8x16_t, fpm_t);
```
DeltaFile
+23-0clang/test/CodeGen/AArch64/v9.6a-neon-f16-intrinsics.c
+21-0clang/test/CodeGen/AArch64/v9.6a-neon-f32-intrinsics.c
+11-5llvm/lib/Target/AArch64/AArch64InstrFormats.td
+14-0llvm/test/CodeGen/AArch64/aarch64-matmul-fp16.ll
+13-0llvm/test/CodeGen/AArch64/aarch64-matmul-fp32.ll
+10-0clang/lib/CodeGen/TargetBuiltins/ARM.cpp
+92-53 files not shown
+102-69 files

LLVM/project ca191bellvm/lib/Transforms/Vectorize LoopVectorize.cpp VPlanRecipes.cpp, llvm/test/Transforms/LoopVectorize compress-idioms.ll

[LoopVectorize] Support vectorization of compressing patterns in VPlan
DeltaFile
+227-21llvm/test/Transforms/LoopVectorize/compress-idioms.ll
+104-6llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+67-2llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+46-0llvm/lib/Transforms/Vectorize/VPlan.h
+35-0llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
+13-8llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp
+492-374 files not shown
+518-4310 files

LLVM/project e827eccllvm/test/Transforms/LoopVectorize compress-idioms.ll

[LoopVectorize][NFC] Add pre-commit tests
DeltaFile
+480-0llvm/test/Transforms/LoopVectorize/compress-idioms.ll
+480-01 files