Add a `dialect_registration` callback for "translations" registered with mlir-translate
authorMehdi Amini <joker.eph@gmail.com>
Sun, 23 Aug 2020 00:57:47 +0000 (00:57 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 23 Aug 2020 01:00:39 +0000 (01:00 +0000)
commitf164534ca8e042ab7bbc25516f88adf027ebe12d
tree7d86fd1f32e57d8d983dfb10541f12c9d642d72a
parent96cb8cdeb0f31201c14f87a883cecb7725a87b36
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
mlir/include/mlir/Translation.h
mlir/lib/Dialect/SPIRV/Serialization/TranslateRegistration.cpp
mlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp
mlir/lib/Target/LLVMIR/ConvertToNVVMIR.cpp
mlir/lib/Target/LLVMIR/ConvertToROCDLIR.cpp
mlir/lib/Target/LLVMIR/LLVMAVX512Intr.cpp
mlir/lib/Translation/Translation.cpp
mlir/tools/mlir-translate/mlir-translate.cpp