SuccessChanges

Changes from Git (git http://labmaster3.local/git/llvm-zorg.git)

Summary

  1. Update compiler on hexagon-build-0x machines (details)
Commit e7f9b7230c9a17d5ffb64ac3f7b46846ce334c4b by kparzysz
Update compiler on hexagon-build-0x machines
The file was modifiedbuildbot/osuosl/master/config/builders.py

Changes from Git (git http://labmaster3.local/git/llvm-project.git)

Summary

  1. Update @llvm.powi to handle different int sizes for the exponent (details)
  2. [lldb] Skip variant/optional libc++ tests for Clang 5/6 (details)
  3. [mlir] ODS: emit interface traits outside of the interface class (details)
  4. [analyzer] Make checker silencing work for non-pathsensitive bug reports (details)
  5. [Format] Fix incorrect pointer/reference detection (details)
  6. [VPlan] Support PHIs as LastInst when inserting scalars in ::get(). (details)
  7. [Demangle] Support Rust v0 mangling scheme in llvm::demangle (details)
  8. [InterleaveAccess] Copy fast math flags when adjusting binary operators in interleave access pass (details)
  9. [clang][AST] Set correct DeclContext in ASTImporter lookup table for template params. (details)
  10. [RISCV][VP] Lower FP VP ISD nodes to RVV instructions (details)
  11. [FuncSpec] Don't specialise functions with attribute NoDuplicate. (details)
  12. [mlir] separable registration of operation interfaces (details)
  13. [libcxx] Fix a case of -Wundef warnings regarding _POSIX_TIMERS (details)
  14. [llvm-dlltool] [test] Test both short and long forms of options. NFC. (details)
  15. [llvm-dlltool] [test] Remove superfluous --coff-exports option to llvm-readobj. NFC. (details)
  16. [llvm-dlltool] [test] Add a testcase for all machine option types. NFC. (details)
  17. [llvm-dlltool] Imply the target arch from a tool triple prefix (details)
  18. [LLD] [COFF] Remove a stray duplicate comment. NFC. (details)
  19. [ELF] Restore arm-branch.s test (details)
  20. [NFC] test commit, fix namespace ending comment. (details)
  21. [flang] preserve symbol in DescriptorInquiry (details)
  22. [InstCombine] Fix miscompile on GEP+load to icmp fold (PR45210) (details)
  23. [hwasan] Do not use short granule tags as poison tags. (details)
  24. [hwasan] Improve report for addresses within regions. (details)
  25. [mlir] Enable delayed registration of attribute/operation/type interfaces (details)
  26. [lldb] Set return object failed status even if error string is empty (details)
  27. [lldb] Remove redundant calls to set eReturnStatusFailed (details)
  28. [mlir] define a customized DEBUG_TYPE in InterfaceSupport.h (details)
  29. [X86] Add test showing binary differences with -x86-pad-for-align. (details)
  30. [libc] Generate one benchmark per implementation (details)
  31. [X86] Check using default in test added in 0bd5bbb31e0345ae. (details)
  32. [mlir][linalg] Purge linalg.indexed_generic. (details)
  33. [X86] combineSelect - refactor MIN/MAX detection code to make it easier to add additional select(setcc,x,y) folds. NFCI. (details)
  34. [mlir] Split things dependent on LLVM_DEBUG into a .cpp file (details)
  35. [FuncSpec] Precommit test: don't specialise funcs with NoDuplicate instrs. NFC. (details)
  36. [lldb] Remove redundant calls to set eReturnStatusFailed (details)
  37. [mlir] Remove linalg.indexed_generic forward decl. (details)
  38. [DebugInfo] Prevent non-determinism when updating DIArgList users of a value (details)
  39. [Sema] Fix for PR50741 (details)
  40. Revert "[DebugInfo] Prevent non-determinism when updating DIArgList users of a value" (details)
  41. [llvm] fix typo in comment (details)
  42. [FPEnv][InstSimplify] Precommit tests for D103169. (details)
  43. [clangd] Explicitly fail if the file passed to --check is not valid. (details)
  44. [lld-macho] Avoid force-loading the same archive twice (details)
  45. Reapply "[DebugInfo] Prevent non-determinism when updating DIArgList users of a value" (details)
  46. RISCV: adjust handling of relocation emission for RISCV (details)
  47. Revert "Remove obsolete call to AsyncSignalSafeLazyInitiFakeStack." (details)
  48. [compiler-rt][hwasan]: undefine new/delete operators with alignment on Android. (details)
  49. [InstCombine][x86] add tests for complex vector shift value tracking; NFC (details)
  50. [InstSimplify] add tests for computeKnownBits of shift-with-bitcast op; NFC (details)
  51. fix an -Wunused-variable warning in release built, NFC (details)
  52. test: clean up some of the RISCV tests (NFC) (details)
  53. [libcxx][iwyu] 🎨 adds more headers to IWYU (details)
  54. [libcxx][module-map] 🎨 updates module map to account for ranges headers (details)
  55. [mlir][sparse] Add Matricized Tensor Times Khatri-Rao Product (MTTKRP) integration test (details)
  56. [clang] Fix a race condition in the build of clangInterpreter (details)
  57. [lld-macho] Implement ICF (details)
  58. [gn build] Port f27e4548fc42 (details)
  59. [AIX] Remove --as-needed passing into aix linker (details)
  60. [NFC] LoopVectorizationCostModel::getMaximizedVFForTarget(): clarify debug msg (details)
  61. [X86] AMD Zen 3: don't confuse shift and shuffle, NFC (details)
  62. [llvm-symbolizer][docs] Update example for --verbose in the guide (details)
  63. [lld-macho] Rework mergeFlag to behave closer to what ld64 does. (details)
Commit 4c7f820b2b206bb7b4e32e575a78316701471203 by bjorn.a.pettersson
Update @llvm.powi to handle different int sizes for the exponent

This can be seen as a follow up to commit 0ee439b705e82a4fe20e2,
that changed the second argument of __powidf2, __powisf2 and
__powitf2 in compiler-rt from si_int to int. That was to align with
how those runtimes are defined in libgcc.
One thing that seem to have been missing in that patch was to make
sure that the rest of LLVM also handle that the argument now depends
on the size of int (not using the si_int machine mode for 32-bit).
When using __builtin_powi for a target with 16-bit int clang crashed.
And when emitting libcalls to those rtlib functions, typically when
lowering @llvm.powi), the backend would always prepare the exponent
argument as an i32 which caused miscompiles when the rtlib was
compiled with 16-bit int.

The solution used here is to use an overloaded type for the second
argument in @llvm.powi. This way clang can use the "correct" type
when lowering __builtin_powi, and then later when emitting the libcall
it is assumed that the type used in @llvm.powi matches the rtlib
function.

One thing that needed some extra attention was that when vectorizing
calls several passes did not support that several arguments could
be overloaded in the intrinsics. This patch allows overload of a
scalar operand by adding hasVectorInstrinsicOverloadedScalarOpd, with
an entry for powi.

Differential Revision: https://reviews.llvm.org/D99439
The file was modifiedllvm/test/CodeGen/ARM/Windows/powi.ll
The file was modifiedllvm/lib/Analysis/VectorUtils.cpp
The file was modifiedllvm/test/CodeGen/Generic/fpowi-promote.ll
The file was addedllvm/test/Bitcode/upgrade-powi-intrinsics.ll.bc
The file was modifiedllvm/test/Transforms/InstCombine/pow_fp_int16.ll
The file was modifiedllvm/lib/Target/Mips/Mips16HardFloat.cpp
The file was modifiedllvm/include/llvm/IR/Intrinsics.td
The file was modifiedllvm/test/CodeGen/WebAssembly/simd-unsupported.ll
The file was modifiedllvm/test/Transforms/Scalarizer/intrinsics.ll
The file was modifiedllvm/test/CodeGen/Generic/replace-intrinsics-with-veclib.ll
The file was addedllvm/test/Bitcode/upgrade-powi-intrinsics.ll
The file was modifiedllvm/test/CodeGen/ARM/2011-11-29-128bitArithmetics.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/llvm.powi.ll
The file was modifiedllvm/test/CodeGen/X86/powi.ll
The file was modifiedllvm/test/Transforms/InstCombine/fdiv.ll
The file was modifiedclang/test/CodeGen/avr-builtins.c
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/arm64-irtranslator.ll
The file was modifiedllvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
The file was modifiedllvm/test/CodeGen/Thumb2/float-intrinsics-float.ll
The file was modifiedllvm/test/CodeGen/X86/2007-09-27-LDIntrinsics.ll
The file was modifiedllvm/test/CodeGen/NVPTX/libcall-intrinsic.ll
The file was modifiedllvm/docs/LangRef.rst
The file was modifiedllvm/test/CodeGen/AArch64/illegal-float-ops.ll
The file was modifiedllvm/test/CodeGen/NVPTX/f16-instructions.ll
The file was modifiedllvm/test/CodeGen/XCore/float-intrinsics.ll
The file was modifiedllvm/test/Transforms/InstSimplify/fold-intrinsics.ll
The file was modifiedllvm/test/CodeGen/Mips/mips64-f128.ll
The file was modifiedllvm/test/CodeGen/X86/2010-05-07-ldconvert.ll
The file was modifiedllvm/test/CodeGen/SystemZ/fp-libcall.ll
The file was modifiedllvm/lib/Transforms/Scalar/Scalarizer.cpp
The file was modifiedllvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
The file was modifiedllvm/test/CodeGen/Mips/powif64_16.ll
The file was modifiedllvm/unittests/Analysis/ValueTrackingTest.cpp
The file was modifiedllvm/test/CodeGen/AArch64/arm64-vfloatintrinsics.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/intrinsic.ll
The file was modifiedllvm/test/CodeGen/WebAssembly/libcalls.ll
The file was modifiedllvm/test/Transforms/LICM/hoist-round.ll
The file was modifiedllvm/test/Transforms/InstCombine/pow-4.ll
The file was modifiedllvm/include/llvm/CodeGen/ISDOpcodes.h
The file was modifiedllvm/test/Transforms/InstSimplify/floating-point-compare.ll
The file was modifiedllvm/test/CodeGen/Thumb2/float-intrinsics-double.ll
The file was modifiedllvm/test/CodeGen/Mips/pr36061.ll
The file was modifiedclang/test/CodeGen/math-builtins.c
The file was modifiedllvm/include/llvm/Analysis/VectorUtils.h
The file was modifiedllvm/test/CodeGen/Thumb2/intrinsics-cc.ll
The file was modifiedllvm/test/CodeGen/X86/vector-intrinsics.ll
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp
The file was modifiedllvm/test/Transforms/LoopVectorize/intrinsic.ll
The file was modifiedllvm/test/CodeGen/AArch64/powi-windows.ll
The file was modifiedllvm/test/CodeGen/ARM/fp16-promote.ll
The file was modifiedllvm/test/CodeGen/PowerPC/f128-arith.ll
The file was modifiedllvm/test/Transforms/InstSimplify/call.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/llvm.powi.ll
The file was modifiedllvm/test/CodeGen/X86/powi-windows.ll
The file was addedclang/test/CodeGen/msp430-builtins.c
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp
The file was modifiedllvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
The file was modifiedllvm/test/Transforms/InstSimplify/ConstProp/math-2.ll
The file was modifiedllvm/test/CodeGen/AArch64/f16-instructions.ll
The file was modifiedllvm/test/CodeGen/ARM/vfloatintrinsics.ll
The file was modifiedllvm/test/CodeGen/X86/tailcall-multiret.ll
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
The file was modifiedllvm/test/CodeGen/ARM/fp16-fullfp16.ll
The file was modifiedllvm/test/CodeGen/RISCV/double-intrinsics.ll
The file was modifiedllvm/test/Analysis/CostModel/AArch64/sve-intrinsics.ll
The file was modifiedllvm/test/Transforms/InstCombine/intrinsics.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/extract_in_tree_user.ll
The file was modifiedllvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
The file was modifiedllvm/test/CodeGen/ARM/fpowi.ll
The file was modifiedllvm/test/CodeGen/RISCV/float-intrinsics.ll
The file was modifiedllvm/test/CodeGen/Mips/msa/f16-llvm-ir.ll
The file was modifiedllvm/test/CodeGen/RISCV/rv64i-single-softfloat.ll
The file was modifiedllvm/test/Transforms/InstCombine/pow_fp_int.ll
The file was modifiedllvm/test/CodeGen/NVPTX/f16x2-instructions.ll
Commit 25fa67868b36c99d2704bd291b3b495737f16f0e by Raphael Isemann
[lldb] Skip variant/optional libc++ tests for Clang 5/6

Clang 5 and Clang 6 can no longer parse newer versions of libc++. As we can't
specify the specific libc++ version in the decorator, let's only allow Clang
versions that can parse all currently available libc++ versions.
The file was modifiedlldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/variant/TestDataFormatterLibcxxVariant.py
The file was modifiedlldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/optional/TestDataFormatterLibcxxOptional.py
Commit a4f81b2054c30954c6739532b923f2b223bc7d77 by zinenko
[mlir] ODS: emit interface traits outside of the interface class

ODS currently emits the interface trait class as a nested class inside the
interface class. As an unintended consequence, the default implementations of
interface methods have implicit access to static fields of the interface class,
e.g. those declared in `extraClassDeclaration`, including private methods (!),
or in the parent class. This may break the use of default implementations for
external models, which are not defined in the interface class, and generally
complexifies the abstraction.

Emit intraface traits outside of the interface class itself to avoid accidental
implicit visibility. Public static fields can still be accessed via explicit
qualification with a class name, e.g., `MyOpInterface::staticMethod()` instead
of `staticMethod`.

Update the documentation to clarify the role of `extraClassDeclaration` in
interfaces.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D104384
The file was modifiedmlir/docs/Interfaces.md
The file was modifiedmlir/include/mlir/Interfaces/ControlFlowInterfaces.td
The file was modifiedmlir/tools/mlir-tblgen/OpInterfacesGen.cpp
Commit 9cca5c1391d637b5500ada646cf136ddb38254a3 by dkszelethus
[analyzer] Make checker silencing work for non-pathsensitive bug reports

D66572 separated BugReport and BugReporter into basic and path sensitive
versions. As a result, checker silencing, which worked deep in the path
sensitive report generation facilities became specific to it. DeadStoresChecker,
for instance, despite being in the static analyzer, emits non-pathsensitive
reports, and was impossible to silence.

This patch moves the corresponding code before the call to the virtual function
generateDiagnosticForConsumerMap (which is overriden by the specific kinds of
bug reporters). Although we see bug reporting as relatively lightweight compared
to the analysis, this will get rid of several steps we used to throw away.

Quoting from D65379:

At a very high level, this consists of 3 steps:

For all BugReports in the same BugReportEquivClass, collect all their error
nodes in a set. With that set, create a new, trimmed ExplodedGraph whose leafs
are all error nodes.
Until a valid report is found, construct a bug path, which is yet another
ExplodedGraph, that is linear from a given error node to the root of the graph.
Run all visitors on the constructed bug path. If in this process the report got
invalidated, start over from step 2.
Checker silencing used to kick in after all of these. Now it does before any of
them :^)

