FailedChanges

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

Summary

  1. Using lld for x86_64-fedora-clang builder (details)
Commit 974fdcc1c296dd93736a578c5ab921fb4415784c by kkleine
Using lld for x86_64-fedora-clang builder
The file was modifiedbuildbot/osuosl/master/config/builders.py

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

Summary

  1. [JSON] Add ObjectMapper::mapOptional to validate optional data. (details)
  2. [clangd] Validate optional fields more strictly. (details)
  3. [mlir][Linalg] Add named Linalg ops on tensor to buffer support. (details)
  4. [mlir][Linalg] NFC - Automate the printing of canonicalizers and folders for nameds Linalg ops. (details)
  5. [nfc] [lldb] Simplify calling SymbolFileDWARF::GetDWARFCompileUnit (details)
  6. [clangd] Stop capturing trace args if the tracer doesn't need them. (details)
  7. [lldb/Utility] Introduce UnimplementedError (details)
  8. [VE] Support copysign math function (details)
  9. [mlir][gpu] Adding gpu runtime wrapper functions for async execution. (details)
  10. [clangd][NFC] Fix formatting in ClangdLSPServer (details)
  11. [clang-tidy] Fix IncludeInserter usage example in a comment. (details)
  12. [DAG][ARM][MIPS][RISCV] Improve funnel shift promotion to use 'double shift' patterns (details)
  13. [clangd] Introduce MemoryTrees (details)
  14. [clangd] Add a metric for tracking memory usage (details)
  15. [clangd] Introduce memory dumping to FileIndex, FileSymbols and BackgroundIndex (details)
  16. [clangd] Introduce memory usage dumping to TUScheduler, for Preambles and ASTCache (details)
  17. [clangd] Add a helper for exposing tracer status (details)
  18. [clangd] Record memory usages after each notification (details)
  19. [gn build] Port f9317f7bf6b (details)
  20. [NFC] Remove redundant isFullSet checks (details)
  21. Dump decl when the test matcher fails. (details)
  22. [clangd] Disable a failure TopLevelDecls test. (details)
  23. [lldb] Note difference in vFile:pread/pwrite format for lldb (details)
  24. [InstCombine] matchFunnelShift - canonicalize to OR(SHL,LSHR). NFCI. (details)
  25. [InstCombine] matchFunnelShift - remove shift value commutation. NFCI. (details)
  26. [InstCombine] matchFunnelShift - fold or(shl(a,x),lshr(b,sub(bw,x))) -> fshl(a,b,x) iff x < bw (REAPPLIED) (details)
  27. [AMDGPU] Use @LINE for error checking in gfx10 assembler tests (details)
  28. [SVE] Lower fixed length VECREDUCE_XOR operation (details)
  29. [AMDGPU] Insert waterfall loops for divergent calls (details)
  30. [LoopDeletion] Remove over-eager SCEV verification. (details)
  31. [AMDGPU] Print metadata on error (details)
  32. [NFC][Regalloc] Pass VirtRegMap by reference. (details)
  33. [VPlan] Use operands for printing of VPWidenMemoryInstructionRecipe. (details)
  34. [NFC][MC] Use MCRegister in LiveRangeMatrix (details)
  35. [Tests] Regenerate test checks; NFC (details)
  36. [GlobalISel][KnownBits] Early return on out of bound shift amounts (details)
  37. Revert 1c021c64c "[SCEV] Model ptrtoint(SCEVUnknown) cast not as unknown, but as zext/trunc/self of SCEVUnknown" (details)
  38. [compiler-rt] Suppress -Wunused-result due to ::write when _FORTIFY_SOURCE>0 in glibc (details)
  39. Make likelihood lit test less brittle (details)
  40. [VPlan] Use VPValue def for VPMemoryInstructionRecipe. (details)
  41. Restore "[ThinLTO] Avoid temporaries when loading global decl attachment metadata" (details)
  42. [InstCombine] FoldShiftByConstant - merge equivalent types. NFCI. (details)
  43. [InstCombine] FoldShiftByConstant - create Scalar/Vector constant with ConstantInt::get(). NFCI. (details)
  44. [flang][openacc] Update Loop Construct lowering to use fir::getBase (details)
  45. [flang][openacc] Lower parallel construct (details)
  46. [X86] Support -march=x86-64-v[234] (details)
  47. [sanitizer] Disable fast_unwind_on_malloc as default for arm-linux-gnu (details)
  48. [clangd] Heuristic resolution for dependent type and template names (details)
  49. [InstCombine] FoldShiftByConstant - create Scalar/Vector constant with ConstantInt::get(). NFCI. (details)
  50. [Inliner][NPM] Fix various tests under NPM (details)
  51. [LLDB] Fix 37 tests on Windows (details)
  52. [mlir] fixing typo in parseAttribute that was ignoring caller-specified types (details)
  53. update .txt --> .md links (details)
  54. [Coroutine][Sema] Only tighten the suspend call temp lifetime for final awaiter (details)
  55. [flang][openacc] Lower data construct (details)
  56. [trace] Scaffold "thread trace dump instructions" (details)
  57. [SVE] Fix VBITS_GE_256 typo in fixed-width tests. (details)
  58. Revert "Canonicalize declaration pointers when forming APValues." (details)
  59. [NFC][ScalarEvolution] Add tests with ptrtoint in constant context in loop (details)
  60. Reland "[SCEV] Model ptrtoint(SCEVUnknown) cast not as unknown, but as zext/trunc/self of SCEVUnknown" (details)
  61. [AMDGPU] Correct processor names for gfx1010 and gfx1011 (details)
  62. [gn build] Add libclang_rt.ios.a, libclang_rt.iossim.a to the build (details)
  63. [mlir][Linalg] Temporarily circumvent TensorConstant bufferize bug (details)
  64. [libomptarget][amdgcn] Implement partial barrier (details)
  65. [libunwind] [SEH] Don't interact with foreign exceptions (details)
  66. [LLD] [COFF] Fix a ubsan error in pdb-type-server-missing.yaml (details)
  67. [MinGW][clang-shlib] Build only when LLVM_LINK_LLVM_DYLIB is enabled (details)
  68. [X86] Add more tests for D89178. NFC (details)
  69. [TableGen] Add overload of RecordKeeper::getAllDerivedDefinitions() (details)
  70. DependencyScanning: pull factory function into MinimizedVFS, NFC (details)
  71. [CostModel] get type-based cost for vector intrinsics directly (details)
  72. Ensure TreeTransform considers ParmVarDecls as transformed Decls (details)
  73. Lex: Avoid MemoryBuffer* key in ExcludedPreprocessorDirectiveSkipMapping, NFC (details)
  74. [AArch64] Add tests for 128-bit shift variations. (details)
  75. [mlir] Make Python bindings installable. (details)
  76. [Coroutine] Rename coro-semmetric-transfer.cpp and possibly fix test failure (details)
  77. [BitCodeAnalyzer] Add a few missing TYPE_CODES and MODULE_CODE_COMDAT to GetCodeName (details)
Commit 31a575bbc0fc925c29bcd6fc49b5a100ad22ae63 by sam.mccall
[JSON] Add ObjectMapper::mapOptional to validate optional data.

Currently the idiom for mapping optional fields is:
  ObjectMapper O(Val, P);
  if (!O.map("required1", Out.R1) || !O.map("required2", Out.R2))
    return false;
  O.map("optional1", Out.O1); // ignore result
  return true;

