Changes

Summary

  1. [clang-tidy] Simplify readability checks to not need ignoring* matchers (details)
  2. [SelDag] Add isIntOrFPConstant helper function. (details)
  3. [BasicAA] Handle gep with unknown sizes earlier (NFCI) (details)
  4. Update the documentation for recent changes to statement attributes. (details)
  5. [LV] Mark a few more cost-model members as const (NFC). (details)
  6. [clang-format] Fix aligning with linebreaks (details)
  7. OpaquePtr: Turn inalloca into a type attribute (details)
  8. AArch64/GlobalISel: Remove IR section from test (details)
  9. [Orc][examples] Add LLJITWithRemoteDebugging example (details)
  10. [Orc][examples] Add missing dependency to OrcShared in LLJITWithRemoteDebugging (details)
  11. [RISCV][Clang] Update new overloading rules for RVV intrinsics. (details)
Commit ea2225a10be986d226e041d20d36dff17e78daed by steveire
[clang-tidy] Simplify readability checks to not need ignoring* matchers

Differential Revision: https://reviews.llvm.org/D98296
The file was modifiedclang-tools-extra/clang-tidy/readability/RedundantControlFlowCheck.h (diff)
The file was modifiedclang-tools-extra/clang-tidy/readability/NamedParameterCheck.cpp (diff)
The file was modifiedclang-tools-extra/clang-tidy/readability/StaticAccessedThroughInstanceCheck.cpp (diff)
The file was modifiedclang-tools-extra/clang-tidy/readability/UniqueptrDeleteReleaseCheck.h (diff)
The file was modifiedclang-tools-extra/clang-tidy/readability/ElseAfterReturnCheck.cpp (diff)
The file was modifiedclang-tools-extra/clang-tidy/readability/StaticAccessedThroughInstanceCheck.h (diff)
The file was modifiedclang-tools-extra/clang-tidy/readability/NonConstParameterCheck.h (diff)
The file was modifiedclang-tools-extra/clang-tidy/readability/RedundantControlFlowCheck.cpp (diff)
The file was modifiedclang-tools-extra/clang-tidy/readability/NonConstParameterCheck.cpp (diff)
The file was modifiedclang-tools-extra/clang-tidy/readability/SimplifySubscriptExprCheck.cpp (diff)
The file was modifiedclang-tools-extra/clang-tidy/readability/InconsistentDeclarationParameterNameCheck.cpp (diff)
The file was modifiedclang-tools-extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp (diff)
The file was modifiedclang-tools-extra/clang-tidy/readability/BracesAroundStatementsCheck.h (diff)
The file was modifiedclang-tools-extra/clang-tidy/readability/ElseAfterReturnCheck.h (diff)
The file was modifiedclang-tools-extra/clang-tidy/readability/MisleadingIndentationCheck.cpp (diff)
The file was modifiedclang-tools-extra/clang-tidy/readability/MisleadingIndentationCheck.h (diff)
The file was modifiedclang-tools-extra/clang-tidy/readability/SimplifySubscriptExprCheck.h (diff)
The file was modifiedclang-tools-extra/clang-tidy/readability/UppercaseLiteralSuffixCheck.cpp (diff)
The file was modifiedclang-tools-extra/clang-tidy/readability/InconsistentDeclarationParameterNameCheck.h (diff)
The file was modifiedclang-tools-extra/clang-tidy/readability/UppercaseLiteralSuffixCheck.h (diff)
The file was modifiedclang-tools-extra/clang-tidy/readability/UniqueptrDeleteReleaseCheck.cpp (diff)
The file was modifiedclang-tools-extra/clang-tidy/readability/NamedParameterCheck.h (diff)
Commit eb3d9f2eb619132d75fbe228c7aac1eee1667f3c by flo
[SelDag] Add isIntOrFPConstant helper function.

This patch adds a new isIntOrFPConstant  helper function to check if a
SDValue is a integer of FP constant. This pattern is used in various
places.

There also are places that incorrectly just check for integer constants,
e.g. D99384, so hopefully this helper will help people avoid that issue.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D99428
The file was modifiedllvm/include/llvm/CodeGen/SelectionDAGNodes.h (diff)
The file was modifiedllvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (diff)
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.cpp (diff)
Commit 3df3f3df4539c3df7519caf33ea73d80eba653bd by nikita.ppv
[BasicAA] Handle gep with unknown sizes earlier (NFCI)