Differential Revision: https://reviews.llvm.org/D102914

Change-Id: Ice42939304516f2bebd05a1ea19878b89c96a25d
The file was addedclang/test/Analysis/silence-checkers.cpp
The file was modifiedclang/lib/StaticAnalyzer/Core/BugReporter.cpp
The file was removedclang/test/Analysis/silence-checkers-malloc.cpp
Commit 873308fd8c96a54f0024251425daac1b78f70119 by mydeveloperday
[Format] Fix incorrect pointer/reference detection

https://llvm.org/PR50568

When an overloaded operator is called, its argument must be an
expression.

Before:
    void f() { a.operator()(a *a); }

After:
    void f() { a.operator()(a * a); }

Reviewed By: HazardyKnusperkeks, curdeius, MyDeveloperDay

Differential Revision: https://reviews.llvm.org/D103678
The file was modifiedclang/lib/Format/TokenAnnotator.cpp
The file was modifiedclang/unittests/Format/FormatTest.cpp
Commit 80a403348b0f4f5429c40816bf02ae37bd2e85a1 by flo
[VPlan] Support PHIs as LastInst when inserting scalars in ::get().

At the moment, we create insertelement instructions directly after
LastInst when inserting scalar values in a vector in
VPTransformState::get.

This results in invalid IR when LastInst is a phi, followed by another
phi. In that case, the new instructions should be inserted just after
the last PHI node in the block.

