[mlir] Add timings to mlir translate.
authorTobias Gysi <tobias.gysi@nextsilicon.com>
Fri, 12 May 2023 11:36:28 +0000 (11:36 +0000)
committerTobias Gysi <tobias.gysi@nextsilicon.com>
Fri, 12 May 2023 12:02:50 +0000 (12:02 +0000)
commitc3b4e279d465f6489c4af43637cf125e86859097
treed3a3ae9944534ce43ab9deda747cb604b33c4f30
parent60d9010aaf0f09c6ccc4ae130be10f360f93612b
[mlir] Add timings to mlir translate.

The revision adds basic timing to the mlir-translate tool.

Reviewed By: Dinistro

Differential Revision: https://reviews.llvm.org/D150434
mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
mlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp
mlir/lib/Tools/mlir-translate/MlirTranslateMain.cpp
mlir/test/mlir-translate/export-timing.mlir [new file with mode: 0644]
mlir/test/mlir-translate/import-timing.ll [new file with mode: 0644]