[all-commits] [llvm/llvm-project] 96cb8c: Refactor `mlir-translate` to extract the `main()` ...
Mehdi Amini via All-commits
all-commits at lists.llvm.org
Sat Aug 22 18:02:15 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 96cb8cdeb0f31201c14f87a883cecb7725a87b36
https://github.com/llvm/llvm-project/commit/96cb8cdeb0f31201c14f87a883cecb7725a87b36
Author: Mehdi Amini <joker.eph at gmail.com>
Date: 2020-08-23 (Sun, 23 Aug 2020)
Changed paths:
M mlir/include/mlir/Translation.h
M mlir/lib/Translation/Translation.cpp
M mlir/tools/mlir-translate/mlir-translate.cpp
Log Message:
-----------
Refactor `mlir-translate` to extract the `main()` logic in a helper on the model of `MlirOptMain()` (NFC)
Differential Revision: https://reviews.llvm.org/D86408
Commit: f164534ca8e042ab7bbc25516f88adf027ebe12d
https://github.com/llvm/llvm-project/commit/f164534ca8e042ab7bbc25516f88adf027ebe12d
Author: Mehdi Amini <joker.eph at gmail.com>
Date: 2020-08-23 (Sun, 23 Aug 2020)
Changed paths:
M mlir/include/mlir/Translation.h
M mlir/lib/Dialect/SPIRV/Serialization/TranslateRegistration.cpp
M mlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp
M mlir/lib/Target/LLVMIR/ConvertToNVVMIR.cpp
M mlir/lib/Target/LLVMIR/ConvertToROCDLIR.cpp
M mlir/lib/Target/LLVMIR/LLVMAVX512Intr.cpp
M mlir/lib/Translation/Translation.cpp
M mlir/tools/mlir-translate/mlir-translate.cpp
Log Message:
-----------
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
Compare: https://github.com/llvm/llvm-project/compare/12541b5ed59d...f164534ca8e0
More information about the All-commits
mailing list