If `optional1` is present but malformed, then we won't detect/report
that error. We may even leave `Out` in an incomplete state while returning true.
Instead, we'd often prefer to ignore `optional1` if it is absent, but otherwise
behave just like map().

Differential Revision: https://reviews.llvm.org/D89128
The file was modifiedllvm/include/llvm/Support/JSON.h
The file was modifiedllvm/unittests/Support/JSONTest.cpp
Commit c2d4280328e4f69fd9e1258196e9dbc8362fce95 by sam.mccall
[clangd] Validate optional fields more strictly.

Differential Revision: https://reviews.llvm.org/D89131
The file was modifiedclang-tools-extra/clangd/Protocol.cpp
Commit 422aaf31daa520899303adaf82ba76743624ee0a by nicolas.vasilache
[mlir][Linalg] Add named Linalg ops on tensor to buffer support.

This revision introduces support for buffer allocation for any named linalg op.
To avoid template instantiating many ops, a new ConversionPattern is created to capture the LinalgOp interface.

Some APIs are updated to remain consistent with MLIR style:
`OwningRewritePatternList * -> OwningRewritePatternList &`
`BufferAssignmentTypeConverter * -> BufferAssignmentTypeConverter &`

Differential revision: https://reviews.llvm.org/D89226
The file was modifiedmlir/tools/mlir-tblgen/RewriterGen.cpp
The file was modifiedmlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp
The file was modifiedmlir/lib/Conversion/GPUToNVVM/LowerGpuOpsToNVVMOps.cpp
The file was modifiedmlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.td
The file was modifiedmlir/test/lib/Transforms/TestBufferPlacement.cpp
The file was modifiedmlir/lib/Transforms/BufferPlacement.cpp
The file was modifiedmlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
The file was modifiedmlir/include/mlir/Dialect/Shape/Transforms/Passes.h
The file was modifiedmlir/include/mlir/Transforms/Bufferize.h
The file was addedmlir/integration_test/Dialect/Linalg/CPU/test-tensor-matmul.mlir
The file was modifiedmlir/lib/Dialect/Shape/Transforms/ShapeTypeConversion.cpp
The file was modifiedmlir/docs/Tutorials/QuickstartRewrites.md
The file was modifiedmlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOpsInterface.td
The file was modifiedmlir/lib/Conversion/GPUToSPIRV/ConvertGPUToSPIRV.cpp
The file was modifiedmlir/test/lib/Dialect/Test/TestPatterns.cpp
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/TensorsToBuffers.cpp
Commit 69d3247f35a7d73af217d9ca33c3731640f3938e by nicolas.vasilache
[mlir][Linalg] NFC - Automate the printing of canonicalizers and folders for nameds Linalg ops.

This revision reduces the number of places that specific information needs to be modified when adding new named Linalg ops.

Differential Revision: https://reviews.llvm.org/D89223
The file was modifiedmlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
The file was modifiedmlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-gen.cpp
Commit 54434dc4dce9d59c4d6cebfd87e5f67e2966573b by jan.kratochvil
[nfc] [lldb] Simplify calling SymbolFileDWARF::GetDWARFCompileUnit

Only SymbolFileDWARF::ParseCompileUnit creates a CompileUnit and it uses
DWARFCompileUnit for that.

Differential Revision: https://reviews.llvm.org/D89165
The file was modifiedlldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h
The file was modifiedlldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
Commit 8f1de22c7681a21fcdbe2d8c39de7698baab724a by sam.mccall
[clangd] Stop capturing trace args if the tracer doesn't need them.

The tracer is now expected to allocate+free the args itself.

Differential Revision: https://reviews.llvm.org/D89135
The file was modifiedclang-tools-extra/clangd/support/Trace.cpp
The file was modifiedclang-tools-extra/clangd/support/Trace.h
The file was modifiedclang-tools-extra/clangd/unittests/support/TraceTests.cpp
Commit e2f1fe361a9c7616a1d6459b036d15f47da4a073 by pavel
[lldb/Utility] Introduce UnimplementedError

This is essentially a replacement for the PacketUnimplementedError
previously present in the gdb-remote server code.

The reason I am introducing a generic error is because I wanted the
native process classes to be able to signal that they do not support
some functionality. They could not use PacketUnimplementedError as they
are independent of a specific transport protocol. Putting the error
class in the the native process code was also not ideal because the
gdb-remote code is also used for lldb-server's platform mode, which does
not (should not) know how to debug individual processes.

I'm putting it under Utility, as I think it can be generally useful for
notifying about unsupported/unimplemented functionality (and in
particular, for programatically testing whether something is
unsupported).

Differential Revision: https://reviews.llvm.org/D89121
The file was modifiedlldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.h
The file was modifiedlldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
The file was modifiedlldb/unittests/Process/gdb-remote/GDBRemoteCommunicationServerTest.cpp
The file was modifiedlldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
The file was modifiedlldb/source/Utility/CMakeLists.txt
The file was addedlldb/include/lldb/Utility/UnimplementedError.h
The file was addedlldb/source/Utility/UnimplementedError.cpp
Commit 66be2e00ef29f8a747df2f7a57682e112266f525 by marukawa
[VE] Support copysign math function

VE doesn't have instruction for copysign, so expand it.  Add a
regression test also.

Reviewed By: simoll

Differential Revision: https://reviews.llvm.org/D89228
The file was addedllvm/test/CodeGen/VE/fp_copysign.ll
The file was modifiedllvm/lib/Target/VE/VEISelLowering.cpp
Commit 01dc85c173cb72b7dc42971942eb00c0be88924f by csigg
[mlir][gpu] Adding gpu runtime wrapper functions for async execution.

Reviewed By: herhut

Differential Revision: https://reviews.llvm.org/D89037
The file was modifiedmlir/lib/Conversion/GPUCommon/ConvertLaunchFuncToRuntimeCalls.cpp
The file was modifiedmlir/tools/mlir-cuda-runner/cuda-runtime-wrappers.cpp
The file was modifiedmlir/tools/mlir-rocm-runner/rocm-runtime-wrappers.cpp
Commit 9407686687907fa2af24219e1d6e57787872bef8 by kadircet
[clangd][NFC] Fix formatting in ClangdLSPServer
The file was modifiedclang-tools-extra/clangd/ClangdLSPServer.cpp
Commit 1968a6155fd5ef178598b204cc6a176719b99f2e by alexfh
[clang-tidy] Fix IncludeInserter usage example in a comment.
The file was modifiedclang-tools-extra/clang-tidy/utils/IncludeInserter.h
Commit c252200e4de4411478fb525e93cc7ae05b189a22 by llvm-dev
[DAG][ARM][MIPS][RISCV] Improve funnel shift promotion to use 'double shift' patterns

Based on a discussion on D88783, if we're promoting a funnel shift to a width at least twice the size as the original type, then we can use the 'double shift' patterns (shifting the concatenated sources).

Differential Revision: https://reviews.llvm.org/D89139
The file was modifiedllvm/test/CodeGen/Mips/funnel-shift.ll
The file was modifiedllvm/test/CodeGen/ARM/funnel-shift.ll
The file was modifiedllvm/test/CodeGen/RISCV/rv64Zbt.ll
The file was modifiedllvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
Commit f9317f7bf6bdac10d6f8a1c106ef8d489da7efbf by kadircet
[clangd] Introduce MemoryTrees

A structure that can be used to represent memory usage of a nested
set of systems.