At the moment, I don't think the problematic case can be triggered, but
it can happen once predicate regions are merged and multiple
VPredInstPHI recipes are in the same block (D100260).

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D104188
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Commit 9b1085604ecf3d2d1a416ee658bca981af133128 by tomasz.miasko
[Demangle] Support Rust v0 mangling scheme in llvm::demangle

The llvm::demangle is currently used by llvm-objdump and llvm-readobj,
so this effectively adds support for Rust v0 mangling to those
applications.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D104340
The file was modifiedllvm/lib/Demangle/Demangle.cpp
The file was modifiedllvm/unittests/Demangle/DemangleTest.cpp
Commit fda8b4714e05c68deee469970cb6f7f7ea8b32b7 by david.green
[InterleaveAccess] Copy fast math flags when adjusting binary operators in interleave access pass

The Interleave Access pass will convert shuffle(binop(load, load)) to
binop(shuffle(load), shuffle(load)), in order to create more
interleaving load patterns (VLD2/3/4) that might have been messed up by
instcombine. As shown in D104247 we were missing copying IR flags to the
new instruction though, which should just be kept the same as the
original instruction.

Differential Revision: https://reviews.llvm.org/D104255
The file was modifiedllvm/lib/CodeGen/InterleavedAccessPass.cpp
The file was modifiedllvm/test/Transforms/InterleavedAccess/AArch64/binopshuffles-inseltpoison.ll
The file was modifiedllvm/include/llvm/IR/InstrTypes.h
The file was modifiedllvm/test/Transforms/InterleavedAccess/AArch64/binopshuffles.ll
Commit 05e95d2dd74973dd5163b7d44828fac61e416452 by 1.int32
[clang][AST] Set correct DeclContext in ASTImporter lookup table for template params.

Template parameters are created in ASTImporter with the translation unit as DeclContext.
The DeclContext is later updated (by the create function of template classes).
ASTImporterLookupTable was not updated after these changes of the DC. The patch
adds update of the DeclContext in ASTImporterLookupTable.

Reviewed By: martong

Differential Revision: https://reviews.llvm.org/D103792
The file was modifiedclang/unittests/AST/ASTImporterTest.cpp
The file was modifiedclang/lib/AST/ASTImporter.cpp
Commit fed1503e855a1e3cf936fa0866f099bf1c8c9416 by fraser
[RISCV][VP] Lower FP VP ISD nodes to RVV instructions

With the exception of `frem`, this patch supports the current set of VP
floating-point binary intrinsics by lowering them to to RVV instructions. It
does so by using the existing `RISCVISD *_VL` custom nodes as an intermediate
layer. Both scalable and fixed-length vectors are supported by using this
method.

The `frem` node is unsupported due to a lack of available instructions. For
fixed-length vectors we could scalarize but that option is not (currently)
available for scalable-vector types. The support is intentionally left out so
it equivalent for both vector types.

The matching of vector/scalar forms is currently lacking, as scalable vector
types do not lower to the custom `VFMV_V_F_VL` node. We could either make
floating-point scalable vector splats lower to this node, or support the
matching of multiple kinds of splat via a `ComplexPattern`, much like we do for
integer types.

Reviewed By: rogfer01

