SuccessChanges

Summary

  1. [libunwind] Make findUnwindSectionsByPhdr static (details)
  2. Use TranslateFromMLIRRegistration for SPIRV roundtrip (NFC) (details)
  3. Refactor `mlir-translate` to extract the `main()` logic in a helper on the model of `MlirOptMain()` (NFC) (details)
  4. Add a `dialect_registration` callback for "translations" registered with mlir-translate (details)
Commit 3c1b2e338dfdf4f305b1cb40e2ebcb93a7e470c3 by rprichard
[libunwind] Make findUnwindSectionsByPhdr static

Currently, this function is present in the dynsym table of
libunwind.so (on ELF targets). Make the function static instead.

In the previous release (LLVM 10.x), this function was instead a lambda
function inside LocalAddressSpace::findUnwindSections, and because
LocalAddressSpace was marked with _LIBUNWIND_HIDDEN, the lambda
function was also a hidden symbol.

Differential Revision: https://reviews.llvm.org/D86372
The file was modifiedlibunwind/src/AddressSpace.hpp
Commit 12541b5ed59d00c6a2ac90ccaf7aa8ff37d8d84b by joker.eph
Use TranslateFromMLIRRegistration for SPIRV roundtrip (NFC)

This is aligning it with the other "translation" which operates on a MLIR input.
The file was modifiedmlir/lib/Dialect/SPIRV/Serialization/TranslateRegistration.cpp
Commit 96cb8cdeb0f31201c14f87a883cecb7725a87b36 by joker.eph
Refactor `mlir-translate` to extract the `main()` logic in a helper on the model of `MlirOptMain()` (NFC)

Differential Revision: https://reviews.llvm.org/D86408
The file was modifiedmlir/lib/Translation/Translation.cpp
The file was modifiedmlir/include/mlir/Translation.h
The file was modifiedmlir/tools/mlir-translate/mlir-translate.cpp
Commit f164534ca8e042ab7bbc25516f88adf027ebe12d by joker.eph
Add a `dialect_registration` callback for "translations" registered with mlir-translate

This will allow out-of-tree translation to register the dialects they expect
to see in their input, on the model of getDependentDialects() for passes.

Differential Revision: https://reviews.llvm.org/D86409
The file was modifiedmlir/include/mlir/Translation.h
The file was modifiedmlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp
The file was modifiedmlir/lib/Translation/Translation.cpp
The file was modifiedmlir/lib/Target/LLVMIR/ConvertToROCDLIR.cpp
The file was modifiedmlir/lib/Target/LLVMIR/ConvertToNVVMIR.cpp
The file was modifiedmlir/lib/Target/LLVMIR/LLVMAVX512Intr.cpp
The file was modifiedmlir/tools/mlir-translate/mlir-translate.cpp
The file was modifiedmlir/lib/Dialect/SPIRV/Serialization/TranslateRegistration.cpp