Home
last modified time | relevance | path

Searched refs:symbol (Results 1 – 13 of 13) sorted by relevance

/hal_rpi_pico-3.7.0-3.6.0-3.5.0/tools/pioasm/
Dpio_assembler.cpp56 void program::add_symbol(std::shared_ptr<symbol> symbol) { in add_symbol() argument
57 const auto &existing = pioasm->get_symbol(symbol->name, this); in add_symbol()
60 if (symbol->is_label != existing->is_label) { in add_symbol()
61 …msg << "'" << symbol->name << "' was already defined as a " << (existing->is_label ? "label" : "va… in add_symbol()
63 } else if (symbol->is_label) { in add_symbol()
64 msg << "label '" << symbol->name << "' was already defined at " << existing->location; in add_symbol()
66 msg << "'" << symbol->name << "' was already defined at " << existing->location; in add_symbol()
68 throw syntax_error(symbol->location, msg.str()); in add_symbol()
70 symbols.insert(std::pair<std::string, std::shared_ptr<::symbol>>(symbol->name, symbol)); in add_symbol()
71 ordered_symbols.push_back(symbol); in add_symbol()
[all …]
Doutput_format.h50 struct symbol { struct
55symbol(std::string name, int value, bool is_label) : name(std::move(name)), value(value), is_label… in symbol() argument
67 std::vector<symbol> symbols; // public only
75 std::vector<symbol> global_symbols; // public only
Dpio_types.h189 struct symbol : public src_item { struct
196symbol(const yy::location &l, std::string name, bool is_extern = false) : src_item(l), name(std::m… in src_item() argument
243 std::map<std::string, std::shared_ptr<symbol>> symbols;
244 std::vector<std::shared_ptr<symbol>> ordered_symbols;
271 void add_label(std::shared_ptr<symbol> label) { in add_label()
276 void add_symbol(std::shared_ptr<symbol> symbol);
Dpio_assembler.h78 std::shared_ptr<symbol> get_symbol(const std::string &name, const program *p) { in get_symbol()
91 std::vector<compiled_source::symbol> public_symbols(program &program);
Dparser.yy157 %type <std::shared_ptr<symbol>> label_decl;
324 %type <std::shared_ptr<symbol>> symbol_def;
326 ID { $$ = std::shared_ptr<symbol>(new symbol(@$, $1)); }
327 | PUBLIC ID { $$ = std::shared_ptr<symbol>(new symbol(@$, $2, true)); }
328 | MULTIPLY ID { $$ = std::shared_ptr<symbol>(new symbol(@$, $2, true)); }
Dada_output.cpp32 void output_symbols(FILE *out, const std::vector<compiled_source::symbol> &symbols) { in output_symbols()
Dc_sdk_output.cpp25 …void output_symbols(FILE *out, std::string prefix, const std::vector<compiled_source::symbol> &sym… in output_symbols()
Dpython_output.cpp28 …void output_symbols(FILE *out, std::string prefix, const std::vector<compiled_source::symbol> &sym… in output_symbols()
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/tools/pioasm/gen/
Dparser.cpp257 value.YY_MOVE_OR_COPY< std::shared_ptr<symbol> > (YY_MOVE (that.value)); in stack_symbol_type()
335 value.move< std::shared_ptr<symbol> > (YY_MOVE (that.value)); in stack_symbol_type()
413 value.copy< std::shared_ptr<symbol> > (that.value); in operator =()
490 value.move< std::shared_ptr<symbol> > (that.value); in operator =()
934 yylhs.value.emplace< std::shared_ptr<symbol> > (); in parse()
983 …tion, "instruction"); p.add_label(yystack_[1].value.as < std::shared_ptr<symbol> > ()); p.add_inst… in parse()
987 …am(yystack_[0].location, "label").add_label(yystack_[0].value.as < std::shared_ptr<symbol> > ()); } in parse()
999 …d::shared_ptr<symbol> > ()->is_label = true; yylhs.value.as < std::shared_ptr<symbol> > () = yysta… in parse()
1003symbol> > ()->is_label = false; yystack_[1].value.as < std::shared_ptr<symbol> > ()->value = yysta… in parse()
1431 …{ yylhs.value.as < std::shared_ptr<symbol> > () = std::shared_ptr<symbol>(new symbol(yylhs.locatio… in parse()
[all …]
Dparser.hpp421 char dummy10[sizeof (std::shared_ptr<symbol>)];
746 value.move< std::shared_ptr<symbol> > (std::move (that.value)); in basic_symbol()
902 basic_symbol (typename Base::kind_type t, std::shared_ptr<symbol>&& v, location_type&& l) in basic_symbol()
908 …basic_symbol (typename Base::kind_type t, const std::shared_ptr<symbol>& v, const location_type& l) in basic_symbol()
1010 value.template destroy< std::shared_ptr<symbol> > (); in clear()
2720 value.copy< std::shared_ptr<symbol> > (YY_MOVE (that.value)); in basic_symbol()
2812 value.move< std::shared_ptr<symbol> > (YY_MOVE (s.value)); in move()
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/pico_standard_link/
Dmemmap_copy_to_ram.ld56 symbol if present, otherwise defaults to start of .text.
Dmemmap_blocked_ram.ld56 symbol if present, otherwise defaults to start of .text.
Dmemmap_default.ld56 symbol if present, otherwise defaults to start of .text.