If the sizes of both memory locations are unknown, we can only
perform a check on the underlying objects. There's no point in
going through GEP decomposition in this case.
The file was modifiedllvm/lib/Analysis/BasicAliasAnalysis.cpp (diff)
Commit 581b429f7d416709f5c78338828beb705bedb396 by aaron
Update the documentation for recent changes to statement attributes.

Adds more information about automated diagnostic reporting for statement
attributes and adds a bit more documentation about statement attributes
in general.
The file was modifiedclang/docs/InternalsManual.rst (diff)
Commit 8c6c3578971eb7df9e1080aaa47439111188c1b6 by flo
[LV] Mark a few more cost-model members as const (NFC).
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp (diff)
Commit c5243c63cda3c740d6e9c7e501f6518c21688da3 by bjoern
[clang-format] Fix aligning with linebreaks

Breaking a string literal or a function calls arguments with
AlignConsecutiveDeclarations or AlignConsecutiveAssignments did misalign
the continued line. E.g.:

void foo() {
  int myVar = 5;
  double x  = 3.14;
  auto str  = "Hello"
            "World";
}

or

void foo() {
  int    myVar = 5;
  double x = 3.14;
  auto   str = "Hello"
             "World";
}

Differential Revision: https://reviews.llvm.org/D98214
The file was modifiedclang/unittests/Format/FormatTest.cpp (diff)
The file was modifiedclang/lib/Format/WhitespaceManager.cpp (diff)
Commit 4fefed65637ec46c8c2edad6b07b5569ac61e9e5 by Matthew.Arsenault
OpaquePtr: Turn inalloca into a type attribute

