runtime/src/iree/hal/local/executable_library_benchmark.c
// Creates an executable loader based on the given format flag.
Creates an executable loader based on the given format flag.
Creates an executable loader based on the given format flag .
static iree_status_t iree_hal_executable_library_create_loader(
    iree_allocator_t host_allocator,
    iree_hal_executable_loader_t** out_executable_loader) {
#if defined(IREE_HAL_HAVE_EMBEDDED_LIBRARY_LOADER)
  if (strcmp(FLAG_executable_format, "EX_ELF") == 0) {
    return iree_hal_embedded_library_loader_create(
        iree_hal_executable_import_provider_null(), host_allocator,
        out_executable_loader);
  }
#endif  
  return iree_make_status(
      IREE_STATUS_UNAVAILABLE,
      "no loader available that can handle --executable_format=%s",
      FLAG_executable_format);
}
static iree_status_t iree_hal_executable_library_create_loader ( iree_allocator_t host_allocator , iree_hal_executable_loader_t * * out_executable_loader ) { #if defined ( IREE_HAL_HAVE_EMBEDDED_LIBRARY_LOADER ) if ( strcmp ( FLAG_executable_format , " " ) == 0 ) { return iree_hal_embedded_library_loader_create ( iree_hal_executable_import_provider_null ( ) , host_allocator , out_executable_loader ) ; } #endif return iree_make_status ( IREE_STATUS_UNAVAILABLE , " " , FLAG_executable_format ) ; }
Creates an executable loader based on the given format flag.
Creates an executable loader based on the given format flag .
// IREE_HAL_HAVE_EMBEDDED_LIBRARY_LOADER