Differential Revision: https://reviews.llvm.org/D104237
The file was addedllvm/test/CodeGen/RISCV/rvv/fixed-vectors-vfsub-vp.ll
The file was addedllvm/test/CodeGen/RISCV/rvv/fixed-vectors-vfmul-vp.ll
The file was addedllvm/test/CodeGen/RISCV/rvv/vfdiv-vp.ll
The file was addedllvm/test/CodeGen/RISCV/rvv/vfrdiv-vp.ll
The file was addedllvm/test/CodeGen/RISCV/rvv/vfrsub-vp.ll
The file was addedllvm/test/CodeGen/RISCV/rvv/vfmul-vp.ll
The file was addedllvm/test/CodeGen/RISCV/rvv/vfadd-vp.ll
The file was addedllvm/test/CodeGen/RISCV/rvv/fixed-vectors-vfrdiv-vp.ll
The file was addedllvm/test/CodeGen/RISCV/rvv/fixed-vectors-vfadd-vp.ll
The file was addedllvm/test/CodeGen/RISCV/rvv/vfsub-vp.ll
The file was modifiedllvm/lib/Target/RISCV/RISCVISelLowering.cpp
The file was addedllvm/test/CodeGen/RISCV/rvv/fixed-vectors-vfdiv-vp.ll
The file was addedllvm/test/CodeGen/RISCV/rvv/fixed-vectors-vfrsub-vp.ll
Commit dcd23d875a7e3750903ca4ec865508544757dd99 by sjoerd.meijer
[FuncSpec] Don't specialise functions with attribute NoDuplicate.

Differential Revision: https://reviews.llvm.org/D104378
The file was modifiedllvm/lib/Transforms/IPO/FunctionSpecialization.cpp
The file was addedllvm/test/Transforms/FunctionSpecialization/function-specialization-nodup.ll
Commit 23cdf7b6ed9781040ef7923372247ce30b250f29 by zinenko
[mlir] separable registration of operation interfaces

This is similar to attribute and type interfaces and mostly the same mechanism
(FallbackModel / ExternalModel, ODS generation). There are minor differences in
how the concept-based polymorphism is implemented for operations that are
accounted for by ODS backends, and this essentially adds a test and exposes the
API.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D104294
The file was modifiedmlir/include/mlir/IR/OperationSupport.h
The file was modifiedmlir/include/mlir/IR/OpDefinition.h
The file was modifiedmlir/test/lib/Dialect/Test/TestInterfaces.td
The file was modifiedmlir/unittests/IR/InterfaceAttachmentTest.cpp
The file was modifiedmlir/lib/IR/MLIRContext.cpp
The file was modifiedmlir/docs/Interfaces.md
Commit d7550e5d105f998ea34bd6c51c03d37a8c546025 by martin
[libcxx] Fix a case of -Wundef warnings regarding _POSIX_TIMERS

Differential Revision: https://reviews.llvm.org/D104372
The file was modifiedlibcxx/src/chrono.cpp
Commit 4fe3d5248dfae0a864f0cf0c77d10c4a966f05a9 by martin
[llvm-dlltool] [test] Test both short and long forms of options. NFC.

Differential Revision: https://reviews.llvm.org/D104213
The file was modifiedllvm/test/tools/llvm-dlltool/coff-noname.def
Commit 08be746728d7de59b045681a4a0f6567f14adea3 by martin
[llvm-dlltool] [test] Remove superfluous --coff-exports option to llvm-readobj. NFC.

The --coff-exports option to llvm-readobj prints the exported symbols
from a DLL/EXE, it doesn't do anything with regards to an import
library.

Differential Revision: https://reviews.llvm.org/D104214
The file was modifiedllvm/test/tools/llvm-dlltool/coff-exports.def
Commit 675d52bc46ff7e618ffa2fb282d031e387e3a114 by martin
[llvm-dlltool] [test] Add a testcase for all machine option types. NFC.

The existing tests only test that some options (but not e.g. arm)
are accepted, but it doesn't test their functional effect of
affecting the generated object files.

Differential Revision: https://reviews.llvm.org/D104215
The file was addedllvm/test/tools/llvm-dlltool/machine-opt.def
Commit ca56b33daf6781a248750b6d538cef84fdae0d1b by martin
[llvm-dlltool] Imply the target arch from a tool triple prefix

Also use the default LLVM target as default for dlltool. This
matches how GNU dlltool behaves; it is compiled with one default
target, which is used if no option is provided.

Extend the anonymous namespace in the implementation file instead
of using static functions.

Based on a patch by Mateusz Mikuła.

The effect of the default LLVM target, if neither the -m option
nor a tool triple prefix is provided, isn't tested, as we can't
make assumptions about what it is set to.

(We could make the default be forced to one of the four supported
architectures if the default triple is another arch, and then just
test that llvm-dlltool without an -m option is able to produce an
import library, without checking the actual architecture though.)

Differential Revision: https://reviews.llvm.org/D104212
The file was addedllvm/test/tools/llvm-dlltool/triple-prefix.def
The file was modifiedllvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
Commit ceee35e3e4bf9729e1aae9bfadd6d25bfe3769ee by martin
[LLD] [COFF] Remove a stray duplicate comment. NFC.

The following class isn't part of the export table; there's a
second correctly placed comment about the things that actually
belong to the export table.
The file was modifiedlld/COFF/DLL.cpp
Commit 5355b8c6318c194ff15241b7a3217a51fc1a644b by ikudrin
[ELF] Restore arm-branch.s test

After D77330, the comments are inconsistent with the disassembled code.
As the value of `far` has been changed, a thunk to reach it is now
generated, and target addresses of branch instructions are different
from what was initially expected.

The patch fixes that and makes the test closer to what it was originally.

Differential Revision: https://reviews.llvm.org/D104286
The file was modifiedlld/test/ELF/arm-branch.s
The file was modifiedlld/test/ELF/Inputs/far-arm-abs.s
The file was modifiedlld/test/ELF/Inputs/far-long-arm-abs.s
Commit b18f30fb2dd157e5fef91d9327fd12b8965e7e0c by fmayer
[NFC] test commit, fix namespace ending comment.
The file was modifiedcompiler-rt/lib/hwasan/hwasan_thread_list.cpp
The file was modifiedcompiler-rt/lib/hwasan/hwasan_thread_list.h
Commit 1a4af2e45ee59cff3d577986b9b7f3f5bd5ab01f by jperier
[flang] preserve symbol in DescriptorInquiry

Do not use ultimate symbols in DescriptorInquiry. Using the ultimate
symbol may lead to issues later for at least two reasons:

- The original symbols may have volatile/asynchronous attributes that
  the ultimate may not have. Later phases working on the DescriptorInquiry
  would then not apply potential care required by these attributes.
- HostAssociatedDetails symbols are used by OpenMP for symbols with
  special OpenMP attributes inside OpenMP region (e.g variables with
  private attribute), so it is very important to preserve this
  aspect in the DescriptorInquiry, that would otherwise apply on the
  symbol outside of the region.

Differential Revision: https://reviews.llvm.org/D104385
The file was modifiedflang/lib/Evaluate/variable.cpp
The file was modifiedflang/lib/Evaluate/shape.cpp
Commit 69b0ed9a0a6aeab0b1c93d0a76c66a63c1d6f410 by aqjune
[InstCombine] Fix miscompile on GEP+load to icmp fold (PR45210)

As noted in PR45210: https://bugs.llvm.org/show_bug.cgi?id=45210
...the bug is triggered as Eli say when sext(idx) * ElementSize overflows.