I think byval/sret and the others are close to being able to rip out
the code to support the missing type case. A lot of this code is
shared with inalloca, so catch this up to the others so that can
happen.
The file was modifiedllvm/test/Transforms/DeadArgElim/keepalive.ll (diff)
The file was modifiedllvm/lib/IR/AttributeImpl.h (diff)
The file was modifiedclang/test/CodeGenObjCXX/microsoft-abi-arc-param-order.mm (diff)
The file was modifiedllvm/test/CodeGen/X86/inalloca-ctor.ll (diff)
The file was modifiedclang/test/CodeGenCXX/attr-target-mv-inalloca.cpp (diff)
The file was addedllvm/test/Linker/inalloca-types.ll
The file was modifiedllvm/test/Transforms/InstCombine/call-cast-target-inalloca.ll (diff)
The file was modifiedllvm/lib/AsmParser/LLParser.cpp (diff)
The file was modifiedllvm/lib/Linker/IRMover.cpp (diff)
The file was modifiedllvm/unittests/Transforms/Utils/CloningTest.cpp (diff)
The file was modifiedllvm/include/llvm/IR/Argument.h (diff)
The file was modifiedllvm/test/Verifier/amdgpu-cc.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/musttail-inalloca.ll (diff)
The file was modifiedllvm/test/Transforms/GVNHoist/hoist-pr28606.ll (diff)
The file was modifiedllvm/test/Verifier/byval-1.ll (diff)
The file was modifiedllvm/test/Verifier/inalloca2.ll (diff)
The file was modifiedclang/test/CodeGenCXX/microsoft-abi-sret-and-byval.cpp (diff)
The file was modifiedllvm/test/Verifier/inalloca3.ll (diff)
The file was addedllvm/test/Assembler/inalloca-parse-error0.ll
The file was addedllvm/test/Linker/Inputs/inalloca-type-input.ll
The file was modifiedllvm/include/llvm/IR/Function.h (diff)
The file was modifiedllvm/test/Verifier/inalloca-vararg.ll (diff)
The file was modifiedclang/test/CodeGenCXX/microsoft-abi-vtables-multiple-nonvirtual-inheritance-this-adjustment.cpp (diff)
The file was modifiedllvm/test/CodeGen/X86/tail-call-mutable-memarg.ll (diff)
The file was modifiedllvm/lib/AsmParser/LLParser.h (diff)
The file was modifiedllvm/test/Bitcode/inalloca.ll (diff)
The file was modifiedllvm/test/Transforms/Attributor/readattrs.ll (diff)
The file was modifiedllvm/test/Transforms/DeadStoreElimination/simple.ll (diff)
The file was modifiedllvm/test/Transforms/GlobalOpt/fastcc.ll (diff)
The file was modifiedllvm/test/Transforms/ArgumentPromotion/inalloca.ll (diff)
The file was addedllvm/test/Bitcode/Inputs/inalloca-upgrade.bc
The file was modifiedllvm/unittests/IR/AttributesTest.cpp (diff)
The file was modifiedllvm/test/CodeGen/X86/x86-repmov-copy-eflags.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/inalloca.ll (diff)
The file was modifiedclang/test/CodeGenCXX/microsoft-abi-byval-sret.cpp (diff)
The file was modifiedclang/test/CodeGenObjCXX/arc-indirect.mm (diff)
The file was modifiedllvm/test/Transforms/Attributor/ArgumentPromotion/inalloca.ll (diff)
The file was modifiedllvm/test/Bitcode/compatibility-3.6.ll (diff)
The file was modifiedllvm/test/Assembler/invalid-immarg.ll (diff)
The file was modifiedllvm/test/Bitcode/compatibility-3.7.ll (diff)
The file was modifiedllvm/docs/LangRef.rst (diff)
The file was modifiedclang/test/CodeGenCXX/microsoft-abi-byval-thunks.cpp (diff)
The file was modifiedclang/test/CodeGenCXX/microsoft-abi-vmemptr-conflicts.cpp (diff)
The file was modifiedllvm/test/Verifier/byref.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/inalloca-regparm.ll (diff)
The file was modifiedclang/test/CodeGenCXX/inalloca-vector.cpp (diff)
The file was modifiedclang/test/CodeGenCXX/microsoft-abi-eh-cleanups.cpp (diff)
The file was modifiedllvm/test/Bitcode/compatibility.ll (diff)
The file was modifiedclang/test/CodeGenCXX/microsoft-abi-byval-vararg.cpp (diff)
The file was modifiedllvm/test/Transforms/InstCombine/stacksaverestore.ll (diff)
The file was modifiedclang/test/CodeGenCXX/microsoft-abi-arg-order.cpp (diff)
The file was modifiedllvm/test/CodeGen/X86/movtopush.ll (diff)
The file was modifiedllvm/test/Transforms/Attributor/ArgumentPromotion/X86/thiscall.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/inalloca-stdcall.ll (diff)
The file was modifiedllvm/include/llvm/IR/Attributes.td (diff)
The file was modifiedllvm/test/Transforms/Attributor/value-simplify.ll (diff)
The file was modifiedllvm/test/Verifier/inalloca1.ll (diff)
The file was modifiedclang/lib/CodeGen/CGCall.cpp (diff)
The file was modifiedllvm/lib/IR/Function.cpp (diff)
The file was modifiedllvm/test/Verifier/align.ll (diff)
The file was modifiedclang/test/CodeGenCXX/ms-thunks-ehspec.cpp (diff)
The file was modifiedllvm/test/CodeGen/X86/musttail-thiscall.ll (diff)
The file was modifiedllvm/test/Instrumentation/AddressSanitizer/instrument-dynamic-allocas.ll (diff)
The file was modifiedllvm/test/Bitcode/compatibility-5.0.ll (diff)
The file was modifiedllvm/test/Bitcode/compatibility-3.9.ll (diff)
The file was modifiedllvm/test/Transforms/Inline/inalloca-not-static.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/cleanuppad-inalloca.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/arg-copy-elide.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/musttail-indirect.ll (diff)
The file was modifiedllvm/test/Bitcode/compatibility-3.8.ll (diff)
The file was modifiedllvm/include/llvm/IR/Attributes.h (diff)
The file was modifiedllvm/test/Transforms/FunctionAttrs/readattrs.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/shrink-wrap-chkstk.ll (diff)
The file was modifiedclang/test/CodeGenCXX/inheriting-constructor.cpp (diff)
The file was modifiedclang/test/CodeGenCXX/inalloca-overaligned.cpp (diff)
The file was modifiedclang/test/CodeGenCXX/vararg-non-pod-ms-compat.cpp (diff)
The file was modifiedllvm/lib/IR/AsmWriter.cpp (diff)
The file was modifiedllvm/lib/IR/Verifier.cpp (diff)
The file was modifiedllvm/lib/Bitcode/Reader/BitcodeReader.cpp (diff)
The file was modifiedllvm/test/Bitcode/compatibility-4.0.ll (diff)
The file was addedllvm/test/Bitcode/inalloca-upgrade.test
The file was modifiedllvm/test/CodeGen/X86/inalloca-invoke.ll (diff)
The file was modifiedllvm/test/DebugInfo/X86/dbg-declare-inalloca.ll (diff)
The file was modifiedllvm/test/Transforms/InstCombine/alloca.ll (diff)
The file was modifiedllvm/test/Bitcode/compatibility-6.0.ll (diff)
The file was modifiedllvm/lib/IR/Attributes.cpp (diff)
The file was modifiedllvm/lib/Transforms/Utils/ValueMapper.cpp (diff)
The file was modifiedllvm/docs/ReleaseNotes.rst (diff)
The file was modifiedllvm/test/Transforms/ArgumentPromotion/X86/thiscall.ll (diff)
The file was modifiedllvm/test/Bitcode/attributes.ll (diff)
The file was modifiedllvm/test/Verifier/noundef.ll (diff)
Commit 2f779e79d50114830c02cdb9e77bd851e13d9fc1 by Matthew.Arsenault
AArch64/GlobalISel: Remove IR section from test
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/legalize-fptoi.mir (diff)
Commit 258f055ed93661900bc568350e09f467c0950486 by Stefan Gränitz
[Orc][examples] Add LLJITWithRemoteDebugging example
The file was addedllvm/test/Examples/OrcV2Examples/Inputs/argc_sub1.c
The file was addedllvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/RemoteJITUtils.h
The file was addedllvm/test/Examples/OrcV2Examples/lljit-with-remote-debugging.test
The file was modifiedllvm/examples/OrcV2Examples/CMakeLists.txt (diff)
The file was addedllvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeLists.txt
The file was modifiedllvm/examples/OrcV2Examples/ExampleModules.h (diff)
The file was addedllvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/LLJITWithRemoteDebugging.cpp
The file was addedllvm/test/Examples/OrcV2Examples/Inputs/argc_sub1_elf.ll
The file was addedllvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/RemoteJITUtils.cpp
Commit 7b9df09e2050b8b2ab941fde7437fb2a67632cd6 by Stefan Gränitz
[Orc][examples] Add missing dependency to OrcShared in LLJITWithRemoteDebugging
The file was modifiedllvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeLists.txt (diff)
Commit 821547cabb5819ed42245376a9afcd11cdee5ddd by zakk.chen
[RISCV][Clang] Update new overloading rules for RVV intrinsics.

