1. [SLP]Unify vectorization of PHI and store nodes with improved tiny tree vectorization. (details)
  2. [SystemZ][z/OS] Additional test coverage for validating dialect instructions for SystemZ (details)
  3. [DAGCombiner] fold bit-hack form of usubsat (details)
  4. [SystemZ][z/OS] Initial implementation for lowerCall on z/OS (details)
  5. [runtimes] Properly handle the sysroot/triple/gcc-toolchain (details)
  6. Do not downcast uint64_t to unsigned in UniqueID hash computation (details)
  7. [InstCombine] add tests for DeMorgan with reassociation; NFC (details)
  8. [InstCombine] generalize reassociated Demorgan folds (details)
  9. [libomptarget][DeviceRTL] Generalise and simplify cmakelists (details)
  10. [mlir][Linalg] Improve conv vectorization for the stride==1 case. (details)
  11. [ORC-RT] Remove stray printf debugging output. (details)
  12. [lld-macho] Simplify lc-linker-option.ll and re-enable it on Windows (details)
  13. [libc++] Use addressof in vector. (details)
  14. [Clang] Support typedef with btf_decl_tag attributes (details)
  15. [DebugInfo] Support typedef with btf_decl_tag attributes (details)
  16. [clang] Use StringRef::contains (NFC) (details)
  17. Reapply [ORC-RT] Configure the ORC runtime for more architectures and platforms (details)
  18. [clang] Don't clear AST if we have consumers running after the main action (details)
  19. Update the C++ and C status pages now that Clang 13 has been released (details)
  20. Update the title and encoding for the C++ status page (details)
  21. [IPT] Restructure cache to allow lazy update following invalidation [NFC] (details)
  22. [RISCV] Add a test showing incorrect VSETVLI insertion (details)
  23. Reland [clang] Pass -clear-ast-before-backend in Clang::ConstructJob() (details)
  24. [VectorCombine] fold shuffle-of-binops with common operand (details)
  25. [fir] Add Character helper (details)
  26. [test][ORC-RT] Disable x86_64 tests when target arch does not match (details)
  27. Avoid infinity arithmetics when computing exp approximations (details)
  28. [NFC] Clean up a few methods within GreedyPatternRewriter (details)
  29. [mlir:GreedyPatternRewriter] Add debug logging for pattern rewriter actions (details)
  30. [SLP] Add additional tests which caused crashes with versioning. (details)
  31. Revert "[CMake] Cache the compiler-rt library search results" (details)
  32. Add the papers that were applied to the latest C2x working draft (details)
  33. Revert "[IPT] Restructure cache to allow lazy update following invalidation [NFC]" (details)
  34. [RISCV] Expand scalable vector CTTZ/CTLZ/CTPOP. (details)
  35. Revert "[compiler-rt/profile] Hide __llvm_profile_raw_version" (details)
  36. Follow-up on (details)
  37. [CodeMetrics] Don't require speculatability for ephemeral values (details)
  38. [Triple] Don't repeat the function name in comments. NFC (details)
  39. Recommit: Compress formatting of array type names (int [4] -> int[4]) (details)
  40. Enable libc++ in the build for libcxx initializerlist pretty printers (details)
  41. [test] Make sure plugin actually runs in clear-ast-before-backend-plugins.c (details)
  42. [InstCombine] Add additional store forwarding test (NFC) (details)
  43. [OpenMP][NFC] skip atomic tests for non-x86 arch (details)
  44. [modules] Fix tracking ObjCInterfaceType decl when there are multiple definitions. (details)
  45. BPF: emit BTF_KIND_DECL_TAG for typedef types (details)
  46. Modify "statistics dump" to dump JSON. (details)
  47. [gn build] Port d7b338537cf3 (details)
  48. Add test to check we can instcombine after reassociate. NFC. (details)
  49. Follow-up fixes for aee49255074fd4ef38d97e6e70cbfbf2f9fd0fa7 (details)
  50. [libcxx] [test] Add an XFAIL for the timespec test for MinGW targets (details)
  51. [libcxx] [test] Add a specific XFAIL for a MinGW env failure that is fixed in Clang 14 (details)
  52. [fir] Remove createConcatenate test temporarily (details)
  53. [AArch64][GlobalISel] Fold 64-bit cmps with 64-bit adds (details)
  54. [mlir][vector] Add patterns to convert multidimreduce to vector.contract (details)
  55. [mlir][linalg] Remove special case for contraction vectorization (details)
  56. Fix buildbots after (details)
  57. Fix escaping in RewriterGen.cpp. (details)
  58. [TargetLowering][RISCV] Prevent scalarization of fixed vector bswap. (details)
  59. Remove unused parallel-libs project (details)
  60. Make genAttributeVerifier escape the summary. (details)
  61. [MLIR] Fix FloorDivSIOpConverter that was failing for index type after the arithmetic op refactor (details)
Commit 3ea7877c8b62ba100e7b34dbf4afa0171d5b4705 by a.bataev
[SLP]Unify vectorization of PHI and store nodes with improved tiny tree vectorization.

Vectorization of PHIs and stores very similar, it might be beneficial to
try to revectorize stores (like PHIs) if the total number of stores with
the same/alternate opcode is less than the vector size but number of
stores with the same type is larger than the vector size.

