Changes

Summary

  1. [dfsan][NFC] Fix doc format (details)
  2. [gn build] Kind of port c7b3a91017d2 (libclang version script) (details)
  3. Define the namespace for the Affine dialect in ODS (NFC) (details)
  4. [Attributor][FIX] Track change status for AAIsDead properly (details)
  5. [Attributor][FIX] Do not return CHANGED unconditionally (details)
  6. [OpenMP] Run rewriteDeviceCodeStateMachine in the Module not CGSCC pass (details)
  7. [AbstractAttributor] Fold __kmpc_parallel_level if possible (details)
  8. Revert "[GlobalISel] Add scalar widening for G_MERGE_VALUES destination" (details)
  9. [llvm-jitlink] Don't hardcode LLVM version number into the runtime path. (details)
  10. [NFC][InstCombine] Fix typo (details)
  11. [AArch64] Fix -Wparentheses warning with gcc 5.4. NFC (details)
Commit 494f1e6706481ec49942c07ebf48697872919612 by jianzhouzh
[dfsan][NFC] Fix doc format
The file was modifiedclang/docs/DataFlowSanitizer.rst
Commit e30293352c98e6985480d6d77b60675becbdc549 by thakis
[gn build] Kind of port c7b3a91017d2 (libclang version script)

libclang is only built as static library in the GN build at the
moment, which means we now generate a .exports file form a version
script and then link.exe and ld64 inputs from the .exports file
but don't use the version script, but hey.
The file was modifiedllvm/utils/gn/secondary/clang/test/BUILD.gn
The file was modifiedllvm/utils/gn/build/symbol_exports.gni
The file was modifiedllvm/utils/gn/secondary/clang/tools/libclang/BUILD.gn
Commit ebe817f98cbf836fc5f0abf70b7b04356026ca70 by joker.eph
Define the namespace for the Affine dialect in ODS (NFC)

This aligns the structure of the Affine dialect on all the other dialects.
In particular this makes the ODS C++ generated code independent of the
enclosing namespace.
The file was modifiedmlir/include/mlir/Dialect/Affine/IR/AffineOps.h
The file was modifiedmlir/include/mlir/Dialect/Affine/IR/AffineOps.td
Commit 8befd05aad9f425937182ac137d3509ddd4d47b3 by johannes
[Attributor][FIX] Track change status for AAIsDead properly

If we add a new live edge we need to indicate a change or otherwise the
new live block is not shown to users. Similarly, new known dead ends and
a changed `ToBeExploredFrom` set need to cause us to return CHANGED.
The file was modifiedllvm/lib/Transforms/IPO/AttributorAttributes.cpp
Commit e6f3e648c9caf84fca9d2039138b5b539b398f70 by johannes
[Attributor][FIX] Do not return CHANGED unconditionally

This caused us to rerun AAMemoryBehaviorFloating::updateImpl over and
over again. Unfortunately it turned out to be hard to reproduce the
behavior in a reasonable way.
The file was modifiedllvm/lib/Transforms/IPO/AttributorAttributes.cpp
Commit be2b569646984e4aac988afda3090c2225228752 by johannes
[OpenMP] Run rewriteDeviceCodeStateMachine in the Module not CGSCC pass

While rewriteDeviceCodeStateMachine should probably be folded into
buildCustomStateMachine, we at least need the optimization to happen.
This was not reliably the case in the CGSCC pass but in the Module pass
it seems to work reliably.

This also ports a test to the new kernel encoding (target_init/deinit),
and makes sure we cannot run the kernel in SPMD mode.

Differential Revision: https://reviews.llvm.org/D106345
The file was modifiedllvm/test/Transforms/OpenMP/custom_state_machines.ll
The file was modifiedllvm/test/Transforms/OpenMP/gpu_state_machine_function_ptr_replacement.ll
The file was modifiedllvm/lib/Transforms/IPO/OpenMPOpt.cpp
Commit e97e0a4fad091474131ad84d6f46009bf84c5b60 by tianshilei1992
[AbstractAttributor] Fold __kmpc_parallel_level if possible

Similar to D105787, this patch tries to fold `__kmpc_parallel_level` if possible.
Note that `__kmpc_parallel_level` doesn't take activeness into consideration,
based on current `deviceRTLs`, its return value can be such as 0, 1, 2, instead
of 0, 129, 130, etc. that also indicate activeness.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D106154
The file was modifiedllvm/lib/Transforms/IPO/OpenMPOpt.cpp
The file was modifiedopenmp/libomptarget/deviceRTLs/common/src/parallel.cu
The file was addedllvm/test/Transforms/OpenMP/parallel_level_fold.ll
The file was modifiedopenmp/libomptarget/deviceRTLs/interface.h
Commit ae70b211ebb003b49c3aab480b882bc70d21a240 by 31459023+hctim
Revert "[GlobalISel] Add scalar widening for G_MERGE_VALUES destination"

This reverts commit 0a37163d1d855a2db41e1f46ddbc3f4570bd7ca6.

Reason: Broke the sanitizer msan bots. More details are available in the
original Phabricator review: https://reviews.llvm.org/D106814.
The file was modifiedllvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/legalize-merge-values.mir
The file was modifiedllvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
Commit 25986a21ef6de4222f5bbd8b7f1e2c865b90431d by Lang Hames
[llvm-jitlink] Don't hardcode LLVM version number into the runtime path.

This should unbreak builders that were failing due to different patch numbers.
The file was modifiedllvm/tools/llvm-jitlink/llvm-jitlink.cpp
Commit 958dddf7dfd40bc01447b67b1b0a85e0c7c9941d by JunMa
[NFC][InstCombine] Fix typo
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
Commit 2ea9db0c49d7406de650be9e5cd72fc5687c66dd by craig.topper
[AArch64] Fix -Wparentheses warning with gcc 5.4. NFC
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.cpp