RVV intrinsics has new overloading rule, please see
https://github.com/riscv/rvv-intrinsic-doc/commit/82aac7dad4c6c1c351ed5b17ca6007c395843ed7

Changed:
1. Rename `generic` to `overloaded` because the new rule is not using C11 generic.
2. Change HasGeneric to HasNoMaskedOverloaded because all masked operations
   support overloading api.
3. Add more overloaded tests due to overloading rule changed.

Differential Revision: https://reviews.llvm.org/D99189
The file was addedclang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vse.c
The file was addedclang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfadd.c
The file was removedclang/test/CodeGen/RISCV/rvv-intrinsics-generic/vadd.c
The file was modifiedclang/include/clang/Basic/riscv_vector.td (diff)
The file was modifiedclang/utils/TableGen/RISCVVEmitter.cpp (diff)
The file was modifiedclang/utils/TableGen/TableGenBackends.h (diff)
The file was addedclang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vloxei.c
The file was modifiedllvm/docs/CommandGuide/tblgen.rst (diff)
The file was addedclang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vluxei.c
The file was modifiedclang/utils/TableGen/TableGen.cpp (diff)
The file was addedclang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vle.c
The file was modifiedllvm/utils/gn/secondary/clang/lib/Headers/BUILD.gn (diff)
The file was modifiedclang/lib/Headers/CMakeLists.txt (diff)
The file was addedclang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vadd.c
The file was removedclang/test/CodeGen/RISCV/rvv-intrinsics-generic/vfadd.c