Differential Revision: https://reviews.llvm.org/D88411
The file was addedclang-tools-extra/clangd/unittests/support/MemoryTreeTests.cpp
The file was addedclang-tools-extra/clangd/support/MemoryTree.h
The file was modifiedclang-tools-extra/clangd/unittests/CMakeLists.txt
The file was modifiedclang-tools-extra/clangd/support/CMakeLists.txt
The file was addedclang-tools-extra/clangd/support/MemoryTree.cpp
Commit c9d2876da95c5a15c85de8473a0cb5fb44eb3289 by kadircet
[clangd] Add a metric for tracking memory usage

Differential Revision: https://reviews.llvm.org/D88413
The file was modifiedclang-tools-extra/clangd/unittests/support/MemoryTreeTests.cpp
The file was modifiedclang-tools-extra/clangd/support/MemoryTree.h
The file was modifiedclang-tools-extra/clangd/support/MemoryTree.cpp
Commit a74d594948611164f88a79ca0544721183a0b19c by kadircet
[clangd] Introduce memory dumping to FileIndex, FileSymbols and BackgroundIndex

File-granular information is considered details.

Depends on D88411

Differential Revision: https://reviews.llvm.org/D88414
The file was modifiedclang-tools-extra/clangd/index/Background.h
The file was modifiedclang-tools-extra/clangd/index/FileIndex.h
The file was modifiedclang-tools-extra/clangd/index/FileIndex.cpp
The file was modifiedclang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp
The file was modifiedclang-tools-extra/clangd/index/Background.cpp
The file was modifiedclang-tools-extra/clangd/unittests/FileIndexTests.cpp
Commit 23a53301c545b45a6c809cc3f444c5f4e577f6c0 by kadircet
[clangd] Introduce memory usage dumping to TUScheduler, for Preambles and ASTCache

File-granular information is considered details.

Depends on D88411

Differential Revision: https://reviews.llvm.org/D88415
The file was modifiedclang-tools-extra/clangd/TUScheduler.cpp
The file was modifiedclang-tools-extra/clangd/unittests/ClangdTests.cpp
The file was modifiedclang-tools-extra/clangd/TUScheduler.h
Commit 20f69ccfe64aeab9c32d1698df399bd864dda8b1 by kadircet
[clangd] Add a helper for exposing tracer status
The file was modifiedclang-tools-extra/clangd/support/Trace.cpp
The file was modifiedclang-tools-extra/clangd/support/Trace.h
Commit 35871fde55ac98b543edd2e7c62d1456a26562d8 by kadircet
[clangd] Record memory usages after each notification

Depends on D88415

Differential Revision: https://reviews.llvm.org/D88417
The file was modifiedclang-tools-extra/clangd/ClangdLSPServer.cpp
The file was modifiedclang-tools-extra/clangd/unittests/ClangdTests.cpp
The file was modifiedclang-tools-extra/clangd/ClangdServer.cpp
The file was modifiedclang-tools-extra/clangd/ClangdServer.h
The file was modifiedclang-tools-extra/clangd/ClangdLSPServer.h
Commit defd01bc596ef82adca637dc3dfef1b7e4e79c38 by llvmgnsyncbot
[gn build] Port f9317f7bf6b
The file was modifiedllvm/utils/gn/secondary/clang-tools-extra/clangd/support/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/clang-tools-extra/clangd/unittests/BUILD.gn
Commit 28237c33d99042de10417ba3de38d53634317ebd by mkazantsev
[NFC] Remove redundant isFullSet checks

Full set case is handled inside intersection, no need to
litter the code with duplicating them outside.
The file was modifiedllvm/lib/Analysis/ScalarEvolution.cpp
Commit b144cd867b6fdfbf0e80064cb67d06c267fa295c by hokein.wu
Dump decl when the test matcher fails.
The file was modifiedclang-tools-extra/clangd/unittests/ParsedASTTests.cpp
Commit 16a4b0f0e36c8e1efa586ca4b2be8effefa75e6e by hokein.wu
[clangd] Disable a failure TopLevelDecls test.

The test fails on clang-ppc64le-rhel buildbot, needs further
investigation.
The file was modifiedclang-tools-extra/clangd/unittests/ParsedASTTests.cpp
Commit 2d1ee7cae9b2299186fa25d8d1fbdb8af482046c by david.spickett
[lldb] Note difference in vFile:pread/pwrite format for lldb

https://sourceware.org/gdb/current/onlinedocs/gdb/Host-I_002fO-Packets.html

States that all numbers should be hexidecimal but lldb
uses decimals in vFile:pread and vFile:pwrite.

lldb-server can accept either since it ends up using
strtoull which will detect the base being used.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D89227
The file was modifiedlldb/docs/lldb-platform-packets.txt
Commit 02295e6d1a1559f0689aeca09d98f468e3f29d9a by llvm-dev
[InstCombine] matchFunnelShift - canonicalize to OR(SHL,LSHR). NFCI.

Simplify the shift amount matching code by canonicalizing the shift ops first.
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
Commit fa566233706ce8345f2c0152b51312a217b848c9 by llvm-dev
[InstCombine] matchFunnelShift - remove shift value commutation. NFCI.

After rG02295e6d1a15 we no longer need to invert the shift values for fshr - this is just hidden at the moment as funnel shifts only ever match for constant values so never use the fshr "Sub on SHL" path.
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
Commit bbf3925879b56aea42daeecc794bb41e99ebc126 by llvm-dev
[InstCombine] matchFunnelShift - fold or(shl(a,x),lshr(b,sub(bw,x))) -> fshl(a,b,x) iff x < bw (REAPPLIED)

If value tracking can confirm that a shift value is less than the type bitwidth then we can more confidently fold general or(shl(a,x),lshr(b,sub(bw,x))) patterns to a funnel/rotate intrinsic pattern without causing bad codegen regressions in the backend (see D89139).

Reapplied after the shift canonicalization in rG02295e6d1a15 which removed the need to flip the shift values.

Differential Revision: https://reviews.llvm.org/D88783
The file was modifiedllvm/test/Transforms/InstCombine/rotate.ll
The file was modifiedllvm/test/Transforms/InstCombine/funnel.ll
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
Commit b8901230c07eb363f8d61f71c436c36375b750db by jay.foad
[AMDGPU] Use @LINE for error checking in gfx10 assembler tests
The file was modifiedllvm/test/MC/AMDGPU/gfx10_unsupported.s
Commit 974ddb54c9adfb533f4bd9665ef902ebe75fa7ee by mcinally
[SVE] Lower fixed length VECREDUCE_XOR operation

Differential Revision: https://reviews.llvm.org/D88974
The file was modifiedllvm/test/CodeGen/AArch64/sve-fixed-length-log-reduce.ll
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Commit 7f2a641aad28fd9b15fa1bcae1dd496150638d79 by sebastian.neubauer
[AMDGPU] Insert waterfall loops for divergent calls

Extend loadSRsrcFromVGPR to allow moving a range of instructions into
the loop. The call instruction is surrounded by copies into physical
registers which should be part of the waterfall loop.

Differential Revision: https://reviews.llvm.org/D88291
The file was modifiedllvm/lib/Target/AMDGPU/SIInstrInfo.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/indirect-call.ll
Commit ad5541045a63fe3049fc910d843bcbb78f7c7056 by flo
[LoopDeletion] Remove over-eager SCEV verification.

