iree/base/internal/flags.c
static iree_flag_t* iree_flag_lookup(iree_string_view_t name) {
  iree_flag_registry_t* registry = &iree_flag_registry;
  for (int i = 0; i < registry->flag_count; ++i) {
    iree_flag_t* flag = &registry->flags[i];
    if (iree_string_view_equal(flag->name, name)) {
      return flag;
    }
  }
  return NULL;
}
// Returns the flag registration with the given |name| or NULL if not found.
Returns the flag registration with the given |name| or NULL if not found.
Returns the flag registration with the given |name| or NULL if not found .
static iree_flag_t* iree_flag_lookup(iree_string_view_t name) {
  iree_flag_registry_t* registry = &iree_flag_registry;
  for (int i = 0; i < registry->flag_count; ++i) {
    iree_flag_t* flag = &registry->flags[i];
    if (iree_string_view_equal(flag->name, name)) {
      return flag;
    }
  }
  return NULL;
}
static iree_flag_t * iree_flag_lookup ( iree_string_view_t name ) { iree_flag_registry_t * registry = & iree_flag_registry ; for ( int i = 0 ; i < registry -> flag_count ; ++ i ) { iree_flag_t * flag = & registry -> flags [ i ] ; if ( iree_string_view_equal ( flag -> name , name ) ) { return flag ; } } return NULL ; }
Returns the flag registration with the given |name| or NULL if not found.
Returns the flag registration with the given |name| or NULL if not found .