```
   // assume that GV is an array of 4-byte elements
   GEP = gep GV, 0, Idx // this is accessing Idx * 4
   L = load GEP
   ICI = icmp eq L, value
 =>
   ICI = icmp eq Idx, NewIdx
```

The foldCmpLoadFromIndexedGlobal function simplifies GEP+load operation to icmp.
And there is a problem because Idx * ElementSize can overflow.

Let's assume that the wanted value is at offset 0.
Then, there are actually four possible values for Idx to match offset 0: 0x00..00, 0x40..00, 0x80..00, 0xC0..00.
We should return true for all these values, but currently, the new icmp only returns true for 0x00..00.

This problem can be solved by masking off (trailing zeros of ElementSize) bits from Idx.

```
   ...
 =>
   Idx' = and Idx, 0x3F..FF
   ICI = icmp eq Idx', NewIdx
```

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D99481
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
The file was modifiedllvm/test/Transforms/InstCombine/load-cmp.ll
Commit 18070723ef5cfd7d58bc296fedb67b5e3a88908f by fmayer
[hwasan] Do not use short granule tags as poison tags.

Short granule tags as poison cause a UaF to read the referenced
memory to retrieve the tag, and means we do not detect the UaF
if the last granule's tag is still around.

This only increases the change of not catching a UaF from
0.39 % (1 / 256) to 0.42 % (1 / (256 - 17)).

Reviewed By: eugenis

Differential Revision: https://reviews.llvm.org/D104304
The file was modifiedcompiler-rt/lib/hwasan/hwasan_allocator.cpp
Commit ccc0f777f6967c557ba066070f40e5fac9e0127d by fmayer
[hwasan] Improve report for addresses within regions.

Before: ADDR is located -320 bytes to the right of 1072-byte region
After: ADDR is located 752 bytes inside 1072-byte region

Reviewed By: eugenis, walli99

Differential Revision: https://reviews.llvm.org/D104412
The file was addedcompiler-rt/test/hwasan/TestCases/heap-buffer-overflow-into.c
The file was modifiedcompiler-rt/lib/hwasan/hwasan_report.cpp
Commit d7e891213444e2990397c623fb0250a470421fce by zinenko
[mlir] Enable delayed registration of attribute/operation/type interfaces

This functionality is similar to delayed registration of dialect interfaces. It
allows external interface models to be registered before the dialect containing
the attribute/operation/type interface is loaded, or even before the context is
created.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D104397
The file was modifiedmlir/include/mlir/IR/Dialect.h
The file was modifiedmlir/include/mlir/Support/InterfaceSupport.h
The file was modifiedmlir/include/mlir/IR/AttributeSupport.h
The file was modifiedmlir/lib/IR/Dialect.cpp
The file was modifiedmlir/lib/IR/MLIRContext.cpp
The file was modifiedmlir/unittests/IR/InterfaceAttachmentTest.cpp
The file was modifiedmlir/include/mlir/IR/TypeSupport.h
Commit 983ed1b58ef9d0f97c9cec2876f631e47609d437 by david.spickett
[lldb] Set return object failed status even if error string is empty

The idea is now that AppendError<...> will set eReturnStatusFailed
for you so you don't have to call SetStatus again.

Previously if the error message was empty, the status wouldn't
be set.

I don't think there are any sitautions where the message is in
fact empty but it potentially could be depending on where
we get the string from.

So let's set the status up front then return early if the message is empty.

Reviewed By: teemperor

Differential Revision: https://reviews.llvm.org/D104380
The file was modifiedlldb/source/Interpreter/CommandReturnObject.cpp
Commit 7a580f3c28cf47a7e489faa1fc1ab7b88d9a5dbd by david.spickett
[lldb] Remove redundant calls to set eReturnStatusFailed

Since https://reviews.llvm.org/D103701 AppendError<...>
sets this for you.

This change includes all of the non-command uses.

Some uses remain where it's either tricky to reason about
the logic, or they aren't paired with AppendError calls.

Reviewed By: teemperor

Differential Revision: https://reviews.llvm.org/D104379
The file was modifiedlldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
The file was modifiedlldb/source/Breakpoint/BreakpointIDList.cpp
The file was modifiedlldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
The file was modifiedlldb/source/Interpreter/Options.cpp
The file was modifiedlldb/source/Interpreter/ScriptInterpreter.cpp
The file was modifiedlldb/source/Interpreter/CommandInterpreter.cpp
The file was modifiedlldb/source/Plugins/Process/minidump/ProcessMinidump.cpp
The file was modifiedlldb/source/API/SBCommandInterpreter.cpp
The file was modifiedlldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
The file was modifiedlldb/source/Interpreter/CommandAlias.cpp
The file was modifiedlldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
Commit 6b6338195c1b1a32a62adb37204022c1760eb899 by zinenko
[mlir] define a customized DEBUG_TYPE in InterfaceSupport.h
The file was modifiedmlir/include/mlir/Support/InterfaceSupport.h
Commit 0bd5bbb31e0345aed8d029d70a4197aed53a3cd5 by flo
[X86] Add test showing binary differences with -x86-pad-for-align.

This patch adds a test case showing how a single extra .loc can cause
binary differences when using -x86-pad-for-align=true.

The issue has been discussed in D94542, PR42138, PR48742.
The file was addedllvm/test/MC/X86/pad-for-align-debug.s
The file was addedllvm/test/MC/X86/Inputs/pad-align-without-debug.s
The file was addedllvm/test/MC/X86/Inputs/pad-align-with-debug.s
Commit 8d64ed854449467a3a5fc4450c71a4525a24c4be by gchatelet
[libc] Generate one benchmark per implementation

We now generate as many benchmarks as there are implementations.

Differential Revision: https://reviews.llvm.org/D102156
The file was modifiedlibc/benchmarks/CMakeLists.txt
The file was modifiedlibc/benchmarks/LibcMemoryBenchmarkMain.cpp
Commit aa6e8e9572d54d8fdcd6e8789ea7076640011066 by flo
[X86] Check using default in test added in 0bd5bbb31e0345ae.

Make sure llvm-mc is invariant with respect to debug locations in the
test (checks update to use the -x86-pad-for-align default value)
The file was modifiedllvm/test/MC/X86/pad-for-align-debug.s
Commit 5b3cb31edbcf99ef15c2de2d29ad0ff9927ba136 by pifon
[mlir][linalg] Purge linalg.indexed_generic.

Differential Revision: https://reviews.llvm.org/D104449
The file was modifiedmlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Generalization.cpp
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/FusionOnTensors.cpp
The file was modifiedmlir/lib/Conversion/LinalgToStandard/LinalgToStandard.cpp
The file was modifiedmlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.td
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Bufferize.cpp
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
The file was modifiedmlir/test/Dialect/Linalg/canonicalize.mlir
The file was modifiedmlir/test/Dialect/Linalg/canonicalize-duplicate-inputs.mlir
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Tiling.cpp
The file was modifiedmlir/test/Dialect/Linalg/invalid.mlir
The file was modifiedmlir/test/Dialect/Linalg/roundtrip.mlir
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Loops.cpp
Commit cdb4fcf9a19ca35b50754791f3986337046d9406 by llvm-dev
[X86] combineSelect - refactor MIN/MAX detection code to make it easier to add additional select(setcc,x,y) folds. NFCI.