60b852092c98dbdc6248d60109d90ae6f8ad841c introduced SCEV verification to
deleteDeadLoop, but it appears this check is currently a bit over-eager
and some users of deleteDeadLoop appear to only patch up SE after
calling it (e.g. PR47753).

Remove the extra check for now. We can consider adding it back after we
tracked down the source of the inconsistency for PR47753.
The file was modifiedllvm/lib/Transforms/Utils/LoopUtils.cpp
Commit c2216d796aab7659771c05303f9d78bad4aeca07 by sebastian.neubauer
[AMDGPU] Print metadata on error

If the metadata is valid yaml, we can print it, even if it failed
validation. That makes it easier to debug any wrong metadata.

Differential Revision: https://reviews.llvm.org/D89243
The file was modifiedllvm/tools/llvm-readobj/ELFDumper.cpp
Commit 596a9f6b89d0d3e3f2897132ef1283941bd3607b by mtrofin
[NFC][Regalloc] Pass VirtRegMap by reference.

It's never null - the reason it's modeled as a pointer is because the
pass can't init it in its ctor. Passing by ref simplifies the code, too,
as the null checks were unnecessary complexity.

Differential Revision: https://reviews.llvm.org/D89171
The file was modifiedllvm/lib/CodeGen/RegAllocPBQP.cpp
The file was modifiedllvm/include/llvm/CodeGen/CalcSpillWeights.h
The file was modifiedllvm/lib/CodeGen/CalcSpillWeights.cpp
The file was modifiedllvm/lib/CodeGen/RegAllocBasic.cpp
The file was modifiedllvm/lib/CodeGen/RegAllocGreedy.cpp
The file was modifiedllvm/lib/CodeGen/LiveRangeEdit.cpp
Commit ea058d289cbf54e5b33aac7f7a13d0d58625f1b9 by flo
[VPlan] Use operands for printing of VPWidenMemoryInstructionRecipe.

Now that operands of the recipe are managed through VPUser, we can
simplify the printing by just using the operands.
The file was modifiedllvm/lib/Transforms/Vectorize/VPlan.cpp
The file was modifiedllvm/lib/Transforms/Vectorize/VPlan.h
Commit 43d347995c33a5f48f0b4d9cf3d541a1f6ba66c6 by mtrofin
[NFC][MC] Use MCRegister in LiveRangeMatrix

The change starts from LiveRangeMatrix and also checks the users of the
APIs are typed accordingly.

Differential Revision: https://reviews.llvm.org/D89145
The file was modifiedllvm/include/llvm/CodeGen/LiveRegMatrix.h
The file was modifiedllvm/lib/CodeGen/LiveRegMatrix.cpp
The file was modifiedllvm/lib/Target/AMDGPU/SIPreAllocateWWMRegs.cpp
The file was modifiedllvm/lib/Target/AMDGPU/GCNRegBankReassign.cpp
The file was modifiedllvm/lib/CodeGen/RegAllocBasic.cpp
The file was modifiedllvm/lib/CodeGen/RegAllocBase.cpp
The file was modifiedllvm/lib/CodeGen/RegAllocGreedy.cpp
The file was modifiedllvm/lib/Target/AMDGPU/GCNNSAReassign.cpp
The file was modifiedllvm/lib/CodeGen/RegAllocBase.h
Commit 2f66bfac280f9ae9299dccc357ae10e8a48525ed by Dávid Bolvanský
[Tests] Regenerate test checks; NFC
The file was modifiedllvm/test/Transforms/InstCombine/fabs-libcall.ll
The file was modifiedllvm/test/Transforms/InstCombine/cabs-discrete.ll
The file was modifiedllvm/test/Transforms/InstCombine/objsize.ll
The file was modifiedllvm/test/Transforms/InstCombine/cabs-array.ll
Commit 734112343917a011676c2915c5e5d29803a51ba6 by konstantin.schwarz
[GlobalISel][KnownBits] Early return on out of bound shift amounts

If the known shift amount is bigger than or equal to the bitwidth of the type of the value to be shifted,
the result is target dependent, so don't try to infer any bits.

This fixes a crash we've seen in one of our internal test suites.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D89232
The file was modifiedllvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
The file was modifiedllvm/unittests/CodeGen/GlobalISel/KnownBitsTest.cpp
Commit 17cec6a11a12f815052d56a17ef738cf246a2d9a by hans
Revert 1c021c64c "[SCEV] Model ptrtoint(SCEVUnknown) cast not as unknown, but as zext/trunc/self of SCEVUnknown"

> While we indeed can't treat them as no-ops, i believe we can/should
> do better than just modelling them as `unknown`. `inttoptr` story
> is complicated, but for `ptrtoint`, it seems straight-forward
> to model it just as a zext-or-trunc of unknown.
>
> This may be important now that we track towards
> making inttoptr/ptrtoint casts not no-op,
> and towards preventing folding them into loads/etc
> (see D88979/D88789/D88788)
>
> Reviewed By: mkazantsev
>
> Differential Revision: https://reviews.llvm.org/D88806

