#include "obstack.h"
Go to the source code of this file.
|
int | read_char (void) |
|
void | unread_char (int ch) |
|
hashval_t | leading_string_hash (const void *) |
|
int | leading_string_eq_p (const void *, const void *) |
|
const char * | join_c_conditions (const char *, const char *) |
|
void | message_at (file_location, const char *,...) ATTRIBUTE_PRINTF_2 |
|
void | error_at (file_location, const char *,...) ATTRIBUTE_PRINTF_2 |
|
void | fatal_at (file_location, const char *,...) ATTRIBUTE_PRINTF_2 |
|
void | fatal_with_file_and_line (const char *,...) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN |
|
void | fatal_expected_char (int, int) ATTRIBUTE_NORETURN |
|
int | read_skip_spaces (void) |
|
int | n_comma_elts (const char *) |
|
const char * | scan_comma_elt (const char **) |
|
void | upcase_string (char *) |
|
void | traverse_enum_types (htab_trav, void *) |
|
struct enum_type * | lookup_enum_type (const char *) |
|
◆ error_at()
◆ fatal_at()
Like message_at, but treat the condition as a fatal error.
References ap, and msg.
◆ fatal_expected_char()
void fatal_expected_char |
( |
int | expected, |
|
|
int | actual ) |
|
extern |
◆ fatal_with_file_and_line()
void fatal_with_file_and_line |
( |
const char * | msg, |
|
|
| ... ) |
|
extern |
A printf-like function for reporting an error against the current
position in the MD file.
References ap, md_reader::get_colno(), md_reader::get_filename(), md_reader::get_lineno(), i, md_reader_ptr, msg, read_char(), unread_char(), and vfprintf().
Referenced by add_constant(), add_mapping(), fatal_expected_char(), find_code(), find_mode(), function_reader::parse_function(), parse_note_insn_name(), parse_reg_note_name(), md_reader::read_braced_string(), read_flags(), md_reader::read_name(), md_reader::read_name_1(), rtx_reader::read_rtx_operand(), read_skip_spaces(), md_reader::read_string(), md_reader::require_word_ws(), rtx_reader::rtx_alloc_for_name(), validate_const_int(), and validate_const_wide_int().
◆ join_c_conditions()
const char * join_c_conditions |
( |
const char * | , |
|
|
const char * | ) |
|
extern |
◆ leading_string_eq_p()
int leading_string_eq_p |
( |
const void * | def1, |
|
|
const void * | def2 ) |
|
extern |
◆ leading_string_hash()
hashval_t leading_string_hash |
( |
const void * | def | ) |
|
|
extern |
◆ lookup_enum_type()
struct enum_type * lookup_enum_type |
( |
const char * | | ) |
|
|
extern |
◆ message_at()
A printf-like function for reporting a message against location LOC.
References ap, and msg.
Referenced by add_constraint(), compute_test_codes(), gen_attr(), mdep_constraint_len(), note_constraint(), process_template(), validate_exp(), validate_optab_operands(), validate_pattern(), and VEC_safe_set_locstr().
◆ n_comma_elts()
int n_comma_elts |
( |
const char * | s | ) |
|
|
extern |
◆ read_char()
◆ read_skip_spaces()
int read_skip_spaces |
( |
void | | ) |
|
|
extern |
Read chars from the MD file until a non-whitespace char and return that.
Comments, both Lisp style and C style, are treated as whitespace.
References fatal_with_file_and_line(), read_char(), and unread_char().
Referenced by function_reader::extra_parsing_for_operand_code_0(), function_reader::handle_any_trailing_information(), md_reader::handle_constants(), md_reader::handle_enum(), md_reader::handle_file(), function_reader::maybe_read_location(), function_reader::parse_block(), function_reader::parse_edge(), function_reader::parse_function(), function_reader::parse_insn_chain(), md_reader::read_name_1(), rtx_reader::read_rtx_code(), rtx_reader::read_rtx_operand(), function_reader::read_rtx_operand_r(), rtx_reader::read_rtx_variadic(), md_reader::read_skip_construct(), md_reader::read_string(), rtx_reader::read_until(), and md_reader::require_char_ws().
◆ scan_comma_elt()
const char * scan_comma_elt |
( |
const char ** | pstr | ) |
|
|
extern |
◆ traverse_enum_types()
void traverse_enum_types |
( |
htab_trav | , |
|
|
void * | ) |
|
extern |
◆ unread_char()
void unread_char |
( |
int | ch | ) |
|
|
inline |
◆ upcase_string()
void upcase_string |
( |
char * | string | ) |
|
|
extern |
◆ include_callback
void(* include_callback) (const char *) |
( |
const char * | | ) |
|
|
extern |
This callback will be invoked whenever an md include directive is
processed. To be used for creation of the dependency file.
Referenced by md_reader::handle_include(), and main().
◆ md_reader_ptr
◆ rtx_reader_ptr
Global singleton; constrast with md_reader_ptr above.
Global singleton.
Referenced by alter_test_for_insn(), attr_string(), def_target_insn(), emit_c_code(), find_int(), gen_attr(), gen_mnemonic_attr(), gen_mnemonic_setattr(), main(), mnemonic_htab_callback(), print_test(), process_rtx(), process_substs_on_one_elem(), process_template(), rtx_reader::rtx_reader(), write_attr_value(), write_init_reg_class_start_regs(), write_one_condition(), write_predicate_expr(), write_predicate_subfunction(), write_test_expr(), and rtx_reader::~rtx_reader().