I need to add some additional handling to address some of the regressions from D101074
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
Commit c878d03d60fc91ecad661f4435ce70bf276f3bdb by benny.kra
[mlir] Split things dependent on LLVM_DEBUG into a .cpp file

LLVM_DEBUG in headers is awkward, better avoid it. DEBUG_TYPE in a
header results in a lot of macro redefinition warnings.
The file was modifiedmlir/lib/Support/CMakeLists.txt
The file was modifiedmlir/include/mlir/Support/InterfaceSupport.h
The file was addedmlir/lib/Support/InterfaceSupport.cpp
Commit 3f596842e3d25009c4d62c75e5b24b515bde8e93 by sjoerd.meijer
[FuncSpec] Precommit test: don't specialise funcs with NoDuplicate instrs. NFC.
The file was addedllvm/test/Transforms/FunctionSpecialization/function-specialization-nodup2.ll
Commit eaf60a4411f79a1addfa6c5d8ddf4b47e082881e by david.spickett
[lldb] Remove redundant calls to set eReturnStatusFailed

This is part 2, covering the commands source.

Some uses remain where it's tricky to see what the
logic is or they are not used with AppendError.

Reviewed By: teemperor

Differential Revision: https://reviews.llvm.org/D104448
The file was modifiedlldb/source/Commands/CommandObjectHelp.cpp
The file was modifiedlldb/source/Commands/CommandObjectProcess.cpp
The file was modifiedlldb/source/Commands/CommandObjectBreakpoint.cpp
The file was modifiedlldb/source/Commands/CommandObjectTrace.cpp
The file was modifiedlldb/source/Commands/CommandObjectDisassemble.cpp
The file was modifiedlldb/source/Commands/CommandObjectScript.cpp
The file was modifiedlldb/source/Commands/CommandObjectFrame.cpp
The file was modifiedlldb/source/Commands/CommandObjectQuit.cpp
The file was modifiedlldb/source/Commands/CommandObjectSettings.cpp
The file was modifiedlldb/source/Commands/CommandObjectBreakpointCommand.cpp
The file was modifiedlldb/source/Commands/CommandObjectReproducer.cpp
The file was modifiedlldb/source/Commands/CommandObjectSource.cpp
The file was modifiedlldb/source/Commands/CommandObjectPlugin.cpp
The file was modifiedlldb/source/Commands/CommandObjectTarget.cpp
The file was modifiedlldb/source/Commands/CommandObjectPlatform.cpp
The file was modifiedlldb/source/Commands/CommandObjectMultiword.cpp
The file was modifiedlldb/source/Commands/CommandObjectStats.cpp
The file was modifiedlldb/source/Commands/CommandObjectCommands.cpp
The file was modifiedlldb/source/Commands/CommandObjectMemory.cpp
The file was modifiedlldb/source/Commands/CommandObjectExpression.cpp
The file was modifiedlldb/source/Commands/CommandObjectLog.cpp
The file was modifiedlldb/source/Commands/CommandObjectThreadUtil.cpp
The file was modifiedlldb/source/Commands/CommandObjectType.cpp
The file was modifiedlldb/source/Commands/CommandObjectThread.cpp
The file was modifiedlldb/source/Commands/CommandObjectGUI.cpp
The file was modifiedlldb/source/Commands/CommandObjectApropos.cpp
The file was modifiedlldb/source/Commands/CommandObjectWatchpoint.cpp
The file was modifiedlldb/source/Commands/CommandObjectRegister.cpp
The file was modifiedlldb/source/Commands/CommandObjectWatchpointCommand.cpp
Commit 7cddf56d608f07b8e49f7e2eeb4a20082611adb6 by pifon
[mlir] Remove linalg.indexed_generic forward decl.
The file was modifiedmlir/include/mlir/Dialect/Linalg/IR/LinalgOps.h
Commit fa1de88f81e9c6db5255ca7c4d0fd25606c5a054 by stephen.tozer
[DebugInfo] Prevent non-determinism when updating DIArgList users of a value

This patch fixes an issue where builds of programs with multiple dbg.values
with DIArgList locations could have non-deterministic output. This issue
was caused by ReplaceableMetadataImpl::getAllArgListUsers, which
returned DIArgList pointers in a random order; the output of this
function would later be used to insert dbg.values, causing the order of
insertion to be non-deterministic. This patch changes getAllArgListUsers
to return pointers in a fixed order.

Differential Revision: https://reviews.llvm.org/D104105
The file was modifiedllvm/lib/IR/Metadata.cpp
Commit fc6ec9b98cf96bca8f68cc65395f861919c06c2f by Chris.Hamilton
[Sema] Fix for PR50741

Fixed crash when doing pointer math on a void pointer.

Also, reworked test to use -verify rather than FileCheck.

Reviewed By: erichkeane

Differential Revision: https://reviews.llvm.org/D104424
The file was modifiedclang/test/Sema/unbounded-array-bounds.c
The file was modifiedclang/lib/Sema/SemaChecking.cpp
Commit e8991caea8690ec2d17b0b7e1c29bf0da6609076 by stephen.tozer
Revert "[DebugInfo] Prevent non-determinism when updating DIArgList users of a value"

Commit caused build errors on buildbots with [-Werror,-Wreturn-std-move]
enabled.

This reverts commit fa1de88f81e9c6db5255ca7c4d0fd25606c5a054.
The file was modifiedllvm/lib/IR/Metadata.cpp
Commit 26f1f6d0deaff4d718e32b8e97ea21968c506b60 by gchatelet
[llvm] fix typo in comment
The file was modifiedllvm/include/llvm/CodeGen/MachineFrameInfo.h
Commit 60a8edf30d297c8c56988c083801ce1cfc41bb6b by kevin.neal
[FPEnv][InstSimplify] Precommit tests for D103169.

In D103169 I'm adding to InstSimplify support for NaN to constrained
intrinsics that have a regular FP IR instruction counterpart. Precommit
the tests for clarity when that ticket lands.
The file was addedllvm/test/Transforms/InstSimplify/X86/fp-nan-strictfp.ll
The file was addedllvm/test/Transforms/InstSimplify/fp-undef-poison-strictfp.ll
Commit 6765b9c3f1192bd63bdcafc92ee8ff5d7b97d90b by hokein.wu
[clangd] Explicitly fail if the file passed to --check is not valid.

Differential Revision: https://reviews.llvm.org/D104455
The file was modifiedclang-tools-extra/clangd/tool/ClangdMain.cpp
Commit 24706cd73cd150543753a2e169c68a2c68da46a1 by jezng
[lld-macho] Avoid force-loading the same archive twice