It caused the following assert during Chromium builds:

  llvm/lib/IR/Constants.cpp:1868:
  static llvm::Constant *llvm::ConstantExpr::getTrunc(llvm::Constant *, llvm::Type *, bool):
  Assertion `C->getType()->isIntOrIntVectorTy() && "Trunc operand must be integer"' failed.

See code review for a link to a reproducer.

This reverts commit 1c021c64caef83cccb719c9bf0a2554faa6563af.
The file was modifiedpolly/test/Isl/CodeGen/scev_looking_through_bitcasts.ll
The file was modifiedllvm/test/Analysis/ScalarEvolution/add-expr-pointer-operand-sorting.ll
The file was modifiedllvm/test/CodeGen/X86/ragreedy-hoist-spill.ll
The file was modifiedllvm/test/Transforms/IndVarSimplify/2011-11-01-lftrptr.ll
The file was modifiedllvm/test/Analysis/ScalarEvolution/no-wrap-add-exprs.ll
The file was modifiedllvm/lib/Transforms/Utils/SimplifyIndVar.cpp
The file was modifiedllvm/test/Analysis/ScalarEvolution/ptrtoint.ll
The file was modifiedllvm/test/CodeGen/ARM/lsr-undef-in-binop.ll
The file was modifiedllvm/lib/Analysis/ScalarEvolution.cpp
Commit 1ef0e94d5b0206f69e4e822c6828d0b5121c11fb by i
[compiler-rt] Suppress -Wunused-result due to ::write when _FORTIFY_SOURCE>0 in glibc

Noticed by Peter Foley.
In glibc, ::write is declared as __attribute__((__warn_unused_result__)) when __USE_FORTIFY_LEVEL is larger than 0.
The file was modifiedcompiler-rt/lib/fuzzer/FuzzerIOPosix.cpp
The file was modifiedcompiler-rt/lib/ubsan_minimal/ubsan_minimal_handlers.cpp
The file was modifiedcompiler-rt/lib/scudo/standalone/linux.cpp
Commit 551caec4a8af79483823e2940d40afb4c1df5da1 by koraq
Make likelihood lit test less brittle

Jeremy Morse discovered an issue with the lit test introduced in D88363. The
test gives different results for Sony's `-O1`.

The test needs to run at `-O1` otherwise the likelihood attribute will be
ignored. Instead of running all `-O1` passes it only runs the lower-expect pass
which is needed to lower `__builtin_expect`.

Differential Revision: https://reviews.llvm.org/D89204
The file was modifiedclang/test/CodeGenCXX/attr-likelihood-if-vs-builtin-expect.cpp
Commit 525b085a65d30a5f2ae2af38c0be252fe8d4781b by flo
[VPlan] Use VPValue def for VPMemoryInstructionRecipe.

This patch turns VPMemoryInstructionRecipe into a VPValue and uses it
during VPlan construction and codegeneration instead of the plain IR
reference where possible.

Reviewed By: dmgreen

Differential Revision: https://reviews.llvm.org/D84680
The file was modifiedllvm/lib/Transforms/Vectorize/VPlanValue.h
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp
The file was modifiedllvm/lib/Transforms/Vectorize/VPlan.cpp
The file was modifiedllvm/lib/Transforms/Vectorize/VPlan.h
Commit c27ab339ad8fcdd0abbe81ec9f44a440570de708 by tejohnson
Restore "[ThinLTO] Avoid temporaries when loading global decl attachment metadata"

This restores commit ab1b4810b55279bcf6fdd87be74a403440be3991 which was
reverted in 01b9deba76a950f04574b656c7c31ae389104f2d, with a fix for the
issue it caused. We should use a temporary BitstreamCursor when
loading the global decl attachment records so that the abbrev ids held
in the lazy loading IndexCursor are not clobbered. Enhanced the test so
that the issue is exposed there.

Original description:

When performing ThinLTO importing, the metadata loader attempts to lazy
load, by building an index. However, module level global decl attachment
metadata was being parsed early while building the index, since the
associated (module level) global values aren't materialized on demand.
This results in the creation of forward reference temporary metadatas,
which are expensive.

Normally, these module level global values don't have much attached
metadata. However, in the case of -fwhole-program-vtables (e.g. for
whole program devirtualization), the vtables may have many attached type
metadatas. This was resulting in very slow performance when performing
ThinLTO importing with the default lazy loading.

This patch restructures the handling of these global decl attachment
records, delaying their parsing until after the lazy loading index has
been built. Then the parser can use the interface that loads from the
index, which resolves forward references immediately instead of creating
expensive temporaries.

For one ThinLTO backend that imports from modules containing huge
numbers of vtables and associated types, I measured the following
compile times for the metadata materialization during function
importing, rounded to nearest second:

No -fwhole-program-vtables:
  Lazy loading on (head):  1s
  Lazy loading off (head): 3s
  Lazy loading on (patch): 1s

With -fwhole-program-vtables:
  Lazy loading on (head):  440s
  Lazy loading off (head): 4s
  Lazy loading on (patch): 2s

Differential Revision: https://reviews.llvm.org/D87970
The file was modifiedllvm/test/ThinLTO/X86/devirt2.ll
The file was modifiedllvm/lib/Bitcode/Reader/MetadataLoader.cpp
The file was modifiedllvm/test/ThinLTO/X86/Inputs/devirt2.ll
Commit 2de368f6a780f4cdbaf9cf8a4f803272f5de5938 by llvm-dev
[InstCombine] FoldShiftByConstant - merge equivalent types. NFCI.

Consistently use the original shift instruction's Type/BitWidth instead of the operands, casted values etc.
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
Commit 24dd0cd1edd5e5a2cb3cc361c76a3751b4896132 by llvm-dev
[InstCombine] FoldShiftByConstant - create Scalar/Vector constant with ConstantInt::get(). NFCI.

There's no need to create constant vector splats manually.
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
Commit 726a6e84be1892e90e2f3572a36480c0fe616119 by clementval
[flang][openacc] Update Loop Construct lowering to use fir::getBase

This patch update the loop construct lowring to match fir-dev changes.

Reviewed By: jeanPerier

Differential Revision: https://reviews.llvm.org/D88914
The file was modifiedflang/lib/Lower/OpenACC.cpp
Commit e944455eaf1ed3b3bfe9876c5478ce18e9975eea by clementval
[flang][openacc] Lower parallel construct

This patch upstream the lowering of Parallel construct that was initially done in
https://github.com/flang-compiler/f18-llvm-project/pull/460.

Reviewed By: jeanPerier

Differential Revision: https://reviews.llvm.org/D88917
The file was modifiedflang/lib/Lower/OpenACC.cpp
Commit 012dd42e027e2ff3d183cc9dcf27004cf9711720 by i
[X86] Support -march=x86-64-v[234]

PR47686. These micro-architecture levels are defined in the x86-64 psABI:

https://gitlab.com/x86-psABIs/x86-64-ABI/-/commit/77566eb03bc6a326811cb7e9

GCC 11 will support these levels.

Note, -mtune=x86-64-v[234] are invalid and __builtin_cpu_is cannot be
used on them.

Reviewed By: craig.topper, RKSimon

Differential Revision: https://reviews.llvm.org/D89197
The file was modifiedclang/lib/Basic/Targets/X86.h
The file was modifiedclang/test/CodeGen/attr-target-x86.c
The file was modifiedllvm/test/CodeGen/X86/cpus-other.ll
The file was modifiedclang/docs/ReleaseNotes.rst
The file was modifiedclang/test/Preprocessor/predefined-arch-macros.c
The file was modifiedllvm/include/llvm/Support/X86TargetParser.h
The file was modifiedclang/docs/UsersManual.rst
The file was modifiedclang/test/Driver/x86-march.c
The file was modifiedclang/test/Driver/x86-mtune.c
The file was modifiedclang/test/Sema/builtin-cpu-supports.c
The file was modifiedclang/test/Misc/target-invalid-cpu-note.c
The file was addedclang/test/Preprocessor/predefined-arch-macros-x86.c
The file was modifiedllvm/docs/ReleaseNotes.rst
The file was modifiedllvm/lib/Target/X86/X86.td
The file was modifiedllvm/lib/Support/X86TargetParser.cpp
The file was modifiedclang/lib/Basic/Targets/X86.cpp
Commit 039126c97d39fbd8ca6a82f103db8f2591e793cd by adhemerval.zanella
[sanitizer] Disable fast_unwind_on_malloc as default for arm-linux-gnu

ARM thumb/thumb2 frame pointer is inconsistent on GCC and Clang [1]
and fast-unwider is also unreliable when mixing arm and thumb code [2].

The fast unwinder on ARM tries to probe and compare the frame-pointer
at different stack layout positions and it works reliable only on
systems where all the libraries were built in arm mode (either with
gcc or clang) or with clang in thmb mode (which uses the same stack
frame pointer layout in arm and thumb).

However when mixing objects built with different abi modes the
fast unwinder is still problematic as shown by the failures on the
AddressSanitizer.ThreadStackReuseTest. For these failures, the
malloc is called by the loader itself and since it has been built
with a thum enabled gcc, the stack frame is not correctly obtained
and the suppression rule is not applied (resulting in a leak warning).

The check for fast-unwinder-works is also changed: instead of checking
f it is explicit enabled in the compiler flags, it now checks if
compiler defined thumb pre-processor.

This should fix BZ#44158.

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92172
[2] https://bugs.llvm.org/show_bug.cgi?id=44158

Reviewed By: eugenis

Differential Revision: https://reviews.llvm.org/D88958
The file was modifiedcompiler-rt/test/asan/TestCases/Linux/clang_gcc_abi.cpp
The file was modifiedcompiler-rt/test/asan/lit.cfg.py
The file was modifiedcompiler-rt/test/asan/lit.site.cfg.py.in
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_flags.inc
The file was modifiedcompiler-rt/CMakeLists.txt
Commit 1b962fdd5f365a10684d9f70d703ae101c20d37a by zeratul976
[clangd] Heuristic resolution for dependent type and template names

Fixes https://github.com/clangd/clangd/issues/543

Differential Revision: https://reviews.llvm.org/D88469
The file was modifiedclang-tools-extra/clangd/FindTarget.cpp
The file was modifiedclang-tools-extra/clangd/unittests/FindTargetTests.cpp
Commit 4ff71362683b159903b3908f5c9f949d2fe7656d by llvm-dev
[InstCombine] FoldShiftByConstant - create Scalar/Vector constant with ConstantInt::get(). NFCI.

There's no need to create constant vector splats manually - missed this one in rG24dd0cd1edd5
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
Commit f1800579666c80adf8bb2f992a639e5b8e3a389b by aeubanks
[Inliner][NPM] Fix various tests under NPM

alloca-dbgdeclare-merge.ll:
alloca-merge-align.ll:
array_merge.ll:
NPM inliner does not merge allocas

delete-call.ll:
NPM inliner does not delete readonly calls

externally_available.ll:
NPM inliner does not delete available_externally functions

inline-cold-callee.ll:
inline-hot-callee.ll:
inline-hot-callee.ll has a comment saying it only applies to legacy PM,
I assume same for inline-cold-callee.ll

devirtualize-2.ll:
inline-hot-callsite:
monster_scc.ll:
pr22285.ll:
already has legacy and new PM RUN lines

inline-cold.ll:
profile-summary required to see callee as cold

prof-update-sample.ll:
profile-summary required to update branch_weights

Reviewed By: davidxl

Differential Revision: https://reviews.llvm.org/D89093
The file was modifiedllvm/test/Transforms/Inline/delete-call.ll
The file was modifiedllvm/test/Transforms/Inline/pr22285.ll
The file was modifiedllvm/test/Transforms/Inline/devirtualize-2.ll
The file was modifiedllvm/test/Transforms/Inline/monster_scc.ll
The file was modifiedllvm/test/Transforms/Inline/alloca-dbgdeclare-merge.ll
The file was modifiedllvm/test/Transforms/Inline/inline-hot-callee.ll
The file was modifiedllvm/test/Transforms/Inline/inline-cold.ll
The file was modifiedllvm/test/Transforms/Inline/alloca-merge-align.ll
The file was modifiedllvm/test/Transforms/Inline/devirtualize-3.ll
The file was modifiedllvm/test/Transforms/Inline/externally_available.ll
The file was modifiedllvm/test/Transforms/Inline/inline-hot-callsite.ll
The file was modifiedllvm/test/Transforms/Inline/array_merge.ll
The file was modifiedllvm/test/Transforms/Inline/inline-cold-callee.ll
The file was modifiedllvm/test/Transforms/Inline/prof-update-sample.ll
Commit f21fcccef7197f911a27b960aa2a180e0c7724aa by amccarth
[LLDB] Fix 37 tests on Windows

A Windows-style LLDB_PYTHON_HOME path in a Cmake template didn't have the
backslashes escaped, which led to a garbled paths derived from it.  Fixed
by expanding the environment variable as a raw string literal.

Differential Revision: https://reviews.llvm.org/D89256
The file was modifiedlldb/include/lldb/Host/Config.h.cmake
Commit 820e65f9e2369d2990fde4b3e7cfceb64f0df9c8 by rob.suderman
[mlir] fixing typo in parseAttribute that was ignoring caller-specified types

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D89255
The file was modifiedmlir/include/mlir/IR/DialectImplementation.h
Commit f09587c64ccb713af1e83d4f01a6aea3cb682c94 by sguelton
update .txt --> .md links
The file was modifiedflang/README.md
Commit dce8f2bb25ea1d01533d8e602f2520492fa67259 by xun
[Coroutine][Sema] Only tighten the suspend call temp lifetime for final awaiter

In https://reviews.llvm.org/D87470 I added the change to tighten the lifetime of the expression awaiter.await_suspend().address.
Howver it was incorrect. ExprWithCleanups will call the dtor and end the lifetime for all the temps created in the current full expr.
When this is called on a normal await call, we don't want to do that.
We only want to do this for the call on the final_awaiter, to avoid writing into the frame after the frame is destroyed.
This change fixes it, by checking IsImplicit.

Differential Revision: https://reviews.llvm.org/D89066
The file was modifiedclang/test/CodeGenCoroutines/coro-semmetric-transfer.cpp
The file was modifiedclang/lib/Sema/SemaCoroutine.cpp
Commit 388d373294e1f7386e1bc14338bd985189f47604 by clementval
[flang][openacc] Lower data construct

This patch upstream the lowering of Data construct that was initially done in
https://github.com/flang-compiler/f18-llvm-project/pull/460.

Reviewed By: jeanPerier

Differential Revision: https://reviews.llvm.org/D88918
The file was modifiedflang/lib/Lower/OpenACC.cpp
Commit 26d861cbbd5f40182b3b7f0ac7ed0e58e0e8feaa by walter erquinigo
[trace] Scaffold "thread trace dump instructions"

Depends on D88841

As per the discussion in the RFC, we'll implement both

  thread trace dump [instructions | functions]

This is the first step in implementing the "instructions" dumping command.

It includes:

- A minimal ProcessTrace plugin for representing processes from a trace file. I noticed that it was a required step to mimic how core-based processes are initialized, e.g. ProcessElfCore and ProcessMinidump. I haven't had the need to create ThreadTrace yet, though. So far HistoryThread seems good enough.
- The command handling itself in CommandObjectThread, which outputs a placeholder text instead of the actual instructions. I'll do that part in the next diff.
- Tests

{F13132325}

Differential Revision: https://reviews.llvm.org/D88769
The file was modifiedlldb/include/lldb/Target/Target.h
The file was modifiedlldb/source/Commands/Options.td
The file was modifiedlldb/include/lldb/Target/Thread.h
The file was modifiedlldb/include/lldb/Target/Trace.h
The file was modifiedlldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp
The file was modifiedlldb/source/Target/Target.cpp
The file was addedlldb/test/API/commands/trace/intelpt-trace/trace_2threads.json
The file was addedlldb/source/Plugins/Process/Trace/ProcessTrace.cpp
The file was modifiedlldb/source/Plugins/Trace/intel-pt/TraceIntelPTSessionFileParser.cpp
The file was modifiedlldb/source/Target/Trace.cpp
The file was modifiedlldb/source/Plugins/Process/CMakeLists.txt
The file was modifiedlldb/source/Plugins/Trace/intel-pt/TraceIntelPT.h
The file was addedlldb/source/Plugins/Process/Trace/CMakeLists.txt
The file was addedlldb/test/API/commands/trace/TestTraceDumpInstructions.py
The file was modifiedlldb/source/Commands/CommandObjectThread.cpp
The file was addedlldb/source/Plugins/Process/Trace/ProcessTrace.h
The file was modifiedlldb/test/API/commands/trace/TestTraceLoad.py
Commit abe14485fed7741ef5771d11509373c861ec37eb by mcinally
[SVE] Fix VBITS_GE_256 typo in fixed-width tests.

This seems to be a typo that propagated to a number of tests. Replace VBITS_GE_256 with CHECK. There is no VBITS_GE_256.
The file was modifiedllvm/test/CodeGen/AArch64/sve-fixed-length-log-reduce.ll
The file was modifiedllvm/test/CodeGen/AArch64/sve-fixed-length-int-div.ll
The file was modifiedllvm/test/CodeGen/AArch64/sve-fixed-length-int-reduce.ll
The file was modifiedllvm/test/CodeGen/AArch64/sve-fixed-length-int-select.ll
The file was modifiedllvm/test/CodeGen/AArch64/sve-fixed-length-trunc.ll
The file was modifiedllvm/test/CodeGen/AArch64/sve-fixed-length-fp-reduce.ll
The file was modifiedllvm/test/CodeGen/AArch64/sve-fixed-length-fp-select.ll
Commit 9a33f027ac7d73e14ae287e78ab554142d1cbc8f by aeubanks
Revert "Canonicalize declaration pointers when forming APValues."

This reverts commit 9dcd96f728863d40d6f5922ed52732fdd728fb5f.

See https://crbug.com/1134762.
The file was modifiedclang/lib/AST/ExprConstant.cpp
The file was modifiedclang/lib/CodeGen/CGExprConstant.cpp
The file was modifiedclang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p9.cpp
The file was modifiedclang/include/clang/AST/APValue.h
The file was modifiedclang/test/OpenMP/ordered_messages.cpp
The file was modifiedclang/lib/AST/Decl.cpp
The file was modifiedclang/lib/AST/APValue.cpp
The file was modifiedclang/test/CodeGenCXX/weak-external.cpp
The file was modifiedclang/lib/AST/DeclBase.cpp
Commit 73818f450e3a90fc89eca143ee30777ed7e660e9 by lebedev.ri
[NFC][ScalarEvolution] Add tests with ptrtoint in constant context in loop

Reduced from the https://reviews.llvm.org/D88806#2325340
The file was addedllvm/test/Analysis/ScalarEvolution/ptrtoint-constantexpr-loop.ll
Commit 1fb610429308a7c29c5065f5cc35dcc3fd69c8b1 by lebedev.ri
Reland "[SCEV] Model ptrtoint(SCEVUnknown) cast not as unknown, but as zext/trunc/self of SCEVUnknown"

This relands commit 1c021c64caef83cccb719c9bf0a2554faa6563af which was
reverted in commit 17cec6a11a12f815052d56a17ef738cf246a2d9a because
an assertion was being triggered, since `BuildConstantFromSCEV()`
wasn't updated to handle the case where the constant we want to truncate
is actually a pointer. I was unsuccessful in coming up with a test case
where we'd end there with constant zext/sext of a pointer,
so i didn't handle those cases there until there is a test case.

Original commit message:

While we indeed can't treat them as no-ops, i believe we can/should
do better than just modelling them as `unknown`. `inttoptr` story
is complicated, but for `ptrtoint`, it seems straight-forward
to model it just as a zext-or-trunc of unknown.

This may be important now that we track towards
making inttoptr/ptrtoint casts not no-op,
and towards preventing folding them into loads/etc
(see D88979/D88789/D88788)

Reviewed By: mkazantsev

Differential Revision: https://reviews.llvm.org/D88806
The file was modifiedllvm/lib/Transforms/Utils/SimplifyIndVar.cpp
The file was modifiedpolly/test/Isl/CodeGen/scev_looking_through_bitcasts.ll
The file was modifiedllvm/test/CodeGen/ARM/lsr-undef-in-binop.ll
The file was modifiedllvm/test/Analysis/ScalarEvolution/add-expr-pointer-operand-sorting.ll
The file was modifiedllvm/test/Transforms/IndVarSimplify/2011-11-01-lftrptr.ll
The file was modifiedllvm/test/Analysis/ScalarEvolution/ptrtoint.ll
The file was modifiedllvm/test/CodeGen/X86/ragreedy-hoist-spill.ll
The file was modifiedllvm/lib/Analysis/ScalarEvolution.cpp
The file was modifiedllvm/test/Analysis/ScalarEvolution/no-wrap-add-exprs.ll
The file was modifiedllvm/test/Analysis/ScalarEvolution/ptrtoint-constantexpr-loop.ll
Commit fe145b66ecfd98769feef496d47e49781efd6a2e by Tony.Tye
[AMDGPU] Correct processor names for gfx1010 and gfx1011

Change-Id: Ie409f86876b0437d0b0405aff42872963708d926

Differential Revision: https://reviews.llvm.org/D89259
The file was modifiedllvm/docs/AMDGPUUsage.rst
Commit 4a96b2e75f6db5b6f51febdd2ee559bacb7833b7 by thakis
[gn build] Add libclang_rt.ios.a, libclang_rt.iossim.a to the build

It's built with just-built clang, like all other compiler-rt parts
in the GN build.

This requires adding some cross build support to the mac toolchain.

Also add explicit mmacosx-version-min and miphoneos-version-min
flags to the build.

ios.a is only built with the arm64 slice, iossim.a only with the
x86_64 slice for now. (The latter should maybe become host_cpu
when Arm Macs become a common iOS development platform.)

With this, it's possible to build chromium/iOS with a GN-built LLVM.

Differential Revision: https://reviews.llvm.org/D89260
The file was modifiedllvm/utils/gn/build/toolchain/target_flags.gni
The file was modifiedllvm/utils/gn/secondary/compiler-rt/BUILD.gn
The file was modifiedllvm/utils/gn/build/toolchain/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/compiler-rt/target.gni
The file was modifiedllvm/utils/gn/build/mac_sdk.gni
The file was modifiedllvm/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/llvm/triples.gni
The file was modifiedllvm/utils/gn/build/BUILD.gn
Commit 81ead8a53525abe1f149b3c5ad1bb44ee258d10f by nicolas.vasilache
[mlir][Linalg] Temporarily circumvent TensorConstant bufferize bug

The TensorConstantOp bufferize conversion pattern has a bug that
makes it incorrect in the case of vectors whose alignment is not
the natural alignment. Circumvent it temporarily by using a power of 2.

Differential Revision: https://reviews.llvm.org/D89265
The file was modifiedmlir/integration_test/Dialect/Linalg/CPU/test-tensor-matmul.mlir
Commit 8b6cd15242673c04618fb0aafc07d5de9e0bbe1e by jonchesterfield
[libomptarget][amdgcn] Implement partial barrier

[libomptarget][amdgcn] Implement partial barrier

named_sync is used to coordinate non-spmd kernels. This uses bar.sync on nvptx.
There is no corresponding ISA support on amdgcn, so this is implemented using
shared memory, one word initialized to zero.

Each wave increments the variable by one. Whichever wave is last is responsible
for resetting the variable to zero, at which point it and the others continue.

The race condition on a wave reaching the barrier before another wave has
noticed that it has been released is handled with a generation counter, packed
into the same word.

Uses a shared variable that is not needed on nvptx. Introduces a new hook,
kmpc_impl_target_init, to allow different targets to do extra initialization.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D88602
The file was modifiedopenmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
The file was modifiedopenmp/libomptarget/deviceRTLs/common/src/omptarget.cu
The file was modifiedopenmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h
The file was modifiedopenmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.hip
Commit fc5e68fab965bdc8fdf6db9ae2603f9dd02dec5b by martin
[libunwind] [SEH] Don't interact with foreign exceptions

This unfortunately means that we don't execute C++ destructors when
unwinding past such frames for a different SEH unwind purpose (e.g.
as part of setjmp/longjmp), but that case isn't handled properly at
the moment (the original unwind intent is lost and we end up with an
unhandled exception). This patch makes sure the foreign unwind terminates
as intended.

After executing a handler, _Unwind_Resume doesn't have access to
the target frame parameter of the original foreign unwind. We also
currently blindly set ExceptionCode to STATUS_GCC_THROW - we could
set that correctly by storing the original code in _GCC_specific_handler,
but we don't have access to the original target frame value.

This also matches what libgcc's SEH unwinding code does in this case.

Differential Revision: https://reviews.llvm.org/D89231
The file was modifiedlibunwind/src/Unwind-seh.cpp
Commit d77d727339a7439fe747f6b33c6e63ec57c6662e by martin
[LLD] [COFF] Fix a ubsan error in pdb-type-server-missing.yaml

This error has been present since 5519e4da83d1abc666203.

Differential Revision: https://reviews.llvm.org/D89027
The file was modifiedlld/COFF/DebugTypes.cpp
Commit 3b1d018c0dba45408164f5e69cb400976efa350f by martin
[MinGW][clang-shlib] Build only when LLVM_LINK_LLVM_DYLIB is enabled

Otherwise it's easy to hit 2^16 DLL exports limit.

Differential Revision: https://reviews.llvm.org/D89225
The file was modifiedclang/tools/CMakeLists.txt
Commit 09ee1fe85a34642699fc1f3a74605dd79688c739 by craig.topper
[X86] Add more tests for D89178. NFC
The file was addedllvm/test/CodeGen/X86/xaluo128.ll
Commit 350fafabe9d3bda75e80bf077303eb5a09130b53 by paul
[TableGen] Add overload of RecordKeeper::getAllDerivedDefinitions()
  and use in PseudoLowering backend.
Now the two getAllDerivedDefinitions() use StringRef and Arrayref.
Use all_of() in getAllDerivedDefinitions().
The file was modifiedllvm/lib/TableGen/Record.cpp
The file was modifiedllvm/include/llvm/TableGen/Record.h
The file was modifiedllvm/docs/TableGen/BackGuide.rst
The file was modifiedllvm/utils/TableGen/PseudoLoweringEmitter.cpp
Commit d07b290e4b7c55823895e88b683de4178ffc66db by Duncan P. N. Exon Smith
DependencyScanning: pull factory function into MinimizedVFS, NFC

Avoid need for getBufferPtr API, simplifying another patch. No
functionality change.
The file was modifiedclang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
Commit 46d3e428a83ccc0cab73abb2e39a82b1cca53a52 by spatel
[CostModel] get type-based cost for vector intrinsics directly

This is NFC-intended (the reductions and other intrinsics have
tests that should provide coverage) - trying to untangle the
mess that has formed here.

We were stripping the arguments off of the given
"IntrinsicCostAttributes" and then semi-recursively
calling back into getIntrinsicInstrCost() only to
then call getTypeBasedIntrinsicInstrCost(), so make
that call directly instead.
The file was modifiedllvm/include/llvm/CodeGen/BasicTTIImpl.h
Commit ac73cafac0e523879b42b305106cd6e67bfb412e by erich.keane
Ensure TreeTransform considers ParmVarDecls as transformed Decls

See PR47804:

TreeTransform uses TransformedLocalDecls as a map of declarations that
have been transformed already. When doing a "TransformDecl", which
happens in the cases of updating a DeclRefExpr's target, the default
implementation simply returns the already transformed declaration.

However, this was not including ParmVarDecls. SO, any use of
TreeTransform that didn't re-implement TransformDecl would NOT properly
update the target of a DeclRefExpr, resulting in odd behavior.

In the case of Typo-recovery, the result was that a lambda that used its
own parameter would cause an error, since it thought that the
ParmVarDecl referenced was a different lambda. Additionally, this caused
a problem in the AST (a declrefexpr into another scope) such that a
future instantiation would cause an assertion.

This patch ensures that the ParmVarDecl transforming process records
into TransformedLocalDecls so that the DeclRefExpr is ALSO updated.
The file was addedclang/test/SemaCXX/pr47804.cpp
The file was modifiedclang/lib/Sema/TreeTransform.h
Commit 69feac12d0539a7cc19cbda906d46f67029486e1 by Duncan P. N. Exon Smith
Lex: Avoid MemoryBuffer* key in ExcludedPreprocessorDirectiveSkipMapping, NFC

This is a prep patch for changing SourceManager to return
`Optional<MemoryBufferRef>` instead of `MemoryBuffer`. With that change the
address of the MemoryBuffer will be gone, so instead use the start of the
buffer as the key for this map.

No functionality change intended, as it's expected that the pointer identity
matches between the buffers and the buffer data.

Radar-Id: rdar://70139990
Differential Revision: https://reviews.llvm.org/D89136
The file was modifiedclang/include/clang/Lex/PreprocessorExcludedConditionalDirectiveSkipMapping.h
The file was modifiedclang/lib/Lex/PPDirectives.cpp
The file was modifiedclang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
Commit a324d8f964bf421fa7d8b882b0f64ead28c4149c by efriedma
[AArch64] Add tests for 128-bit shift variations.

It looks like there's still some room for optimization; the funnel shift
lowering is more efficient than the lowering of actual shifts.
The file was modifiedllvm/test/CodeGen/AArch64/arm64-long-shift.ll
The file was modifiedllvm/test/CodeGen/AArch64/funnel-shift.ll
Commit 75ae846de69cccd6ed66357f3ee3ad3301849d95 by stellaraccident
[mlir] Make Python bindings installable.

* Links against libMLIR.so if the project is built for DYLIBs.
* Puts things in the right place in build and install time python/ trees so that RPaths line up.
* Adds install actions to install both the extension and sources.
* Copies py source files to the build directory to match (consistent layout between build/install time and one place to point a PYTHONPATH for tests and interactive use).
* Finally, "import mlir" from an installed LLVM just works.

Differential Revision: https://reviews.llvm.org/D89167
The file was modifiedmlir/test/lit.cfg.py
The file was modifiedmlir/lib/Bindings/Python/CMakeLists.txt
The file was removedmlir/lib/Bindings/Python/unix_version.lds
Commit d80ecdf27faf2c45a4264064ddfd5c4524dadce4 by xun
[Coroutine] Rename coro-semmetric-transfer.cpp and possibly fix test failure

Some tests start to fail after https://reviews.llvm.org/D89066.
It's because the size of pointers are different on different targets.
Limit the target in the command so there is no confusion.
Also noticed I had typo in the test name.
Adding disable-llvm-passes option to make the test more stable as well.

Differential Revision: https://reviews.llvm.org/D89269
The file was addedclang/test/CodeGenCoroutines/coro-symmetric-transfer.cpp
The file was removedclang/test/CodeGenCoroutines/coro-semmetric-transfer.cpp
Commit a184c758b77dd6849eab2d46baa6a719780dd539 by craig.topper
[BitCodeAnalyzer] Add a few missing TYPE_CODES and MODULE_CODE_COMDAT to GetCodeName

Happened to notice some of these printing as UnknownCode while running llvm-bcanalyzer on a bc file I had.

Differential Revision: https://reviews.llvm.org/D86900
The file was modifiedllvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp
The file was addedllvm/test/Bitcode/bcanalyzer-types.ll
The file was addedllvm/test/Bitcode/bcanalyzer-comdat.ll