Rework iree-run-mlir to operate against the IREE compiler C API. (#12715)
This removes some unused functionality while sprinkling in the seeds of
something better. Future changes can go deeper on inferring compiler
configuration from available devices and such (will need some reworking
of run_module.c - I erred on the side of simplicity/reuse today). This
isn't meant to be an example of the best way to build an online compiler
but instead serve as an in-tree test of something that approximates one.
diff --git a/tools/test/iree-run-mlir.mlir b/tools/test/iree-run-mlir.mlir
index f899a95..47bcbe2 100644
--- a/tools/test/iree-run-mlir.mlir
+++ b/tools/test/iree-run-mlir.mlir
@@ -1,6 +1,6 @@
-// RUN: (iree-run-mlir --iree-hal-target-backends=vmvx %s --input=f32=-2) | FileCheck %s
-// RUN: [[ $IREE_VULKAN_DISABLE == 1 ]] || (iree-run-mlir --iree-hal-target-backends=vulkan-spirv %s --input=f32=-2 | FileCheck %s)
-// RUN: iree-run-mlir --iree-hal-target-backends=llvm-cpu %s --input=f32=-2 | FileCheck %s
+// RUN: (iree-run-mlir --Xcompiler,iree-hal-target-backends=vmvx %s --input=f32=-2) | FileCheck %s
+// RUN: iree-run-mlir --Xcompiler,iree-hal-target-backends=llvm-cpu %s --input=f32=-2 | FileCheck %s
+// RUN: [[ $IREE_VULKAN_DISABLE == 1 ]] || (iree-run-mlir --Xcompiler,iree-hal-target-backends=vulkan-spirv %s --input=f32=-2 | FileCheck %s)
// CHECK-LABEL: EXEC @abs
func.func @abs(%input : tensor<f32>) -> (tensor<f32>) {