We need to dedup archive loads (similar to what we do for dylib
loads).

I noticed this issue after building some Swift stuff that used
`-force_load_swift_libs`, as it caused some Swift archives to be loaded
many times.

Reviewed By: #lld-macho, thakis, MaskRay

Differential Revision: https://reviews.llvm.org/D104353
The file was modifiedlld/test/MachO/force-load.s
The file was modifiedlld/test/MachO/archive.s
The file was modifiedlld/MachO/Driver.cpp
Commit dee2c76b4c46e71903e3d86ab7555a80d51d1288 by stephen.tozer
Reapply "[DebugInfo] Prevent non-determinism when updating DIArgList users of a value"

Reapply the commit which previously caused build failures due to the
mismatched template arguments between the return type and the returned
SmallVector.

This reverts commit e8991caea8690ec2d17b0b7e1c29bf0da6609076.
The file was modifiedllvm/include/llvm/IR/Metadata.h
The file was modifiedllvm/lib/IR/Metadata.cpp
Commit bbea64250f65480d787e1c5ff45c4de3ec2dcda8 by Saleem Abdulrasool
RISCV: adjust handling of relocation emission for RISCV

This re-architects the RISCV relocation handling to bring the
implementation closer in line with the implementation in binutils.  We
would previously aggressively resolve the relocation.  With this
restructuring, we always will emit a paired relocation for any symbolic
difference of the type of S±T[±C] where S and T are labels and C is a
constant.

GAS has a special target hook controlled by `RELOC_EXPANSION_POSSIBLE`
which indicates that a fixup may be expanded into multiple relocations.
This is used by the RISCV backend to always emit a paired relocation -
either ADD[WIDTH] + SUB[WIDTH] for text relocations or SET[WIDTH] +
SUB[WIDTH] for a debug info relocation.  Irrespective of whether linker
relaxation support is enabled, symbolic difference is always emitted as
a paired relocation.

This change also sinks the target specific behaviour down into the
target specific area rather than exposing it to the shared relocation
handling.  In the process, we also sink the "special" handling for debug
information down into the RISCV target.  Although this improves the path
for the other targets, this is not necessarily entirely ideal either.
The changes in the debug info emission could be done through another
type of hook as this functionality would be required by any other target
which wishes to do linker relaxation.  However, as there are no other
targets in LLVM which currently do this, this is a reasonable thing to
do until such time as the code needs to be shared.

Improve the handling of the relocation (and add a reduced test case from
the Linux kernel) to ensure that we handle complex expressions for
symbolic difference.  This ensures that we correct relocate symbols with
the adddends normalized and associated with the addition portion of the
paired relocation.

This change also addresses some review comments from Alex Bradbury about
the relocations meant for use in the DWARF CFA being named incorrectly
(using ADD6 instead of SET6) in the original change which introduced the
relocation type.

This resolves the issues with the symbolic difference emission
sufficiently to enable building the Linux kernel with clang+IAS+lld
(without linker relaxation).

Resolves PR50153, PR50156!
Fixes: ClangBuiltLinux/linux#1023, ClangBuiltLinux/linux#1143

Reviewed By: nickdesaulniers, maskray

Differential Revision: https://reviews.llvm.org/D103539
The file was modifiedllvm/test/MC/RISCV/hilo-constaddr-expr.s
The file was modifiedllvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp
The file was modifiedllvm/include/llvm/MC/MCDwarf.h
The file was modifiedllvm/test/CodeGen/RISCV/fixups-relax-diff.ll
The file was modifiedllvm/include/llvm/MC/MCFixup.h
The file was modifiedllvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.h
The file was modifiedllvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
The file was modifiedllvm/test/CodeGen/RISCV/fixups-diff.ll
The file was modifiedllvm/test/MC/RISCV/fde-reloc.s
The file was addedllvm/test/MC/RISCV/reloc-addend.s
The file was modifiedllvm/include/llvm/MC/MCAsmBackend.h
The file was modifiedllvm/lib/Target/RISCV/MCTargetDesc/RISCVMCExpr.cpp
The file was modifiedllvm/lib/Target/RISCV/MCTargetDesc/RISCVMCTargetDesc.cpp
The file was modifiedllvm/test/MC/RISCV/fixups-expr.s
The file was modifiedllvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp
The file was modifiedllvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.h
The file was modifiedllvm/lib/MC/MCObjectStreamer.cpp
The file was modifiedllvm/lib/Target/RISCV/MCTargetDesc/RISCVFixupKinds.h
The file was modifiedllvm/lib/MC/MCAsmBackend.cpp
The file was modifiedllvm/lib/MC/MCDwarf.cpp
The file was modifiedllvm/lib/MC/MCAssembler.cpp
The file was modifiedllvm/lib/MC/MCExpr.cpp
The file was addedllvm/test/MC/RISCV/scoped-relaxation.s
Commit 249d9b051f92d1a323b3dd477f95133648df4774 by kda
Revert "Remove obsolete call to AsyncSignalSafeLazyInitiFakeStack."

This reverts commit 07481b37961f5b9a670c924367d2ead2e3c32b86.

Differential Revision: https://reviews.llvm.org/D104469
The file was modifiedcompiler-rt/lib/asan/asan_thread.cpp
Commit ac35ed5d34876e3b72442e61543233bd3ac6e632 by peter
[compiler-rt][hwasan]: undefine new/delete operators with alignment on Android.

This is to fix build on Android. And we don't want to intercept more new/delete operators on Android.

Differential Revision: https://reviews.llvm.org/D104313
The file was modifiedcompiler-rt/lib/hwasan/hwasan_new_delete.cpp
Commit 5b1079f6411b7d978550c6bf37e87674d137f1c4 by spatel
[InstCombine][x86] add tests for complex vector shift value tracking; NFC

https://llvm.org/PR50123
The file was modifiedllvm/test/Transforms/InstCombine/X86/x86-vector-shifts.ll
Commit 61196f855c395b14bffd7c9b1ba29194577e67f6 by spatel
[InstSimplify] add tests for computeKnownBits of shift-with-bitcast op; NFC
The file was modifiedllvm/test/Transforms/InstSimplify/shift-knownbits.ll
Commit 53f5f14136fbc75e42e18374f3ace05a262a18d3 by hokein.wu
fix an -Wunused-variable warning in release built, NFC
The file was modifiedllvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
Commit e70d4994ea9eb44ba5a86c5073ac83cf500aabdd by Saleem Abdulrasool
test: clean up some of the RISCV tests (NFC)

This addresses some post-commit comments from jrtc27 to make the tests
easier to process.
The file was modifiedllvm/test/CodeGen/RISCV/fixups-diff.ll
The file was modifiedllvm/test/CodeGen/RISCV/fixups-relax-diff.ll
Commit a22c55c69bcdef193715fd6e1f92a329649bc153 by cjdb
[libcxx][iwyu] 🎨 adds more headers to IWYU

