[MLIR] Move JitRunner Options to header, pass to mlirTransformer
authorRenato Golin <rengolin@systemcall.eu>
Sat, 12 Nov 2022 21:48:54 +0000 (21:48 +0000)
committerRenato Golin <rengolin@systemcall.eu>
Sun, 13 Nov 2022 18:55:48 +0000 (18:55 +0000)
commit1b99e8ba487bb2759c81ecd925b709830bdd7aa9
tree3c0164dde2839dd2669cfeea5f6dd7c08bba8ee2
parent6b9a79f9a2b47c1246faa218ee2496bdb6fa298a
[MLIR] Move JitRunner Options to header, pass to mlirTransformer

This allows the MLIR transformer to see the command line options and
make desicions based on them. No change upstream, but my use-case is to
look at the entry point name and type to make sure I can use them.

Differential Revision: https://reviews.llvm.org/D137861
mlir/include/mlir/ExecutionEngine/JitRunner.h
mlir/lib/ExecutionEngine/JitRunner.cpp
mlir/tools/mlir-spirv-cpu-runner/mlir-spirv-cpu-runner.cpp
mlir/tools/mlir-vulkan-runner/mlir-vulkan-runner.cpp