SuccessChanges

Summary

  1. [libomptarget][amdgpu] Fix kernel launch tracing to match previous behavior (details)
  2. [SelectionDAG] Remove an early-out from computeKnownBits for smin/smax (details)
  3. [LLDB] MinidumpParser: Prefer executable module even at higher address (details)
  4. [HIP] Add signbit(long double) decl (details)
  5. Support emptiness checks for unbounded FlatAffineConstraints. (details)
  6. [OpenMP] Drop the static library libomptarget-nvptx (details)
  7. [clang][MSVC] Fix missing MSInheritanceAttr in template specialization. (details)
Commit 5d165f0b893d4fc5fb5caeb2b05c566dd26e4d89 by jonathanchesterfield
[libomptarget][amdgpu] Fix kernel launch tracing to match previous behavior

Restore control of kernel launch tracing to be >= 1 as it was before

export LIBOMPTARGET_KERNEL_TRACE=1

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D94695
The file was modifiedopenmp/libomptarget/plugins/amdgpu/src/rtl.cpp
Commit 868da2ea939baf8c71a6dcb878cf6094ede9486e by jay.foad
[SelectionDAG] Remove an early-out from computeKnownBits for smin/smax

Even if we know nothing about LHS, it can still be useful to know that
smax(LHS, RHS) >= RHS and smin(LHS, RHS) <= RHS.

Differential Revision: https://reviews.llvm.org/D87145
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
The file was modifiedllvm/test/CodeGen/X86/known-bits-vector.ll
Commit 85dfcaadc5f0920dc8ecbece6c786701b8f45ab4 by jotrem
[LLDB] MinidumpParser: Prefer executable module even at higher address

When a program maps one of its own modules for reading, and then
crashes, breakpad can emit two entries for that module in the
ModuleList.  We have logic to identify this case by checking permissions
on mapped memory regions and report just the module with an executable
region.  As currently written, though, the check is asymmetric -- the
entry with the executable region must be the second one encountered for
the preference to kick in.

This change makes the logic symmetric, so that the first-encountered
module will similarly be preferred if it has an executable region but
the second-encountered module does not.  This happens for example when
the module in question is the executable itself, which breakpad likes to
report first -- we need to ignore the other entry for that module when
we see it later, even though it may be mapped at a lower virtual
address.

Reviewed By: clayborg

Differential Revision: https://reviews.llvm.org/D94629
The file was modifiedlldb/unittests/Process/minidump/MinidumpParserTest.cpp
The file was modifiedlldb/source/Plugins/Process/minidump/MinidumpParser.cpp
Commit be40c12040a0d5551bf3430cbb184b5ef23e25fd by enye.shi
[HIP] Add signbit(long double) decl

An _MSC_VER version of signbit(long double) is required for MSVC headers.

Fixes: SWDEV-256409

Differential Revision: https://reviews.llvm.org/D93062
The file was modifiedclang/lib/Headers/__clang_cuda_math_forward_declares.h
Commit 6ebeba88f51959d763a8f274cdfecea46d51d28c by zinenko
Support emptiness checks for unbounded FlatAffineConstraints.

With this, we have complete support for emptiness checks. This also paves the way for future support to check if two FlatAffineConstraints are equal.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D94272
The file was modifiedmlir/lib/Analysis/Presburger/Simplex.cpp
The file was modifiedmlir/lib/Analysis/AffineStructures.cpp
The file was modifiedmlir/lib/Analysis/Presburger/CMakeLists.txt
The file was modifiedmlir/lib/Analysis/CMakeLists.txt
The file was modifiedmlir/lib/Analysis/Presburger/Matrix.cpp
The file was addedmlir/lib/Analysis/LinearTransform.cpp
The file was modifiedmlir/include/mlir/Analysis/AffineStructures.h
The file was addedmlir/include/mlir/Analysis/LinearTransform.h
The file was addedmlir/unittests/Analysis/LinearTransformTest.cpp
The file was modifiedmlir/include/mlir/Analysis/Presburger/Simplex.h
The file was modifiedmlir/include/mlir/Analysis/Presburger/Matrix.h
The file was modifiedmlir/include/mlir/Analysis/Presburger/Fraction.h
The file was modifiedmlir/unittests/Analysis/CMakeLists.txt
The file was modifiedmlir/unittests/Analysis/AffineStructuresTest.cpp
Commit 763c1f9933463c40c39c04b68bbe4d296823b003 by tianshilei1992
[OpenMP] Drop the static library libomptarget-nvptx

For NVPTX target, OpenMP provides a static library `libomptarget-nvptx`
built by NVCC, and another bitcode `libomptarget-nvptx-sm_{$sm}.bc` generated by
Clang. When compiling an OpenMP program, the `.bc` file will be fed to `clang`
in the second run on the program that compiles the target part. Then the generated
PTX file will be fed to `ptxas` to generate the object file, and finally the driver
invokes `nvlink` to generate the binary, where the static library will be appened
to `nvlink`.

One question is, why do we need two libraries? The only difference is, the static
library contains `omp_data.cu` and the bitcode library doesn't. It's unclear why
they were implemented in this way, but per D94565, there is no issue if we also
include the file into the bitcode library. Therefore, we can safely drop the
static library.

This patch is about the change in OpenMP. The driver will be updated as well if
this patch is accepted.

Reviewed By: jdoerfert, JonChesterfield

Differential Revision: https://reviews.llvm.org/D94573
The file was modifiedopenmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
Commit 4fffbc150cca1638051b8ad2a20f4b8240df0869 by zequanwu
[clang][MSVC] Fix missing MSInheritanceAttr in template specialization.

Fix PR48687.

Differential Revision: https://reviews.llvm.org/D94646
The file was modifiedclang/lib/Sema/SemaTemplate.cpp
The file was modifiedclang/test/CodeGenCXX/microsoft-abi-member-pointers.cpp