iree/vm/context.c
static iree_status_t iree_vm_context_notify_forward(iree_vm_stack_t* stack,
                                                    iree_vm_context_t* context,
                                                    iree_vm_signal_t signal) {
  IREE_TRACE_ZONE_BEGIN(z0);
  iree_status_t status = iree_ok_status();
  for (iree_host_size_t i = 0; i < context->list.count; ++i) {
    iree_vm_module_t* module = context->list.modules[i];
    iree_vm_module_state_t* module_state = context->list.module_states[i];

    // Call the module internal interface notify method.
    // This handles the resources owned by the module implementation itself
    // such as JITed binaries or other module infrastructure.
    status = module->notify(module->self, module_state, signal);
    if (!iree_status_is_ok(status)) break;

    // Call the user-level notify method.
    // This may new use the reallocated resources from the module internal
    // implementation above.
    status =
        iree_vm_context_call_module_notify(stack, module, module_state, signal);
    if (!iree_status_is_ok(status)) break;
  }
  IREE_TRACE_ZONE_END(z0);
  return status;
}
// Calls the module notify methods in registration order.
Calls the module notify methods in registration order.
Calls the module notify methods in registration order .
static iree_status_t iree_vm_context_notify_forward(iree_vm_stack_t* stack,
                                                    iree_vm_context_t* context,
                                                    iree_vm_signal_t signal) {
  IREE_TRACE_ZONE_BEGIN(z0);
  iree_status_t status = iree_ok_status();
  for (iree_host_size_t i = 0; i < context->list.count; ++i) {
    iree_vm_module_t* module = context->list.modules[i];
    iree_vm_module_state_t* module_state = context->list.module_states[i];
    status = module->notify(module->self, module_state, signal);
    if (!iree_status_is_ok(status)) break;
    status =
        iree_vm_context_call_module_notify(stack, module, module_state, signal);
    if (!iree_status_is_ok(status)) break;
  }
  IREE_TRACE_ZONE_END(z0);
  return status;
}
static iree_status_t iree_vm_context_notify_forward ( iree_vm_stack_t * stack , iree_vm_context_t * context , iree_vm_signal_t signal ) { IREE_TRACE_ZONE_BEGIN ( z0 ) ; iree_status_t status = iree_ok_status ( ) ; for ( iree_host_size_t i = 0 ; i < context -> list . count ; ++ i ) { iree_vm_module_t * module = context -> list . modules [ i ] ; iree_vm_module_state_t * module_state = context -> list . module_states [ i ] ; status = module -> notify ( module -> self , module_state , signal ) ; if ( ! iree_status_is_ok ( status ) ) break ; status = iree_vm_context_call_module_notify ( stack , module , module_state , signal ) ; if ( ! iree_status_is_ok ( status ) ) break ; } IREE_TRACE_ZONE_END ( z0 ) ; return status ; }
Calls the module notify methods in registration order.
Calls the module notify methods in registration order .
// Call the module internal interface notify method. // This handles the resources owned by the module implementation itself // such as JITed binaries or other module infrastructure. // Call the user-level notify method. // This may new use the reallocated resources from the module internal // implementation above.