sw:vec_iree: Fix vm API mismatches

Reflect upstream change in https://github.com/google/iree/pull/7261

Change-Id: Iac1ec6699916e95f3538bc37d32d053642c4f3b7
diff --git a/samples/simple_vec_mul/simple_vec_mul.c b/samples/simple_vec_mul/simple_vec_mul.c
index c32d3cf..61c86a9 100644
--- a/samples/simple_vec_mul/simple_vec_mul.c
+++ b/samples/simple_vec_mul/simple_vec_mul.c
@@ -58,8 +58,8 @@
   iree_vm_module_t *modules[] = {hal_module, bytecode_module};
   if (iree_status_is_ok(result)) {
     result = iree_vm_context_create_with_modules(
-        instance, &modules[0], IREE_ARRAYSIZE(modules), iree_allocator_system(),
-        &context);
+        instance, IREE_VM_CONTEXT_FLAG_NONE, &modules[0],
+        IREE_ARRAYSIZE(modules), iree_allocator_system(), &context);
   }
   iree_vm_module_release(hal_module);
   iree_vm_module_release(bytecode_module);
@@ -115,7 +115,7 @@
 
   // Invoke the function.
   if (iree_status_is_ok(result)) {
-    result = iree_vm_invoke(context, main_function,
+    result = iree_vm_invoke(context, main_function, IREE_VM_CONTEXT_FLAG_NONE,
                             /*policy=*/NULL, inputs, outputs,
                             iree_allocator_system());
   }
diff --git a/samples/util/util.c b/samples/util/util.c
index 655289a..7e7f59a 100644
--- a/samples/util/util.c
+++ b/samples/util/util.c
@@ -1,5 +1,7 @@
 // An example based on iree/samples/simple_embedding.
 
+#include "samples/util/util.h"
+
 #include <springbok.h>
 #include <stdio.h>
 
@@ -8,7 +10,6 @@
 #include "iree/modules/hal/module.h"
 #include "iree/vm/api.h"
 #include "iree/vm/bytecode_module.h"
-#include "samples/util/util.h"
 
 // A function to create the HAL device from the different backend targets.
 // The HAL device is returned based on the implementation, and it must be
@@ -89,8 +90,8 @@
   iree_vm_module_t *modules[] = {hal_module, bytecode_module};
   if (iree_status_is_ok(result)) {
     result = iree_vm_context_create_with_modules(
-        instance, &modules[0], IREE_ARRAYSIZE(modules), iree_allocator_system(),
-        &context);
+        instance, IREE_VM_CONTEXT_FLAG_NONE, &modules[0],
+        IREE_ARRAYSIZE(modules), iree_allocator_system(), &context);
   }
   iree_vm_module_release(hal_module);
   iree_vm_module_release(bytecode_module);
@@ -136,7 +137,7 @@
 
   // Invoke the function.
   if (iree_status_is_ok(result)) {
-    result = iree_vm_invoke(context, main_function,
+    result = iree_vm_invoke(context, main_function, IREE_VM_CONTEXT_FLAG_NONE,
                             /*policy=*/NULL, inputs, outputs,
                             iree_allocator_system());
   }
@@ -170,7 +171,7 @@
   iree_aligned_free(arg0_buffer);
   iree_vm_context_release(context);
   IREE_IGNORE_ERROR(iree_hal_allocator_statistics_fprint(
-        stdout, iree_hal_device_allocator(device)));
+      stdout, iree_hal_device_allocator(device)));
   iree_hal_device_release(device);
   iree_vm_instance_release(instance);
   return result;