SuccessChanges

Summary

  1. Use TranslateFromMLIRRegistration for SPIRV roundtrip (NFC) (details)
  2. Refactor `mlir-translate` to extract the `main()` logic in a helper on the model of `MlirOptMain()` (NFC) (details)
  3. Add a `dialect_registration` callback for "translations" registered with mlir-translate (details)
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 (diff)
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/include/mlir/Translation.h (diff)
The file was modifiedmlir/tools/mlir-translate/mlir-translate.cpp (diff)
The file was modifiedmlir/lib/Translation/Translation.cpp (diff)
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/lib/Target/LLVMIR/ConvertToNVVMIR.cpp (diff)
The file was modifiedmlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp (diff)
The file was modifiedmlir/lib/Dialect/SPIRV/Serialization/TranslateRegistration.cpp (diff)
The file was modifiedmlir/lib/Target/LLVMIR/ConvertToROCDLIR.cpp (diff)
The file was modifiedmlir/lib/Translation/Translation.cpp (diff)
The file was modifiedmlir/include/mlir/Translation.h (diff)
The file was modifiedmlir/lib/Target/LLVMIR/LLVMAVX512Intr.cpp (diff)
The file was modifiedmlir/tools/mlir-translate/mlir-translate.cpp (diff)