iree/base/internal/flags.c
static void iree_flag_dump(iree_flag_dump_mode_t mode, FILE* file,
                           iree_flag_t* flag) {
  if (iree_all_bits_set(mode, IREE_FLAG_DUMP_MODE_VERBOSE)) {
    if (!iree_string_view_is_empty(flag->description)) {
      iree_string_view_t description = flag->description;
      while (!iree_string_view_is_empty(description)) {
        iree_string_view_t line;
        iree_string_view_split(description, '\n', &line, &description);
        if (!iree_string_view_is_empty(line)) {
          fprintf(file, "# %.*s\n", (int)line.size, line.data);
        }
      }
    }
  }
  iree_flag_print(file, flag);
}
// Dumps a flag definition and value to |file|.
Dumps a flag definition and value to |file|.
Dumps a flag definition and value to |file| .
static void iree_flag_dump(iree_flag_dump_mode_t mode, FILE* file,
                           iree_flag_t* flag) {
  if (iree_all_bits_set(mode, IREE_FLAG_DUMP_MODE_VERBOSE)) {
    if (!iree_string_view_is_empty(flag->description)) {
      iree_string_view_t description = flag->description;
      while (!iree_string_view_is_empty(description)) {
        iree_string_view_t line;
        iree_string_view_split(description, '\n', &line, &description);
        if (!iree_string_view_is_empty(line)) {
          fprintf(file, "# %.*s\n", (int)line.size, line.data);
        }
      }
    }
  }
  iree_flag_print(file, flag);
}
static void iree_flag_dump ( iree_flag_dump_mode_t mode , FILE * file , iree_flag_t * flag ) { if ( iree_all_bits_set ( mode , IREE_FLAG_DUMP_MODE_VERBOSE ) ) { if ( ! iree_string_view_is_empty ( flag -> description ) ) { iree_string_view_t description = flag -> description ; while ( ! iree_string_view_is_empty ( description ) ) { iree_string_view_t line ; iree_string_view_split ( description , ' \n ' , & line , & description ) ; if ( ! iree_string_view_is_empty ( line ) ) { fprintf ( file , " \n " , ( int ) line . size , line . data ) ; } } } } iree_flag_print ( file , flag ) ; }
Dumps a flag definition and value to |file|.
Dumps a flag definition and value to |file| .