Changes

Summary

  1. [llvm] Use range-based for loops (NFC) (details)
  2. [mlir] Handle an edge case when folding reshapes with multiple trailing 1 dimensions (details)
  3. [LLDB][NativePDB] fix find-functions.cpp failure on windows bots (details)
  4. [NFC][AIX]Disable unsupported hip test on AIX (details)
  5. [libc++] Fix incorrect REQUIRES on a locale-dependent test (details)
  6. OpenMP: Start calling setTargetAttributes for generated kernels (details)
  7. [LLDB][NativePDB] fix find-functions.cpp failure on windows bots (2) (details)
  8. [HIP] Add atomic load, atomic store and atomic cmpxchng_weak builtin support in HIP-clang (details)
  9. [NFC][clang]Increase the number of driver diagnostics (details)
  10. [InstCombine] (~(a | b) & c) | ~(c | (a ^ b)) -> ~((a | b) & (c | (b ^ a))) (details)
Commit f240e528cea25fd2a9ae01b1e1fe77f507ed7a2c by kazu
[llvm] Use range-based for loops (NFC)
The file was modifiedllvm/lib/Target/Hexagon/HexagonCommonGEP.cpp
The file was modifiedllvm/lib/ObjectYAML/COFFEmitter.cpp
The file was modifiedllvm/lib/ProfileData/InstrProf.cpp
The file was modifiedllvm/lib/CodeGen/SelectionDAG/ResourcePriorityQueue.cpp
The file was modifiedllvm/lib/CodeGen/MachinePipeliner.cpp
The file was modifiedllvm/lib/Passes/StandardInstrumentations.cpp
The file was modifiedllvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
The file was modifiedllvm/lib/Object/ELFObjectFile.cpp
Commit 8d474f1d157530577f06ce3ef9187e1aaf31a59e by benny.kra
[mlir] Handle an edge case when folding reshapes with multiple trailing 1 dimensions

We would exit early and miss this case.

Differential Revision: https://reviews.llvm.org/D114711
The file was modifiedmlir/test/Dialect/Linalg/canonicalize.mlir
The file was modifiedmlir/lib/Dialect/Utils/ReshapeOpsUtils.cpp
Commit 34d02fada28753221eda576e2f651f9b23c3f1af by zequanwu
[LLDB][NativePDB] fix find-functions.cpp failure on windows bots
The file was modifiedlldb/test/Shell/SymbolFile/NativePDB/find-functions.cpp
Commit 23dc886226306d961c31987db9aad137a69ad539 by wanyu9511
[NFC][AIX]Disable unsupported hip test on AIX

AIX doesn't support GPU. There is no point testing HIP on it.

Reviewed By: Jake-Egan

Differential Revision: https://reviews.llvm.org/D114484
The file was modifiedclang/test/Driver/hip-version.hip
Commit a8278a747ddf9e56262dafddd7c03e29cd85d074 by Louis Dionne
[libc++] Fix incorrect REQUIRES on a locale-dependent test

The test doesn't depend specifically on the en_US.UTF-8 locale, instead
it depends on whether localization support exists, period.

Differential Revision: https://reviews.llvm.org/D114708
The file was modifiedlibcxx/test/libcxx/iterators/iterator.requirements/iterator.assoc.types/iterator.traits/locale_dependent.compile.pass.cpp
Commit 6c27d389c8a00040aad998fe959f38ba709a8750 by Matthew.Arsenault
OpenMP: Start calling setTargetAttributes for generated kernels

This wasn't setting any of the attributes the target would expect to
emit for kernels.
The file was modifiedclang/lib/CodeGen/TargetInfo.cpp
The file was addedclang/test/OpenMP/amdgcn-attributes.cpp
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntime.cpp
Commit fe270ab061fa1200d1f7e121ac6671f7d24b73d6 by zequanwu
[LLDB][NativePDB] fix find-functions.cpp failure on windows bots (2)
The file was modifiedlldb/test/Shell/SymbolFile/NativePDB/find-functions.cpp
Commit df0560ca00182364e0a786d35adb294c3c98dbd0 by Anshil.Gandhi
[HIP] Add atomic load, atomic store and atomic cmpxchng_weak builtin support in HIP-clang

Introduce `__hip_atomic_load`, `__hip_atomic_store` and `__hip_atomic_compare_exchange_weak`
builtins in HIP.

Reviewed By: yaxunl

Differential Revision: https://reviews.llvm.org/D114553
The file was modifiedclang/test/CodeGenCUDA/atomic-ops.cu
The file was modifiedclang/lib/AST/Expr.cpp
The file was modifiedclang/include/clang/AST/Expr.h
The file was modifiedclang/include/clang/Basic/Builtins.def
The file was addedclang/test/SemaCUDA/atomic-ops.cu
The file was modifiedclang/lib/AST/StmtPrinter.cpp
The file was modifiedclang/lib/CodeGen/CGAtomic.cpp
The file was modifiedclang/lib/Sema/SemaChecking.cpp
Commit 3c32c568844c745e3fe7fa72ce3aa65340e545bc by wanyu9511
[NFC][clang]Increase the number of driver diagnostics

We're close to hitting the limited number of driver diagnostics, increase `DIAG_SIZE_DRIVER` to accommodate more.

Reviewed By: erichkeane

Differential Revision: https://reviews.llvm.org/D114615
The file was modifiedclang/include/clang/Basic/DiagnosticIDs.h
Commit 5c6b9e1622b10a543ea4210996d2732a6e5183da by Stanislav.Mekhanoshin
[InstCombine] (~(a | b) & c) | ~(c | (a ^ b)) -> ~((a | b) & (c | (b ^ a)))

```
----------------------------------------
define i3 @src(i3 %a, i3 %b, i3 %c) {
%0:
  %or1 = or i3 %b, %c
  %not1 = xor i3 %or1, 7
  %and1 = and i3 %a, %not1
  %xor1 = xor i3 %b, %c
  %or2 = or i3 %xor1, %a
  %not2 = xor i3 %or2, 7
  %or3 = or i3 %and1, %not2
  ret i3 %or3
}
=>
define i3 @tgt(i3 %a, i3 %b, i3 %c) {
%0:
  %obc = or i3 %b, %c
  %xbc = xor i3 %b, %c
  %o = or i3 %a, %xbc
  %and = and i3 %obc, %o
  %r = xor i3 %and, 7
  ret i3 %r
}
Transformation seems to be correct!
```

Differential Revision: https://reviews.llvm.org/D112955
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
The file was modifiedllvm/test/Transforms/InstCombine/and-xor-or.ll