A few slipped through the cracks because D104175 and D104170 didn't
concern themselves with newer commits.

Differential Revision: https://reviews.llvm.org/D104414
The file was modifiedlibcxx/include/__ranges/empty_view.h
The file was modifiedlibcxx/include/__ranges/subrange.h
The file was modifiedlibcxx/include/__ranges/ref_view.h
Commit d827af03bc1d12e813ef207d2a897998ebf64ca1 by cjdb
[libcxx][module-map] 🎨 updates module map to account for ranges headers

Corresponding module map update for D104414, split out for rollback
reasons.

Differential Revision: https://reviews.llvm.org/D104415
The file was modifiedlibcxx/include/module.modulemap
Commit 22911585bb3811767a616c20946290b8e9a988d9 by gusss
[mlir][sparse] Add Matricized Tensor Times Khatri-Rao Product (MTTKRP) integration test

See this documentation from taco:
http://tensor-compiler.org/docs/data_analytics/index.html

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D104417
The file was addedmlir/test/Integration/data/mttkrp_b.tns
The file was modifiedmlir/test/CMakeLists.txt
The file was addedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_mttkrp.mlir
Commit 734d688fbce8a453aa61764b9b5a43b26455dc0d by stilis
[clang] Fix a race condition in the build of clangInterpreter

The library depends on Attributes.inc, so it has to depend on the intrinsics_gen target

Reviewed By: v.g.vassilev

Differential Revision: https://reviews.llvm.org/D104311
The file was modifiedclang/lib/Interpreter/CMakeLists.txt
Commit f27e4548fc42876f66dac260ca3b6df0d5fd5fd6 by gkm
[lld-macho] Implement ICF

ICF = Identical C(ode|OMDAT) Folding

This is the LLD ELF/COFF algorithm, adapted for MachO. So far, only `-icf all` is supported. In order to support `-icf safe`, we will need to port address-significance tables (`.addrsig` directives) to MachO, which will come in later diffs.

`check-{llvm,clang,lld}` have 0 regressions for `lld -icf all` vs. baseline ld64.

We only run ICF on `__TEXT,__text` for reasons explained in the block comment in `ConcatOutputSection.cpp`.

Here is the perf impact for linking `chromium_framekwork` on a Mac Pro (16-core Xeon W) for the non-ICF case vs. pre-ICF:
```
    N           Min           Max        Median           Avg        Stddev
x  20          4.27          4.44          4.34         4.349   0.043029977
+  20          4.37          4.46         4.405        4.4115   0.025188761
Difference at 95.0% confidence
        0.0625 +/- 0.0225658
        1.43711% +/- 0.518873%
        (Student's t, pooled s = 0.0352566)
```

Reviewed By: #lld-macho, int3

Differential Revision: https://reviews.llvm.org/D103292
The file was addedlld/MachO/ICF.h
The file was modifiedlld/test/MachO/Inputs/MacOSX.sdk/usr/lib/libSystem.tbd
The file was modifiedlld/MachO/Config.h
The file was addedlld/test/MachO/icf.s
The file was modifiedlld/MachO/ConcatOutputSection.h
The file was addedlld/test/MachO/icf-scale.s
The file was modifiedlld/MachO/Driver.cpp
The file was modifiedlld/MachO/Symbols.cpp
The file was modifiedlld/MachO/Options.td
The file was modifiedlld/MachO/ConcatOutputSection.cpp
The file was modifiedlld/MachO/InputSection.cpp
The file was modifiedlld/MachO/InputFiles.cpp
The file was addedlld/MachO/ICF.cpp
The file was modifiedlld/MachO/CMakeLists.txt
The file was modifiedlld/MachO/UnwindInfoSection.cpp
The file was modifiedlld/MachO/Writer.cpp
The file was modifiedlld/MachO/InputSection.h
The file was modifiedlld/MachO/SyntheticSections.cpp
The file was modifiedlld/MachO/UnwindInfoSection.h
The file was addedlld/test/MachO/icf-options.s
Commit 00553a32330822fd936dcfd4830556468aaf918c by llvmgnsyncbot
[gn build] Port f27e4548fc42
The file was modifiedllvm/utils/gn/secondary/lld/MachO/BUILD.gn
Commit 4e2aee8d3bab6010420d9be96480f1d8ae0f35c1 by jasonliu
[AIX] Remove --as-needed passing into aix linker

Summary:
AIX does not support --as-needed linker options. Remove that option from
aix linker when -lunwind is needed.
For unwinder library, nothing special is needed because by default aix
linker has the as-needed effect for library that's an archive (which is
the case for libunwind on AIX).

Reviewed By: daltenty

Differential Revision: https://reviews.llvm.org/D104314
The file was modifiedclang/test/Driver/aix-ld.c
The file was modifiedclang/lib/Driver/ToolChains/CommonArgs.cpp
Commit 37dfc467ac807bde4f221edbf304d9a46c9789b2 by lebedev.ri
[NFC] LoopVectorizationCostModel::getMaximizedVFForTarget(): clarify debug msg

This really isn't talking about vectors in general,
but only about either fixed or scalable vectors,
and it's pretty confusing to see it state
that there aren't any vectors :)
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Commit 69caacc626f7dbbb9223b370952fcf5660e242dc by lebedev.ri
[X86] AMD Zen 3: don't confuse shift and shuffle, NFC

These proc res groups occupy the exact same pipes,
so this doesn't affect the modelling,
but it's confusing nontheless.
The file was modifiedllvm/lib/Target/X86/X86ScheduleZnver3.td
Commit d02bf362dcf8d1488dfcf970c12c6047885a5f06 by andrew.ng
[llvm-symbolizer][docs] Update example for --verbose in the guide

Differential Revision: https://reviews.llvm.org/D104128
The file was modifiedllvm/docs/CommandGuide/llvm-symbolizer.rst
Commit 366df11a35392c946678f1af94038945c23f06c8 by vyng
[lld-macho] Rework mergeFlag to behave closer to what ld64 does.

Details:
I've been getting a few weird errors similar to the following from our internal tests:

```
ld64.lld.darwinnew: error: Cannot merge section __eh_frame (type=0x0) into __eh_frame (type=0xB): inconsistent types
ld64.lld.darwinnew: error: Cannot merge section __eh_frame (flags=0x0) into __eh_frame (flags=0x6800000B): strict flags differ
ld64.lld.darwinnew: error: Cannot merge section __eh_frame (type=0x0) into __eh_frame (type=0xB): inconsistent types
ld64.lld.darwinnew: error: Cannot merge section __eh_frame (flags=0x0) into __eh_frame (flags=0x6800000B): strict flags differ
```

Differential Revision: https://reviews.llvm.org/D103971
The file was modifiedlld/MachO/ConcatOutputSection.cpp
The file was modifiedlld/test/MachO/builtin-rename.s
The file was modifiedlld/MachO/ConcatOutputSection.h