Move cpu runner utils templates to .h
authorNicolas Vasilache <ntv@google.com>
Thu, 12 Dec 2019 15:32:36 +0000 (07:32 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Thu, 12 Dec 2019 15:33:09 +0000 (07:33 -0800)
commit95b5a4fd675bd125086d3878df1d4cd3d47d2485
treecd232732b5dcf3b14b843e40f6319f2e3ebce865
parent9b855826824d85aff76e0e95c3983ea6fe09b9dc
Move cpu runner utils templates to .h

This allows reusing the implementation in various places by just including and permits more easily writing test functions without explicit template instantiations.

This also modifies UnrankedMemRefType to take a template type parameter since it cannot be type agnostic atm.

PiperOrigin-RevId: 285187711
mlir/test/mlir-cpu-runner/include/mlir_runner_utils.h
mlir/test/mlir-cpu-runner/mlir_runner_utils.cpp
mlir/test/mlir-cpu-runner/utils.mlir