Differential Revision:
The file was modifiedllvm/lib/Transforms/Vectorize/SLPVectorizer.cpp (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/tiny-tree.ll (diff)
Commit fa111d30855ee4d74a4b87672ea50d03a74ad85f by anirudh_prasad
[SystemZ][z/OS] Additional test coverage for validating dialect instructions for SystemZ

- There are certain instructions most notably those with extended mnemonics that restricted to only the gnu/att variant
- There are also certain instruction aliases/mnemonic aliases that are restricted only to the HLASM variant (see, and for reference)
- This patch adds a few tests to check for the behaviour introduced in the above patches. The testing coverage could not be added in at the same time, due to parallel work being done introducing the HLASM syntax

Reviewed By: uweigand, abhina.sreeskantharajan

Differential Revision:
The file was addedllvm/test/MC/SystemZ/insn-bad-zos-z14.s
The file was addedllvm/test/MC/SystemZ/insn-bad-zos.s
The file was addedllvm/test/MC/SystemZ/insn-bad-zos-z13.s
The file was addedllvm/test/MC/SystemZ/insn-bad-zos-z196.s
The file was addedllvm/test/MC/SystemZ/insn-bad-zos-z15.s
The file was addedllvm/test/MC/SystemZ/insn-good-zos-pcrel.s
Commit d2198771e9ccbae27a487cdca67720eee71cea2a by spatel
[DAGCombiner] fold bit-hack form of usubsat

(i8 X ^ 128) & (i8 X s>> 7) --> usubsat X, 128

I haven't found a generalization of this identity:

Note: I was actually looking at the first form of the pattern in that link,
but that's part of a long chain of potential missed transforms in codegen
and IR....that I hope ends here!

The predicates for when this is profitable are a bit tricky. This version of
the patch excludes multi-use but includes custom lowering (as opposed to
legal only).

On x86 for example, we have custom lowering for some vector types, and that
uses umax and sub. So to enable that fold, we need add use checks to avoid
regressions. Even with legal-only lowering, we could see code with extra
reg move instructions for extra uses, so that constraint would have to be
eased very carefully to avoid penalties.

Differential Revision:
The file was modifiedllvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (diff)
The file was modifiedllvm/test/CodeGen/AMDGPU/usubsat.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/psubus.ll (diff)
Commit aa3519f178fc6ea563f950a4077b34d8dc6c4470 by anirudh_prasad
[SystemZ][z/OS] Initial implementation for lowerCall on z/OS

- This patch provides the initial implementation for lowering a call on z/OS according to the XPLINK64 calling convention
- A series of changes have been made to to account for these additional XPLINK64 changes including adding a new helper function to shadow the stack along with allocation of a register wherever appropriate
- For the cases of copying a f64 to a gr64 and a f128 / 128-bit vector type to a gr64, a `CCBitConvertToType` has been added and has been bitcasted appropriately in the lowering phase
- Support for the ADA register (R5) will be provided in a later patch.

Reviewed By: uweigand

Differential Revision:
The file was addedllvm/test/CodeGen/SystemZ/call-zos-01.ll
The file was modifiedllvm/lib/Target/TargetMachine.cpp (diff)
The file was modifiedllvm/lib/Target/SystemZ/SystemZCallingConv.cpp (diff)
The file was addedllvm/test/CodeGen/SystemZ/call-zos-vararg.ll
The file was modifiedllvm/lib/Target/SystemZ/SystemZISelLowering.cpp (diff)
The file was modifiedllvm/lib/Target/SystemZ/SystemZCallingConv.h (diff)
The file was modifiedllvm/lib/Target/SystemZ/SystemZRegisterInfo.h (diff)
The file was addedllvm/test/CodeGen/SystemZ/call-zos-vec.ll
The file was modifiedllvm/lib/Target/SystemZ/ (diff)
Commit 72117f2ffeb6a096a808c34ec7ebee122c2d2e21 by Louis Dionne
[runtimes] Properly handle the sysroot/triple/gcc-toolchain

In 395271a, I simplified how we handled the target triple for the
runtimes. However, in doing so, we stopped considering the default
(which is the host triple) even if CMAKE_CXX_COMPILER_TARGET was specified.
This commit fixes that problem and also refactors the code so that it's
easy to see what the default value is.

The fact that nobody seems to have been broken by this makes me think
that perhaps nobody is using CMAKE_CXX_COMPILER_TARGET to specify the
triple -- but it should still work.

Differential Revision:
The file was modifiedlibcxx/CMakeLists.txt (diff)
The file was modifiedlibcxxabi/CMakeLists.txt (diff)
The file was modifiedlibunwind/CMakeLists.txt (diff)
Commit 88303693ce97cf842f0714068c2cae44cd6515e1 by kbobyrev
Do not downcast uint64_t to unsigned in UniqueID hash computation

The file was modifiedllvm/include/llvm/Support/FileSystem/UniqueID.h (diff)
Commit 6b560a8e235b4f610cce6a2db8188f42ce65c5fb by spatel
[InstCombine] add tests for DeMorgan with reassociation; NFC

These are direct mutations of the tests added for D112108 -
we should handle the sibling folds for 'or'.
The file was modifiedllvm/test/Transforms/InstCombine/and-xor-or.ll (diff)
Commit 3888de9507c78d3d77a4f565f30a3bf1b2fce690 by spatel
[InstCombine] generalize reassociated Demorgan folds

This updates the recent D112108 / b92412fb286be26d
to handle the flipped logic ('or') sibling:
The file was modifiedllvm/test/Transforms/InstCombine/and-xor-or.ll (diff)
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp (diff)
Commit a602c2b51dccc756c12e7585c34710aeaef54e0b by jonathanchesterfield
[libomptarget][DeviceRTL] Generalise and simplify cmakelists

Step towards building the DeviceRTL for amdgpu.

Mostly replaces cuda-specific toolchain finding logic with the
generic logic currently found in the amdgpu deviceRTL cmake. Also
deletes dead code and changes the default to build on systems
without cuda installed, as the library doesn't use cuda and the
amdgpu-only systems generally won't have cuda installed.

Reviewed By: Meinersbur

Differential Revision:
The file was modifiedopenmp/libomptarget/DeviceRTL/CMakeLists.txt (diff)
Commit 203accf0bdde1d276646c79dfa605ee3426f1ca8 by nicolas.vasilache
[mlir][Linalg] Improve conv vectorization for the stride==1 case.

In the stride == 1 case, conv1d reads contiguous data along the input dimension. This can be advantageaously used to bulk memory transfers and compute while avoiding unrolling. Experimentally, this can yield speedups of up to 50%.

Reviewed By: antiagainst

Differential Revision:
The file was modifiedmlir/test/Dialect/Linalg/vectorize-convolution.mlir (diff)
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp (diff)
Commit 5c72323141e4c2935492a9aca728d549c7e544ab by Lang Hames
[ORC-RT] Remove stray printf debugging output.

These were accidentally picked up in an earlier commit.
The file was modifiedcompiler-rt/lib/orc/macho_platform.cpp (diff)
Commit 77fdc0e56bf9463b432f1a2073ac506a8df9b652 by jezng
[lld-macho] Simplify lc-linker-option.ll and re-enable it on Windows

While attempting to simplify it, I discovered a concerning discrepancy
between our handling of LC_LINKER_OPTION vs ld64's. In particular, ld64
does not appear to check for `-all_load` nor `-ObjC` when processing
those options. Thus, if/when we fix this behavior, no duplicate symbol
error will be expected regardless of the use-after-free. As such, I've
removed the test logic that tries to induce the duplicate symbol error.
We can just rely on ASAN to do the verification.

In order to make the test run on Windows, I've removed the symlink
logic. Both ld64 and LLD handle this un-symlinked framework just fine.

I also capitalized the framework name, since that's the typical

Reviewed By: #lld-macho, oontvoo

Differential Revision:
The file was modifiedlld/test/MachO/lc-linker-option.ll (diff)
Commit 56df1d80e2911a8cd23b70e9b7e76fcb386c7956 by koraq
[libc++] Use addressof in vector.

This addresses the usage of `operator&` in `<vector>`.

I now added tests for the current offending cases. I wonder whether it
would be better to add one addressof test per directory and test all
possible violations. Also to guard against possible future errors?

(Note there are still more headers with the same issue.)

Reviewed By: #libc, ldionne

Differential Revision:
The file was addedlibcxx/test/std/containers/sequences/vector/vector.cons/assign_move.addressof.compile.pass.cpp
The file was addedlibcxx/test/std/containers/sequences/vector/vector.cons/move.addressof.compile.pass.cpp
The file was modifiedlibcxx/include/__iterator/wrap_iter.h (diff)
The file was addedlibcxx/test/std/containers/sequences/vector/vector.modifiers/insert_iter_rvalue.addressof.compile.pass.cpp
The file was addedlibcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter.addressof.compile.pass.cpp
The file was addedlibcxx/test/std/containers/sequences/vector/vector.special/swap.addressof.compile.pass.cpp
The file was addedlibcxx/test/std/containers/sequences/vector/vector.modifiers/emplace.addressof.compile.pass.cpp
The file was addedlibcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter_iter.addressof.compile.pass.cpp
The file was addedlibcxx/test/std/containers/sequences/vector/vector.modifiers/insert_iter_size_value.addressof.compile.pass.cpp
The file was addedlibcxx/test/std/containers/sequences/vector/vector.modifiers/insert_iter_value.addressof.compile.pass.cpp
The file was modifiedlibcxx/include/vector (diff)
The file was addedlibcxx/test/std/containers/sequences/vector/vector.modifiers/insert_iter_iter_iter.addressof.compile.pass.cpp
Commit b396010240cda92f5fcfa30cba1b9ad905561eae by yhs
[Clang] Support typedef with btf_decl_tag attributes

Previously, btf_del_tag attribute supports record, field, global variable,
function and function parameter ([1], [2]). This patch added support for typedef.
The main reason is for typedef of an anonymous struct/union, we can only apply
btf_decl_tag attribute to the anonymous struct/union like below:
  typedef struct { ... } __btf_decl_tag target_type
In this case, the __btf_decl_tag attribute applies to anonymous struct,
which increases downstream implementation complexity. But if
typedef with btf_decl_tag attribute is supported, we can have
  typedef struct { ... } target_type __btf_decl_tag
which applies __btf_decl_tag to typedef "target_type" which make it
easier to directly associate btf_decl_tag with a named type.
This patch permitted btf_decl_tag with typedef types with this reason.


Differential Revision:
The file was modifiedclang/test/Misc/pragma-attribute-supported-attributes-list.test (diff)
The file was modifiedclang/include/clang/Basic/ (diff)
The file was modifiedclang/test/Sema/attr-btf_tag.c (diff)
The file was modifiedclang/include/clang/Basic/ (diff)
Commit f6811cec84218912d1c7c9b0b8d308834e6e24e3 by yhs
[DebugInfo] Support typedef with btf_decl_tag attributes

Clang patch ([1]) added support for btf_decl_tag attributes with typedef
types. This patch added llvm support including dwarf generation.
For example, for typedef
   typedef unsigned * __u __attribute__((btf_decl_tag("tag1")));
   __u u;
the following shows llvm-dwarfdump result:
   0x00000033:   DW_TAG_typedef
                   DW_AT_type      (0x00000048 "unsigned int *")
                   DW_AT_name      ("__u")
                   DW_AT_decl_file ("/home/yhs/work/tests/llvm/btf_tag/t.c")
                   DW_AT_decl_line (1)

   0x0000003e:     DW_TAG_LLVM_annotation
                     DW_AT_name    ("btf_decl_tag")
                     DW_AT_const_value     ("tag1")

   0x00000047:     NULL


Differential Revision:
The file was addedllvm/test/DebugInfo/X86/attr-btf_tag-typedef.ll
The file was modifiedllvm/lib/IR/DIBuilder.cpp (diff)
The file was addedclang/test/CodeGen/attr-btf_tag-typedef.c
The file was addedllvm/test/Bitcode/attr-btf_tag-typedef.ll
The file was modifiedclang/lib/CodeGen/CGDebugInfo.cpp (diff)
The file was modifiedllvm/include/llvm/IR/DIBuilder.h (diff)
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp (diff)
Commit dccfaddc6bcc711bd972b43bff5ce6d71c1b39dc by kazu
[clang] Use StringRef::contains (NFC)
The file was modifiedclang/lib/ASTMatchers/ASTMatchersInternal.cpp (diff)
The file was modifiedclang/lib/Rewrite/Rewriter.cpp (diff)
The file was modifiedclang/lib/ARCMigrate/ObjCMT.cpp (diff)
The file was modifiedclang/lib/Lex/HeaderSearch.cpp (diff)
The file was modifiedclang/lib/Lex/LiteralSupport.cpp (diff)
The file was modifiedclang/lib/CodeGen/CodeGenFunction.cpp (diff)
The file was modifiedclang/lib/Analysis/RetainSummaryManager.cpp (diff)
The file was modifiedclang/lib/CodeGen/TargetInfo.cpp (diff)
The file was modifiedclang/utils/TableGen/NeonEmitter.cpp (diff)
The file was modifiedclang/utils/TableGen/RISCVVEmitter.cpp (diff)
The file was modifiedclang/lib/ARCMigrate/TransUnbridgedCasts.cpp (diff)
The file was modifiedclang/lib/AST/Expr.cpp (diff)
The file was modifiedclang/utils/TableGen/ClangASTPropertiesEmitter.cpp (diff)
The file was modifiedclang/lib/ARCMigrate/Transforms.cpp (diff)
Commit b8da594750762f811283820c19b02cedfb6632d4 by blangmuir
Reapply [ORC-RT] Configure the ORC runtime for more architectures and platforms

Reapply 5692ed0cce8c95, but with the ORC runtime disabled explicitly on
CrossWinToARMLinux to match the other compiler-rt runtime libraries.

Differential Revision:


Enable building the ORC runtime for 64-bit and 32-bit ARM architectures,
and for all Darwin embedded platforms (iOS, tvOS, and watchOS). This
covers building the cross-platform code, but does not add TLV runtime
support for the new architectures, which can be added independently.

Incidentally, stop building the Mach-O TLS support file unnecessarily on
other platforms.

Differential Revision:
The file was modifiedcompiler-rt/cmake/config-ix.cmake (diff)
The file was modifiedcompiler-rt/lib/orc/simple_packed_serialization.h (diff)
The file was modifiedcompiler-rt/lib/orc/CMakeLists.txt (diff)
The file was modifiedcompiler-rt/cmake/Modules/AllSupportedArchDefs.cmake (diff)
The file was modifiedcompiler-rt/lib/orc/elfnix_tls.x86-64.S (diff)
The file was modifiedclang/cmake/caches/CrossWinToARMLinux.cmake (diff)
The file was modifiedcompiler-rt/lib/orc/macho_tlv.x86-64.S (diff)
Commit 2dcad7754a204d5dbb78fef8f6b13cd005456e33 by aeubanks
[clang] Don't clear AST if we have consumers running after the main action

Downstream users may have Clang plugins. By default these plugins run
after the main action if they are specified on the command line.

Since these plugins are ASTConsumers, presumably they inspect the AST.
So we shouldn't clear it if any plugins run after the main action.

Reviewed By: dblaikie, hans

Differential Revision:
The file was modifiedclang/lib/Frontend/FrontendAction.cpp (diff)
The file was addedclang/test/Misc/clear-ast-before-backend-plugins.c
Commit cfca2ae1f5babaf0877bbd3ce8665b9db3344411 by aaron
Update the C++ and C status pages now that Clang 13 has been released
The file was modifiedclang/www/cxx_status.html (diff)
The file was modifiedclang/www/c_status.html (diff)
Commit acfe7d895d2f0897fe8f79151a491e75a7a99a25 by aaron
Update the title and encoding for the C++ status page
The file was modifiedclang/www/cxx_status.html (diff)
Commit baea663a6e9bc52f80995d02bb8149934c825612 by listmail
[IPT] Restructure cache to allow lazy update following invalidation [NFC]

This change restructures the cache used in IPT to point not to the first special instruction, but to the first instruction which *could* be special. That is, the cached reference is always equal to the first special, or comes before it in the block.

This avoids expensive block scans when we are removing special instructions from the beginning of the block. At the moment, this case is not heavily used, though it does trigger in GVN when doing CSE of calls. The main motivation was a change I'm no longer planning to move forward with, but the cache optimization seemed worthwhile as a minor perf win at low cost.

Differential Revision:
The file was modifiedllvm/include/llvm/Analysis/InstructionPrecedenceTracking.h (diff)
The file was modifiedllvm/lib/Analysis/InstructionPrecedenceTracking.cpp (diff)
Commit 92673fad66f449f63acc76dfbb5e0bf05978663b by fraser
[RISCV] Add a test showing incorrect VSETVLI insertion

This test case, reduced from an internal test failure, shows how we may
incorrectly skip the insertion of VSETVLI instructions when doing
cross-basic-block analysis.

The entry block ends in a `e32,mf2`. Its single successor, %bb.1, ends with a
`e8,mf8`, but for a mask-type instruction, so is considered compatible.
This means that the info %bb.1 is merged into its predecessor so
produces a `e32,mf2`. When it comes to the last block, which requires a
`e32,mf2`, we skip the insertion of a vsetvli because all predecessors
were determined to preserve the right vtype.

However, when %bb.1 is actually laid out it does actually need a
`e8,mf8` vsetvli, since the previous instruction has a different tail
policy. This means that when execution flows from %bb.1 to %bb.3, the
`vadd.vx` is misconfigured.

Reviewed By: craig.topper

Differential Revision:
The file was modifiedllvm/test/CodeGen/RISCV/rvv/vsetvli-insert-crossbb.mir (diff)
Commit 19b07ec00062daffcb2fb132f4ac0f2484ff44fa by aeubanks
Reland [clang] Pass -clear-ast-before-backend in Clang::ConstructJob()

This clears the memory used for the Clang AST before we run LLVM passes.
shows significant memory savings with no slowdown (in fact -O0 slightly speeds up).

For more background, see

Turn this off for the interpreter since it does codegen multiple times.

Relanding with fix for -print-stats: D111973

Relanding with fix for plugins: D112190

If you'd like to use this even with plugins, consider using the features
introduced in D112096.

This can be turned off with -Xclang -no-clear-ast-before-backend.

Differential Revision:
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp (diff)
The file was modifiedclang/lib/Interpreter/Interpreter.cpp (diff)
Commit 66d22b4da4afe00c695d9714687aac8b9e4b7396 by spatel
[VectorCombine] fold shuffle-of-binops with common operand

shuf (bo X, Y), (bo X, W) --> bo (shuf X), (shuf Y, W)

This is motivated by an example in D111800
(although that patch avoids the problem for that particular example).

The pattern is shown in reduced form with:

There is no difference on the PhaseOrdering test from D111800
because the aarch64 cost model says that the shuffle cost is 3 while
the fadd cost is 2.

Differential Revision:
The file was modifiedllvm/test/Transforms/VectorCombine/X86/shuffle.ll (diff)
The file was modifiedllvm/lib/Transforms/Vectorize/VectorCombine.cpp (diff)
Commit 13c31539f7da403fee11fe2163249837460c3bf2 by clementval
[fir] Add Character helper

This patch is extracted from D111337. It introduce the
CharacterExprHelper that helps dealing with character in FIR.

Reviewed By: schweitz, awarzynski

Differential Revision:

Co-authored-by: Jean Perier <>
Co-authored-by: Eric Schweitz <>
Co-authored-by: V Donaldson <>
The file was modifiedflang/lib/Optimizer/Builder/CMakeLists.txt (diff)
The file was addedflang/unittests/Optimizer/Builder/CharacterTest.cpp
The file was modifiedflang/unittests/Optimizer/CMakeLists.txt (diff)
The file was modifiedflang/include/flang/Optimizer/Dialect/FIRType.h (diff)
The file was addedflang/lib/Optimizer/Builder/Character.cpp
The file was modifiedflang/include/flang/Optimizer/Builder/FIRBuilder.h (diff)
The file was modifiedflang/lib/Optimizer/Builder/FIRBuilder.cpp (diff)
The file was addedflang/include/flang/Optimizer/Builder/Character.h
The file was modifiedflang/include/flang/Optimizer/Dialect/FIROpsSupport.h (diff)
The file was modifiedflang/unittests/Optimizer/Builder/FIRBuilderTest.cpp (diff)
Commit 92a6dd6e50c8055a4db88f42966e48a915b81c76 by blangmuir
[test][ORC-RT] Disable x86_64 tests when target arch does not match

When cross-compiling, these tests will fail. For now leave the host arch
check that was already there since I don't know why it was added.
The file was modifiedcompiler-rt/test/orc/TestCases/Darwin/x86-64/ (diff)
The file was modifiedcompiler-rt/test/orc/TestCases/FreeBSD/x86-64/ (diff)
The file was modifiedcompiler-rt/test/orc/TestCases/Linux/x86-64/ (diff)
Commit 21f9e4a1ed91adc9aac0ba209ad4c264cad3b6ff by ataei
Avoid infinity arithmetics when computing exp approximations

Otherwise this can result a poison value on some platforms see

Reviewed By: ezhulenev

Differential Revision:
The file was modifiedmlir/lib/Dialect/Math/Transforms/PolynomialApproximation.cpp (diff)
The file was modifiedmlir/test/mlir-cpu-runner/math_polynomial_approx.mlir (diff)
The file was modifiedmlir/test/Dialect/Math/polynomial-approximation.mlir (diff)
Commit b7144ab7651702b7171f53cd778780fc3a52863e by riddleriver
[NFC] Clean up a few methods within GreedyPatternRewriter

Move a few methods out of line and clean up comments.
The file was modifiedmlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp (diff)
Commit 5652ecc3739df66b259bd9d40b210ee1b8f35248 by riddleriver
[mlir:GreedyPatternRewriter] Add debug logging for pattern rewriter actions

This effectively mirrors the logging in dialect conversion, which has proven
very useful for understanding the pattern application process.

Differential Revision:
The file was modifiedmlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp (diff)
The file was modifiedmlir/docs/ (diff)
Commit a4b8979a81afe45463860579cd82ee7bb45d1513 by flo
[SLP] Add additional tests which caused crashes with versioning.
The file was modifiedllvm/test/Transforms/SLPVectorizer/AArch64/memory-runtime-checks.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/AArch64/memory-runtime-checks-in-loops.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/memory-runtime-checks.ll (diff)
Commit ba4920e98e2f5ef33024e16979786981e705cc80 by phosek
Revert "[CMake] Cache the compiler-rt library search results"

This reverts commit 0eed292fbae22a8856682b07e1cb968424b49941, there
are compiler-rt build failures that appear to have been introduced
by this change.
The file was modifiedlibcxxabi/CMakeLists.txt (diff)
The file was modifiedlibcxx/CMakeLists.txt (diff)
The file was modifiedlibcxx/cmake/config-ix.cmake (diff)
The file was modifiedcompiler-rt/CMakeLists.txt (diff)
The file was addedcompiler-rt/cmake/Modules/HandleCompilerRT.cmake
The file was modifiedcompiler-rt/cmake/config-ix.cmake (diff)
The file was modifiedcompiler-rt/cmake/Modules/AddCompilerRT.cmake (diff)
The file was removedcmake/Modules/HandleCompilerRT.cmake
The file was modifiedlibcxxabi/src/CMakeLists.txt (diff)
The file was addedlibcxx/cmake/Modules/HandleCompilerRT.cmake
The file was modifiedlibcxxabi/cmake/config-ix.cmake (diff)
The file was modifiedlibunwind/CMakeLists.txt (diff)
The file was modifiedlibunwind/cmake/config-ix.cmake (diff)
The file was modifiedlibcxx/src/CMakeLists.txt (diff)
The file was modifiedcompiler-rt/lib/builtins/CMakeLists.txt (diff)
The file was addedlibcxxabi/cmake/Modules/HandleCompilerRT.cmake
The file was addedlibunwind/cmake/Modules/HandleCompilerRT.cmake
Commit 408075ec6a955998eea3549fa7f79c512c6b02d1 by aaron
Add the papers that were applied to the latest C2x working draft
The file was modifiedclang/www/c_status.html (diff)
Commit 3781a46c3c70a83b2a5312aa358512578e87b9ca by aeubanks
Revert "[IPT] Restructure cache to allow lazy update following invalidation [NFC]"

This reverts commit baea663a6e9bc52f80995d02bb8149934c825612.

Causes crashes, e.g.
The file was modifiedllvm/include/llvm/Analysis/InstructionPrecedenceTracking.h (diff)
The file was modifiedllvm/lib/Analysis/InstructionPrecedenceTracking.cpp (diff)
Commit d55be79d754890b45352611d04b6b16c4fd3c737 by craig.topper
[RISCV] Expand scalable vector CTTZ/CTLZ/CTPOP.

Differential Revision:
The file was modifiedllvm/lib/Target/RISCV/RISCVISelLowering.cpp (diff)
The file was addedllvm/test/CodeGen/RISCV/rvv/cttz-sdnode.ll
The file was addedllvm/test/CodeGen/RISCV/rvv/ctlz-sdnode.ll
The file was addedllvm/test/CodeGen/RISCV/rvv/ctpop-sdnode.ll
Commit ab3d5d0533678ee93c93bd62db79c091741096f0 by pirama
Revert "[compiler-rt/profile] Hide __llvm_profile_raw_version"

This reverts commit 69708477be258dbea2711f6a35c02685659b49d3 to unblock
instrprof-darwin-exports.c failure on MacOS bots.
The file was modifiedcompiler-rt/lib/profile/InstrProfilingVersionVar.c (diff)
The file was modifiedcompiler-rt/lib/profile/InstrProfiling.h (diff)
Commit f7587a9d38f42ef80965444701aed63af0bcbdf7 by kbobyrev
Follow-up on

Use hash code instead of unsigned for the hash return value.
The file was modifiedllvm/include/llvm/Support/FileSystem/UniqueID.h (diff)
Commit 184852584231c60156fb4ec7eddb228b13837c39 by nikita.ppv
[CodeMetrics] Don't require speculatability for ephemeral values

As discussed in D112016, our current requirement of speculatability
for ephemeral is overly strict: What we really care about is that
the instruction will be DCEd once the assume is dropped. For that
it is sufficient that the instruction is side-effect free and not
a terminator.

In particular, this allows non-dereferenceable loads to be ephemeral

Differential Revision:
The file was modifiedllvm/lib/Analysis/CodeMetrics.cpp (diff)
The file was modifiedllvm/lib/Transforms/Utils/SimplifyCFG.cpp (diff)
The file was modifiedllvm/test/Transforms/Inline/ephemeral.ll (diff)
The file was modifiedllvm/lib/Analysis/ValueTracking.cpp (diff)
The file was modifiedllvm/test/Transforms/SimplifyCFG/unprofitable-pr.ll (diff)
Commit 626f0449f345db0e27f33b5cf5a8a0a44f10cd13 by i
[Triple] Don't repeat the function name in comments. NFC
The file was modifiedllvm/include/llvm/ADT/Triple.h (diff)
Commit aee49255074fd4ef38d97e6e70cbfbf2f9fd0fa7 by dblaikie
Recommit: Compress formatting of array type names (int [4] -> int[4])

Based on post-commit review discussion on
2bd84938470bf2e337801faafb8a67710f46429d with Richard Smith.

Other uses of forcing HasEmptyPlaceHolder to false seem OK to me -
they're all around pointer/reference types where the pointer/reference
token will appear at the rightmost side of the left side of the type
name, so they make nested types (eg: the "int" in "int *") behave as
though there is a non-empty placeholder (because the "*" is essentially
the placeholder as far as the "int" is concerned).

This was originally committed in 277623f4d5a672d707390e2c3eaf30a9eb4b075c

Reverted in f9ad1d1c775a8e264bebc15d75e0c6e5c20eefc7 due to breakages
outside of clang - lldb seems to have some strange/strong dependence on
"char [N]" versus "char[N]" when printing strings (not due to that name
appearing in DWARF, but probably due to using clang to stringify type
names) that'll need to be addressed, plus a few other odds and ends in
other subprojects (clang-tools-extra, compiler-rt, etc).
The file was modifiedclang/test/OpenMP/distribute_parallel_for_reduction_messages.cpp (diff)
The file was modifiedclang/test/SemaCXX/constexpr-string.cpp (diff)
The file was modifiedclang/test/SemaCXX/cxx0x-type-convert-construct.cpp (diff)
The file was modifiedclang/test/SemaCXX/attr-gnu.cpp (diff)
The file was modifiedclang/test/SemaObjC/nullability.m (diff)
The file was modifiedclang-tools-extra/clangd/unittests/ClangdLSPServerTests.cpp (diff)
The file was modifiedclang/test/Import/array-init-loop-expr/test.cpp (diff)
The file was modifiedclang/test/OpenMP/parallel_reduction_messages.c (diff)
The file was modifiedlibcxx/test/std/concepts/concepts.lang/concept.default.init/default_initializable.verify.cpp (diff)
The file was modifiedlldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp (diff)
The file was modifiedclang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp (diff)
The file was modifiedclang/test/AST/ast-dump-template-decls-json.cpp (diff)
The file was modifiedclang/test/Analysis/lifetime-cfg-output.cpp (diff)
The file was modifiedclang/test/CXX/temp/temp.explicit/p8.cpp (diff)
The file was modifiedclang/test/SemaCXX/cxx1z-decomposition.cpp (diff)
The file was modifiedlldb/test/API/lang/c/array_types/ (diff)
The file was modifiedlldb/test/API/lang/c/vla/ (diff)
The file was modifiedclang/test/PCH/objc_exprs.m (diff)
The file was modifiedclang/test/SemaCXX/coroutines.cpp (diff)
The file was modifiedclang/test/Sema/array-init.c (diff)
The file was modifiedclang/test/CXX/basic/basic.types/p10.cpp (diff)
The file was modifiedclang/test/SemaObjC/flexible-array.m (diff)
The file was modifiedclang/test/AST/pr47636.cpp (diff)
The file was modifiedlldb/test/API/functionalities/data-formatter/data-formatter-cpp/ (diff)
The file was modifiedclang/test/SemaObjC/warn-write-strings.m (diff)
The file was modifiedclang/test/SemaCXX/address-space-initialize.cpp (diff)
The file was modifiedclang/test/CXX/expr/expr.prim/ (diff)
The file was modifiedlldb/test/API/functionalities/data-formatter/data-formatter-ptr-to-array/ (diff)
The file was modifiedclang/test/SemaObjC/rdr-6211479-array-property.m (diff)
The file was modifiedclang/test/Layout/ms-x86-lazy-empty-nonvirtual-base.cpp (diff)
The file was modifiedclang/test/AST/ast-dump-expr-json.cpp (diff)
The file was modifiedclang/test/Sema/warn-sizeof-array-decay.c (diff)
The file was modifiedclang/test/AST/ast-dump-stmt.cpp (diff)
The file was modifiedclang/test/AST/ast-dump-expr.cpp (diff)
The file was modifiedclang-tools-extra/clangd/unittests/DiagnosticsTests.cpp (diff)
The file was modifiedclang/test/AST/ast-dump-APValue-arithmetic.cpp (diff)
The file was modifiedclang/test/CXX/dcl.decl/dcl.decomp/p2.cpp (diff)
The file was modifiedclang/bindings/python/tests/cindex/ (diff)
The file was modifiedclang/test/SemaTemplate/instantiate-static-var.cpp (diff)
The file was modifiedclang/test/SemaCXX/nullability.cpp (diff)
The file was modifiedclang/test/SemaObjC/ivar-sem-check-1.m (diff)
The file was modifiedclang/test/SemaOpenCL/ (diff)
The file was modifiedclang/test/CXX/dcl.dcl/dcl.attr/dcl.align/p7.cpp (diff)
The file was modifiedclang/test/Sema/builtin-expect-with-probability-avr.cpp (diff)
The file was modifiedlldb/test/API/lang/cpp/char8_t/ (diff)
The file was modifiedclang/test/AST/atomic-expr.cpp (diff)
The file was modifiedclang/test/SemaObjC/method-bad-param.m (diff)
The file was modifiedclang-tools-extra/clangd/unittests/HoverTests.cpp (diff)
The file was modifiedlldb/test/API/functionalities/data-formatter/data-formatter-advanced/ (diff)
The file was modifiedclang/test/SemaCXX/c99-variable-length-array.cpp (diff)
The file was modifiedclang/test/SemaCXX/warn-string-conversion.cpp (diff)
The file was modifiedlldb/test/Shell/SymbolFile/NativePDB/global-classes.cpp (diff)
The file was modifiedclang/test/SemaCXX/c99-variable-length-array-cxx11.cpp (diff)
The file was modifiedclang/test/AST/ast-dump-records.cpp (diff)
The file was modifiedclang/test/Layout/aix-Wpacked-expecting-diagnostics.cpp (diff)
The file was modifiedclang/test/AST/ast-dump-records.c (diff)
The file was modifiedclang/test/SemaObjC/argument-checking.m (diff)
The file was modifiedlldb/test/Shell/SymbolFile/DWARF/x86/array-sizes.s (diff)
The file was modifiedclang/test/SemaCXX/compare-cxx2a.cpp (diff)
The file was modifiedclang/test/AST/ast-dump-openmp-begin-declare-variant_9.c (diff)
The file was modifiedclang/test/AST/float16.cpp (diff)
The file was modifiedclang/test/OpenMP/distribute_parallel_for_lastprivate_messages.cpp (diff)
The file was modifiedclang/test/Sema/crash-invalid-array.c (diff)
The file was modifiedlldb/test/Shell/SymbolFile/DWARF/x86/DW_AT_const_value.s (diff)
The file was modifiedclang/test/Index/print-type-size.cpp (diff)
The file was modifiedclang/test/CXX/temp/temp.decls/temp.variadic/p2.cpp (diff)
The file was modifiedclang/test/OpenMP/distribute_simd_firstprivate_messages.cpp (diff)
The file was modifiedclang/test/Sema/compound-literal.c (diff)
The file was modifiedclang/test/SemaOpenCLCXX/address-space-deduction.clcpp (diff)
The file was modifiedclang/test/SemaOpenCL/ (diff)
The file was modifiedclang/test/Sema/c11-typedef-redef.c (diff)
The file was modifiedclang/test/AST/ast-dump-color.cpp (diff)
The file was modifiedclang/test/Sema/assign.c (diff)
The file was modifiedclang/test/Sema/nullability.c (diff)
The file was modifiedclang/test/Parser/atomic.c (diff)
The file was modifiedclang/test/SemaObjCXX/ (diff)
The file was modifiedclang/test/Modules/odr_hash.cpp (diff)
The file was modifiedclang/test/SemaCXX/overload-member-call.cpp (diff)
The file was modifiedlldb/source/DataFormatters/FormatManager.cpp (diff)
The file was modifiedlldb/source/Commands/CommandObjectType.cpp (diff)
The file was modifiedclang/test/AST/sourceranges.cpp (diff)
The file was modifiedclang/test/AST/ast-dump-types-errors-json.cpp (diff)
The file was modifiedclang/test/Sema/empty1.c (diff)
The file was modifiedclang/test/ARCMT/ (diff)
The file was modifiedclang/test/Sema/var-redecl.c (diff)
The file was modifiedclang/test/CXX/dcl.decl/dcl.meaning/dcl.array/p3.cpp (diff)
The file was modifiedclang/test/CodeGen/const-init.c (diff)
The file was modifiedclang/test/CXX/temp/temp.arg/temp.arg.nontype/p1.cpp (diff)
The file was modifiedclang/test/Sema/vla.cpp (diff)
The file was modifiedclang/test/Layout/ms-x86-basic-layout.cpp (diff)
The file was modifiedclang/test/Sema/typedef-retain.c (diff)
The file was modifiedclang/test/Modules/cxx-templates.cpp (diff)
The file was modifiedclang/test/OpenMP/distribute_parallel_for_firstprivate_messages.cpp (diff)
The file was modifiedclang/test/SemaCXX/constant-expression-cxx11.cpp (diff)
The file was modifiedlldb/test/API/functionalities/data-formatter/typedef_array/main.cpp (diff)
The file was modifiedclang/test/CodeGen/dump-struct-builtin.c (diff)
The file was modifiedclang/test/Analysis/scopes-cfg-output.cpp (diff)
The file was modifiedclang/test/SemaTemplate/deduction-guide.cpp (diff)
The file was modifiedclang/test/SemaTemplate/instantiate-local-class.cpp (diff)
The file was modifiedclang/test/Sema/gnu-flags.c (diff)
The file was modifiedclang/test/Sema/builtin-expect-with-probability.cpp (diff)
The file was modifiedclang/test/CXX/temp/temp.constr/temp.constr.constr/non-function-templates.cpp (diff)
The file was modifiedclang/test/Layout/ms-x86-empty-virtual-base.cpp (diff)
The file was modifiedclang/test/SemaCXX/dcl_init_aggr.cpp (diff)
The file was modifiedclang/test/SemaOpenCL/ (diff)
The file was modifiedclang/test/Analysis/auto-obj-dtors-cfg-output.cpp (diff)
The file was modifiedclang/test/SemaCXX/flexible-array-test.cpp (diff)
The file was modifiedclang/test/Analysis/malloc-sizeof.c (diff)
The file was modifiedclang/test/CXX/stmt.stmt/stmt.iter/stmt.ranged/p1.cpp (diff)
The file was modifiedclang/test/SemaCXX/typeid.cpp (diff)
The file was modifiedclang/test/Layout/ms-x86-misalignedarray.cpp (diff)
The file was modifiedclang/test/SemaCXX/alias-template.cpp (diff)
The file was modifiedclang/test/AST/ast-dump-expr.c (diff)
The file was modifiedclang/test/AST/ast-dump-file-line-json.c (diff)
The file was modifiedclang/test/Layout/aix-power-alignment-typedef.cpp (diff)
The file was modifiedclang/test/Analysis/cfg.cpp (diff)
The file was modifiedclang/test/AST/ast-dump-array.cpp (diff)
The file was modifiedclang/unittests/AST/ASTImporterTest.cpp (diff)
The file was modifiedclang/test/SemaTemplate/temp_arg_nontype.cpp (diff)
The file was modifiedclang/test/OpenMP/distribute_parallel_for_simd_shared_messages.cpp (diff)
The file was modifiedclang/test/Layout/ms-x86-empty-nonvirtual-bases.cpp (diff)
The file was modifiedclang/test/SemaTemplate/instantiate-init.cpp (diff)
The file was modifiedclang/test/SemaCXX/no-wchar.cpp (diff)
The file was modifiedclang/test/SemaCXX/for-range-examples.cpp (diff)
The file was modifiedclang/test/SemaTemplate/pack-deduction.cpp (diff)
The file was modifiedclang/test/Layout/ms-x86-empty-layout.c (diff)
The file was modifiedclang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp (diff)
The file was modifiedclang/test/AST/ast-dump-stmt-json.cpp (diff)
The file was modifiedclang/test/Misc/diag-macro-backtrace2.c (diff)
The file was modifiedlldb/test/API/lang/cpp/non-type-template-param/ (diff)
The file was modifiedclang/test/Layout/ms-aligned-array.c (diff)
The file was modifiedclang/test/Sema/warn-write-strings.c (diff)
The file was modifiedclang/test/Analysis/more-dtors-cfg-output.cpp (diff)
The file was modifiedclang/test/Misc/integer-literal-printing.cpp (diff)
The file was modifiedclang/test/SemaCXX/MicrosoftExtensions.cpp (diff)
The file was modifiedlldb/test/API/lang/cpp/char1632_t/ (diff)
The file was modifiedclang/lib/AST/TypePrinter.cpp (diff)
The file was modifiedclang/test/CXX/expr/expr.prim/ (diff)
The file was modifiedclang/test/Layout/no-unique-address.cpp (diff)
The file was modifiedclang/test/Index/print-type.c (diff)
The file was modifiedclang/test/SemaCXX/decl-init-ref.cpp (diff)
The file was modifiedclang/test/Layout/ms-x86-pack-and-align.cpp (diff)
The file was modifiedlldb/test/API/tools/lldb-vscode/variables/ (diff)
The file was modifiedclang/test/CXX/dcl.dcl/dcl.spec/dcl.typedef/p2-0x.cpp (diff)
The file was modifiedclang/test/SemaCXX/overload-call.cpp (diff)
The file was modifiedclang/test/CXX/dcl.decl/dcl.init/dcl.init.list/p3.cpp (diff)
The file was modifiedclang/test/AST/ast-dump-expr-json.m (diff)
The file was modifiedclang/test/Sema/matrix-type-builtins.c (diff)
The file was modifiedclang/test/AST/ast-dump-expr-json.c (diff)
The file was modifiedlldb/test/API/lang/cpp/class_static/ (diff)
The file was modifiedclang/test/Index/print-type.cpp (diff)
The file was modifiedclang/test/Layout/aix-double-struct-member.cpp (diff)
The file was modifiedclang/test/Sema/generic-selection.c (diff)
The file was modifiedclang/test/Analysis/explain-svals.cpp (diff)
The file was modifiedclang/test/OpenMP/distribute_simd_lastprivate_messages.cpp (diff)
The file was modifiedclang/test/Sema/types.c (diff)
The file was modifiedclang/test/Layout/watchos-standard-layout.cpp (diff)
The file was modifiedclang/test/Sema/predef.c (diff)
The file was modifiedlldb/test/API/lang/cpp/bitfields/ (diff)
The file was modifiedclang/test/SemaCXX/cxx0x-initializer-aggregates.cpp (diff)
The file was modifiedclang/test/SemaCXX/constexpr-builtin-bit-cast.cpp (diff)
The file was modifiedclang/test/SemaCXX/exceptions.cpp (diff)
The file was modifiedclang/test/CXX/drs/dr177x.cpp (diff)
The file was modifiedclang/test/SemaCXX/new-delete.cpp (diff)
The file was modifiedclang/test/AST/ast-dump-APValue-array.cpp (diff)
The file was modifiedclang/test/SemaCXX/array-bound-merge.cpp (diff)
The file was modifiedclang/test/AST/ast-dump-records-json.cpp (diff)
The file was modifiedclang/test/Sema/incomplete-decl.c (diff)
The file was modifiedcompiler-rt/test/ubsan/TestCases/Misc/bounds.cpp (diff)
The file was modifiedclang/test/Sema/array-constraint.c (diff)
The file was modifiedclang/test/Layout/aix-no-unique-address-with-double.cpp (diff)
The file was modifiedclang/test/SemaCXX/cxx2a-compat.cpp (diff)
The file was modifiedclang/test/SemaCXX/typedef-redecl.cpp (diff)
The file was modifiedclang/test/Sema/warn-sizeof-arrayarg.c (diff)
The file was modifiedclang/test/SemaCXX/constant-expression-cxx2a.cpp (diff)
The file was modifiedlldb/test/API/functionalities/data-formatter/data-formatter-smart-array/ (diff)
The file was modifiedclang/test/Sema/extern-redecl.c (diff)
The file was modifiedclang/test/CXX/special/class.copy/p23-cxx11.cpp (diff)
The file was modifiedclang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/p13.cpp (diff)
The file was modifiedclang/test/ASTMerge/var/test.c (diff)
The file was modifiedclang/test/OpenMP/distribute_firstprivate_messages.cpp (diff)
The file was modifiedclang/test/SemaCXX/static-assert-cxx17.cpp (diff)
The file was modifiedclang/test/AST/ast-dump-templates.cpp (diff)
The file was modifiedclang/test/CXX/expr/expr.prim/expr.prim.lambda/p4.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.observers/ (diff)
The file was modifiedclang/test/CXX/special/class.ctor/p5-0x.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.observers/ (diff)
The file was modifiedclang/test/CXX/temp/temp.param/p10-2a.cpp (diff)
The file was modifiedclang/test/Sema/merge-decls.c (diff)
The file was modifiedclang/test/OpenMP/target_teams_distribute_firstprivate_messages.cpp (diff)
The file was modifiedclang/test/OpenMP/distribute_simd_reduction_messages.cpp (diff)
Commit d723ad5bcf7133c3f3950ebb63edf4ddfee56581 by dblaikie
Enable libc++ in the build for libcxx initializerlist pretty printers

Differential Revision:
The file was modifiedlldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/initializerlist/Makefile (diff)
The file was modifiedlldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/initializerlist/ (diff)
Commit fdb66eda77a00d4ff0cb2730290f0fadf7840770 by aeubanks
[test] Make sure plugin actually runs in clear-ast-before-backend-plugins.c

Reviewed By: dblaikie

Differential Revision:
The file was modifiedclang/test/Misc/clear-ast-before-backend-plugins.c (diff)
Commit 8262f45c73ae97de038e9b66ec5016938424123e by nikita.ppv
[InstCombine] Add additional store forwarding test (NFC)

Variant where the load is larger than the store. Make sure we
don't forward this.
The file was modifiedllvm/test/Transforms/InstCombine/load-store-forward.ll (diff)
Commit 52f4922ebb7bfe5f9a6c32cf7d637b84e491526a by Andrey.Churbanov
[OpenMP][NFC] skip atomic tests for non-x86 arch
The file was modifiedopenmp/runtime/test/atomic/kmp_atomic_cas.c (diff)
The file was modifiedopenmp/runtime/test/atomic/kmp_atomic_float10_max_min.c (diff)
The file was modifiedopenmp/runtime/test/atomic/kmp_atomic_cas_cpt.c (diff)
Commit d9eca3320a4d8db11ad65229ef6f564d134fc894 by vsapsai
[modules] Fix tracking ObjCInterfaceType decl when there are multiple definitions.

With the old approach we were updating `ObjCInterfaceType.Decl` to the
last encountered definition. But during loading modules
`ASTDeclReader::VisitObjCInterfaceDecl` keeps the *first* encountered
definition. So with multiple definitions imported there would be a
disagreement between expected definition in `ObjCInterfaceType.Decl` and
actual definition `ObjCInterfaceDecl::getDefinition` which can lead to
incorrect diagnostic.

Fix by not tracking definition in `ObjCInterfaceType` explicitly but by
getting it from redeclaration chain.

Partially reverted 919fc50034b44c48aae8b80283f253ec2ee17f45 keeping the
modified test case as the correct behavior is achieved in a different

Differential Revision:
The file was modifiedclang/lib/AST/Type.cpp (diff)
The file was modifiedclang/test/Modules/ (diff)
The file was modifiedclang/lib/AST/DeclObjC.cpp (diff)
The file was modifiedclang/lib/Sema/SemaLookup.cpp (diff)
The file was modifiedclang/include/clang/AST/Type.h (diff)
The file was modifiedclang/test/Modules/interface-diagnose-missing-import.m (diff)
Commit 0472e83ffcc6c0506b0cd67844b97cb34eaa302e by yhs
BPF: emit BTF_KIND_DECL_TAG for typedef types

If a typedef type has __attribute__((btf_decl_tag("str"))) with
bpf target, emit BTF_KIND_DECL_TAG for that type in the BTF.

Differential Revision:
The file was addedllvm/test/CodeGen/BPF/BTF/tag-typedef.ll
The file was modifiedllvm/lib/Target/BPF/BTFDebug.cpp (diff)
Commit d7b338537cf360568474d31c2be86110ac22dc32 by gclayton
Modify "statistics dump" to dump JSON.

This patch is a smaller version of a previous patch

This patch modifies the output of "statistics dump" to be able to get stats from the current target. It adds 3 new stats as well. The output of "statistics dump" is now emitted as JSON so that it can be used to track performance and statistics and the output could be used to populate a database that tracks performance. Sample output looks like:

(lldb) statistics dump
  "expressionEvaluation": {
    "failures": 0,
    "successes": 0
  "firstStopTime": 0.34164492800000001,
  "frameVariable": {
    "failures": 0,
    "successes": 0
  "launchOrAttachTime": 0.31969605400000001,
  "targetCreateTime": 0.0040863039999999998

The top level keys are:

"expressionEvaluation" which replaces the previous stats that were emitted as plain text. This dictionary contains the success and fail counts.
"frameVariable" which replaces the previous stats for "frame variable" that were emitted as plain text. This dictionary contains the success and fail counts.
"targetCreateTime" contains the number of seconds it took to create the target and load dependent libraries (if they were enabled) and also will contain symbol preloading times if that setting is enabled.
"launchOrAttachTime" is the time it takes from when the launch/attach is initiated to when the first private stop occurs.
"firstStopTime" is the time in seconds that it takes to stop at the first stop that is presented to the user via the LLDB interface. This value will only have meaning if you set a known breakpoint or stop location in your code that you want to measure as a performance test.

This diff is also meant as a place to discuess what we want out of the "statistics dump" command before adding more funcionality. It is also meant to clean up the previous code that was storting statistics in a vector of numbers within the lldb_private::Target class.

Differential Revision:
The file was modifiedlldb/test/API/commands/statistics/basic/ (diff)
The file was modifiedlldb/include/lldb/Target/Target.h (diff)
The file was modifiedlldb/source/Target/Target.cpp (diff)
The file was modifiedlldb/source/Commands/CommandObjectStats.cpp (diff)
The file was modifiedlldb/source/Target/Process.cpp (diff)
The file was modifiedlldb/include/lldb/Target/Process.h (diff)
The file was modifiedlldb/source/Commands/CommandObjectFrame.cpp (diff)
The file was addedlldb/include/lldb/Target/Statistics.h
The file was modifiedlldb/source/Commands/ (diff)
The file was modifiedlldb/source/Commands/CommandObjectExpression.cpp (diff)
The file was modifiedlldb/test/API/functionalities/stats_api/ (diff)
The file was modifiedlldb/packages/Python/lldbsuite/test/ (diff)
The file was modifiedlldb/source/API/SBTarget.cpp (diff)
The file was addedlldb/source/Target/Statistics.cpp
The file was modifiedlldb/source/Target/CMakeLists.txt (diff)
Commit 439fc09fed3262f40aba6110282b8c023dc4cd89 by llvmgnsyncbot
[gn build] Port d7b338537cf3
The file was modifiedllvm/utils/gn/secondary/lldb/source/Target/ (diff)
Commit 969b72fb662b9dc2124c6eb7797feb7e3bdd38d5 by Stanislav.Mekhanoshin
Add test to check we can instcombine after reassociate. NFC.

The pattern became optimized after b92412fb286b.

Differential Revision:
The file was addedllvm/test/Transforms/PhaseOrdering/reassociate-instcombine.ll
Commit 64f002c6d36d674a924c6116ec0b2d731cc3981c by dblaikie
Follow-up fixes for aee49255074fd4ef38d97e6e70cbfbf2f9fd0fa7
The file was modifiedlldb/test/Shell/SymbolFile/PDB/typedefs.test (diff)
The file was modifiedlldb/test/Shell/SymbolFile/PDB/udt-layout.test (diff)
Commit 3087a8488948f575a81158494fd0609198ef5e9e by martin
[libcxx] [test] Add an XFAIL for the timespec test for MinGW targets

MinGW headers/libs lack timespec_get.

Differential Revision:
The file was modifiedlibcxx/test/std/ (diff)
Commit 6836629f889194202da28b745e82d0931d000a2b by martin
[libcxx] [test] Add a specific XFAIL for a MinGW env failure that is fixed in Clang 14

This issue only occurs when linked statically in MinGW configurations,
and has been fixed for Clang 14 by

Differential Revision:
The file was modifiedlibcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.constr/F.pass.cpp (diff)
Commit 2ba572a82a35051cdee91f6bb00d3db322ae13a3 by clementval
[fir] Remove createConcatenate test temporarily

This test is makeing one buildbot fail for unknown reason. Remove
it until we can investifate further.
The file was modifiedflang/unittests/Optimizer/Builder/CharacterTest.cpp (diff)
Commit 5dc339d9825f1dbe788cfb69c88210a59bbf8e3a by Jessica Paquette
[AArch64][GlobalISel] Fold 64-bit cmps with 64-bit adds

G_ICMP is selected to an arithmetic overflow op (ADDS/SUBS/etc) with a dead
destination + a CSINC instruction.

We have a fold which allows us to combine 32-bit adds with G_ICMP.

The problem with G_ICMP is that we model it as always having a 32-bit
destination even though it can be a 64-bit operation. So, we were missing some
opportunities for 64-bit folds.

This patch teaches the fold to recognize 64-bit G_ICMPs + refactors some of
the code surrounding CSINC accordingly.

(Later down the line, I think we should probably change the way we handle G_ICMP
in general.)

Differential Revision:
The file was modifiedllvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp (diff)
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/select-cmp.mir (diff)
Commit 1d8cc45b0e4e316dbc4d4724964f1115fdb3f909 by thomasraoux
[mlir][vector] Add patterns to convert multidimreduce to vector.contract

add several patterns that will simplify contraction vectorization in the
future. With those canonicalizationns we will be able to remove the special
case for contration during vectorization and rely on those transformations to
avoid materizalizing broadcast ops.

Differential Revision:
The file was modifiedmlir/include/mlir/Dialect/Vector/VectorOps.h (diff)
The file was modifiedmlir/lib/Dialect/Vector/VectorTransforms.cpp (diff)
The file was modifiedmlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp (diff)
The file was addedmlir/test/Dialect/Vector/vector-reduce-to-contract.mlir
Commit 93d0ade17c2da810ee6e0d747c3a594b8bfd0c12 by thomasraoux
[mlir][linalg] Remove special case for contraction vectorization

Handle contraction op like all the other generic op reductions. This
simpifies the code. We now rely on contractionOp canonicalization to
keep the same code quality.

Differential Revision:
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/LinalgStrategyPasses.cpp (diff)
The file was modifiedmlir/test/lib/Dialect/Linalg/TestLinalgTransforms.cpp (diff)
The file was modifiedmlir/test/Dialect/Linalg/vectorization.mlir (diff)
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp (diff)
The file was modifiedmlir/test/Dialect/Linalg/transform-patterns-matmul-to-vector.mlir (diff)
Commit 910838f07da7872d2b7cca5b07d64ea9915b6767 by gclayton
Fix buildbots after
The file was modifiedlldb/packages/Python/lldbsuite/test/ (diff)
The file was modifiedlldb/test/API/commands/statistics/basic/ (diff)
Commit 5c0369eceb2c64b80bf2db57ca6cac7db3e3957b by jeffniu22
Fix escaping in RewriterGen.cpp.

When we escape strings for C++, make sure we use C++ escape
sequences. (In particular, \x22 instead of \22)

Reviewed By: Mogball

Differential Revision:
The file was modifiedmlir/tools/mlir-tblgen/RewriterGen.cpp (diff)
Commit 458ed5fcc3626d84fe13db1048dc6742a60f7624 by craig.topper
[TargetLowering][RISCV] Prevent scalarization of fixed vector bswap.

It's better to do the ands, shifts, ors in the vector domain than
to scalarize it and do those operations on each element.

Reviewed By: RKSimon

Differential Revision:
The file was modifiedllvm/test/CodeGen/RISCV/rvv/fixed-vectors-bswap.ll (diff)
The file was modifiedllvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp (diff)
Commit db0486c46fe187475e4b01a401e14b2def593733 by dblaikie
Remove unused parallel-libs project

Differential Revision:
The file was modifiedllvm/projects/CMakeLists.txt (diff)
The file was removedparallel-libs/acxxel/acxxel.cpp
The file was (diff)
The file was removedparallel-libs/acxxel/tests/span_test.cpp
The file was removedparallel-libs/.clang-format
The file was removedparallel-libs/acxxel/tests/multi_device_test.cpp
The file was removedparallel-libs/.clang-tidy
The file was modifiedllvm/utils/docker/scripts/llvm_checksum/ (diff)
The file was modifiedllvm/CMakeLists.txt (diff)
The file was removedparallel-libs/acxxel/status.h
The file was removedparallel-libs/acxxel/examples/opencl_example.cpp
The file was removedparallel-libs/acxxel/tests/CMakeLists.txt
The file was removedparallel-libs/acxxel/examples/CMakeLists.txt
The file was removedparallel-libs/acxxel/cuda_acxxel.cpp
The file was removedparallel-libs/acxxel/examples/
The file was removedparallel-libs/CMakeLists.txt
The file was removedparallel-libs/README.rst
The file was removedparallel-libs/acxxel/
The file was modifiedllvm/docs/CMake.rst (diff)
The file was removedparallel-libs/acxxel/
The file was removedparallel-libs/acxxel/acxxel.h
The file was removedparallel-libs/acxxel/tests/status_test.cpp
The file was removedparallel-libs/acxxel/CMakeLists.txt
The file was removedparallel-libs/acxxel/LICENSE.TXT
The file was removedparallel-libs/acxxel/opencl_acxxel.cpp
The file was removedparallel-libs/acxxel/span.h
The file was removedparallel-libs/acxxel/customdoxygen.css
The file was removedparallel-libs/acxxel/tests/opencl_test.cpp
The file was removedparallel-libs/acxxel/.clang-format
The file was removedparallel-libs/acxxel/tests/acxxel_test.cpp
The file was removedparallel-libs/acxxel/.clang-tidy
Commit 95935e8285ad0e2872b83190669c9f70f2fd2112 by jeffniu22
Make genAttributeVerifier escape the summary.

The summary can contain references to e.g. attribute defaults, which
can contain special characters. So these strings need to be C++

Reviewed By: Mogball

Differential Revision:
The file was modifiedmlir/tools/mlir-tblgen/OpDefinitionsGen.cpp (diff)
Commit 516884f58b46a60d0aa499e19d792c39f2478aa4 by jeffniu22
[MLIR] Fix FloorDivSIOpConverter that was failing for index type after the arithmetic op refactor

ConstantOp should be used instead of ConstantIntOp to be able to support index type.

Reviewed By: Mogball

Differential Revision:
The file was modifiedmlir/lib/Dialect/Arithmetic/Transforms/ExpandOps.cpp (diff)
The file was modifiedmlir/test/Dialect/Arithmetic/expand-ops.mlir (diff)