Add mechanism to dump JIT-compiled objects to files
authorJacques Pienaar <jpienaar@google.com>
Fri, 30 Aug 2019 20:01:34 +0000 (13:01 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 30 Aug 2019 20:02:10 +0000 (13:02 -0700)
commit06e8101034e71b95e1338662d27472492dae4d4b
tree7917f695f1c66789b654b55782daed6ad4817eff
parent8f90a442c3e3d4b727b013a520a3e9520bbd2784
Add mechanism to dump JIT-compiled objects to files

This commit introduces the bits to be able to dump JIT-compile
objects to external files by passing an object cache to OrcJit.
The new functionality is tested in mlir-cpu-runner under the flag
`dump-object-file`.

Closes tensorflow/mlir#95

PiperOrigin-RevId: 266439265
mlir/include/mlir/ExecutionEngine/ExecutionEngine.h
mlir/lib/ExecutionEngine/ExecutionEngine.cpp
mlir/lib/Support/JitRunner.cpp
mlir/test/mlir-cpu-runner/simple.mlir