AbortedChanges

Summary

  1. [NFC][HIP] fix comments in __clang_hip_cmath.h (details)
  2. [compiler-rt][profile] Explicitly specify PROFILE_SOURCES extensions. NFC (details)
  3. [lld][WebAssembly] Fix for PIC output + TLS + non-shared-memory (details)
  4. [mlir][docs] Add memref and sparse_tensor to Passes.md (details)
Commit 91dfd68e90156dab3cbf11c9ae677cf60b2df65c by Yaxun.Liu
[NFC][HIP] fix comments in __clang_hip_cmath.h
The file was modifiedclang/lib/Headers/__clang_hip_cmath.h
Commit cc9c895d8844d69a6962a5a5952034a9e466b2f0 by jonathan_roelofs
[compiler-rt][profile] Explicitly specify PROFILE_SOURCES extensions. NFC
The file was modifiedcompiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
Commit 8544b40b6e1d4e34650af66e25102ebcdf360e62 by sbc
[lld][WebAssembly] Fix for PIC output + TLS + non-shared-memory

Prior to this change build with `-shared/-pie` and using TLS (but
without -shared-memory) would hit this assert:

  "Currenly only a single data segment is supported in PIC mode"

This is because we were not including TLS data when merging data
segments.  However, when we build without shared-memory (i.e.  without
threads) we effectively lower away TLS into a normal active data
segment.. so we were ending up with two active data segments: the merged
data, and the lowered TLS data.

To fix this problem we can instead avoid combining data segments at
all when running in shared memory mode (because in this case all
segment initialization is passive).  And then in non-shared memory
mode we know that TLS has been lowered and therefore we can can
and should combine all segments.

So with this new behavior we have two different modes:

1. With shared memory / mutli-threaded: Never combine data segments
   since it is not necessary.  (All data segments as passive already).

2. Wihout shared memory / single-threaded: Combine *all* data segments
   since we treat TLS as normal data.  (We end up with a single
   active data segment).

Differential Revision: https://reviews.llvm.org/D102937
The file was removedlld/test/wasm/tls-no-shared.s
The file was addedlld/test/wasm/tls-non-shared-memory.s
The file was modifiedlld/wasm/Writer.cpp
The file was modifiedlld/test/wasm/data-segments.ll
The file was modifiedlld/test/wasm/relocation-bad-tls.s
The file was modifiedlld/wasm/OutputSections.cpp
The file was modifiedlld/wasm/Relocations.cpp
Commit ab3cd2601bac99b26952c6f1015387d60800d2e2 by youngar17
[mlir][docs] Add memref and sparse_tensor to Passes.md

These pass documents belong on the main pass page, and not generated as
top level pages.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D102947
The file was modifiedmlir/docs/Passes.md