Searched refs:tok (Results 1 - 25 of 41) sorted by relevance

12

/haiku-buildtools/gcc/gcc/testsuite/gcc.c-torture/compile/
H A Dpr37617.c9 yystype tok; local
10 tok.dval = 0;
11 return (tok.string);
15 yystype tok; local
16 tok.fval = 0;
17 return (tok.string);
/haiku-buildtools/gcc/gcc/testsuite/gcc.c-torture/execute/
H A Denum-1.c24 static token tok; variable
29 if ((tok >= 0 && tok < (1 << 8 ) ) || tok >= CSET || tok == BACKREF
30 || tok == BEGLINE || tok == ENDLINE || tok == BEGWORD
31 || tok == ENDWORD || tok
[all...]
/haiku-buildtools/isl/
H A Disl_stream.c73 struct isl_token *tok = isl_alloc_type(ctx, struct isl_token); local
74 if (!tok)
76 tok->line = line;
77 tok->col = col;
78 tok->on_new_line = on_new_line;
79 tok->is_keyword = 0;
80 tok->u.s = NULL;
81 return tok;
84 /* Return the type of "tok".
86 int isl_token_get_type(struct isl_token *tok) argument
93 isl_token_get_val(isl_ctx *ctx, struct isl_token *tok) argument
106 isl_token_get_str(isl_ctx *ctx, struct isl_token *tok) argument
117 isl_token_free(struct isl_token *tok) argument
132 isl_stream_error(struct isl_stream *s, struct isl_token *tok, char *msg) argument
284 isl_stream_push_token(struct isl_stream *s, struct isl_token *tok) argument
361 struct isl_token *tok = NULL; local
670 struct isl_token *tok; local
685 struct isl_token *tok; local
698 struct isl_token *tok; local
714 struct isl_token *tok; local
730 struct isl_token *tok; local
768 struct isl_token *tok = isl_stream_next_token(s); local
[all...]
H A Disl_input.c149 struct isl_token *tok, *tok2; local
151 tok = isl_stream_next_token(s);
152 if (!tok || tok->type != ISL_TOKEN_VALUE)
153 return tok;
155 return tok;
162 isl_int_pow_ui(tok->u.v, tok->u.v, isl_int_get_ui(tok2->u.v));
165 return tok;
167 isl_token_free(tok);
186 struct isl_token *tok = NULL; local
254 struct isl_token *tok; local
285 struct isl_token *tok; local
317 struct isl_token *tok; local
347 is_start_of_div(struct isl_token *tok) argument
377 struct isl_token *tok; local
441 struct isl_token *tok = NULL; local
558 struct isl_token *tok = NULL; local
645 is_comparator(struct isl_token *tok) argument
716 struct isl_token *tok; local
792 struct isl_token *tok = NULL; local
829 struct isl_token *tok; local
873 struct isl_token *tok; local
1035 struct isl_token *tok; local
1099 struct isl_token *tok; local
1262 struct isl_token *tok = NULL; local
1351 struct isl_token *tok, *tok2; local
1428 struct isl_token *tok; local
1572 struct isl_token *tok; local
1641 struct isl_token *tok; local
1756 struct isl_token *tok; local
1795 struct isl_token *tok; local
1824 struct isl_token *tok; local
1931 struct isl_token *tok; local
1972 struct isl_token *tok; local
2054 struct isl_token *tok; local
2073 struct isl_token *tok; local
2202 struct isl_token *tok; local
2603 struct isl_token *tok; local
2697 struct isl_token *tok; local
2723 struct isl_token *tok; local
[all...]
/haiku-buildtools/gcc/gcc/config/nvptx/
H A Dmkoffload.c370 Token *tok = toks + num; local
372 tok->kind = kind;
373 tok->space = ws;
374 tok->end = 0;
375 tok->ptr = base;
376 tok->len = ptr - base - in_comment;
380 tok[-1].end = 1;
391 write_token (FILE *out, Token const *tok) argument
393 if (tok->space)
396 switch (tok
503 parse_insn(Token *tok) argument
579 parse_list_nosemi(Token *tok) argument
599 parse_init(Token *tok) argument
639 parse_file(Token *tok) argument
844 Token *tok = tokenize (input); local
[all...]
/haiku-buildtools/gcc/gcc/go/gofrontend/
H A Dlex.h105 Token tok(TOKEN_KEYWORD, location);
106 tok.u_.keyword = keyword;
107 return tok;
115 Token tok(TOKEN_IDENTIFIER, location);
116 tok.u_.identifier_value.name = new std::string(value);
117 tok.u_.identifier_value.is_exported = is_exported;
118 return tok;
125 Token tok(TOKEN_STRING, location);
126 tok.u_.string_value = new std::string(value);
127 return tok;
[all...]
H A Dlex.cc176 Token::Token(const Token& tok) argument
177 : classification_(tok.classification_), location_(tok.location_)
185 this->u_.keyword = tok.u_.keyword;
189 this->u_.string_value = tok.u_.string_value;
192 this->u_.op = tok.u_.op;
196 mpz_init_set(this->u_.integer_value, tok.u_.integer_value);
200 mpfr_init_set(this->u_.float_value, tok.u_.float_value, GMP_RNDN);
210 Token::operator=(const Token& tok) argument
213 this->classification_ = tok
[all...]
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.brendan/
H A Dcopy9.C19 int tok; member in class:ParseToken
28 ParseToken () { tok = 0; intval = 0;}
34 a.tok = T_Float;
/haiku-buildtools/gcc/gcc/config/vms/
H A Dvms-c.c76 int tok; local
79 tok = pragma_lex (&x);
81 if (tok == CPP_EOF)
87 if (tok != CPP_NAME)
120 int tok; local
122 tok = pragma_lex (&x);
123 if (tok == CPP_NAME)
146 tok = pragma_lex (&x);
154 if (tok != CPP_EOF)
204 int tok; local
268 enum cpp_ttype tok; local
304 enum cpp_ttype tok; local
[all...]
/haiku-buildtools/gcc/gcc/config/spu/
H A Dspu-c.c46 spu_categorize_keyword (const cpp_token *tok)
48 if (tok->type == CPP_NAME)
50 cpp_hashnode *ident = tok->val.node.node;
63 need to examine the 'tok' parameter. */
66 spu_macro_to_expand (cpp_reader *pfile, const cpp_token *tok)
68 cpp_hashnode *expand_this = tok->val.node.node;
71 ident = spu_categorize_keyword (tok);
74 tok = cpp_peek_token (pfile, 0);
75 ident = spu_categorize_keyword (tok);
83 tok
45 spu_categorize_keyword(const cpp_token *tok) argument
65 spu_macro_to_expand(cpp_reader *pfile, const cpp_token *tok) argument
[all...]
/haiku-buildtools/isl/include/isl/
H A Dstream.h58 __isl_give isl_val *isl_token_get_val(isl_ctx *ctx, struct isl_token *tok);
59 __isl_give char *isl_token_get_str(isl_ctx *ctx, struct isl_token *tok);
60 int isl_token_get_type(struct isl_token *tok);
61 void isl_token_free(struct isl_token *tok);
89 void isl_stream_error(struct isl_stream *s, struct isl_token *tok, char *msg);
94 void isl_stream_push_token(struct isl_stream *s, struct isl_token *tok);
/haiku-buildtools/binutils/gas/config/
H A Dtc-alpha.c794 debug_exp (expressionS tok[], int ntok)
801 expressionS *t = &tok[i];
878 expressionS tok[],
881 expressionS *end_tok = tok + ntok;
885 expressionS *orig_tok = tok;
895 memset (tok, 0, sizeof (*tok) * ntok);
906 while (tok < end_tok && *input_line_pointer)
961 tok->X_add_number = 0;
974 expression (tok);
787 debug_exp(expressionS tok[], int ntok) argument
870 tokenize_arguments(char *str, expressionS tok[], int ntok) argument
1058 find_opcode_match(const struct alpha_opcode *first_opcode, const expressionS *tok, int *pntok, int *pcpumatch) argument
1167 assemble_tokens_to_insn(const char *opname, const expressionS *tok, int ntok, struct alpha_insn *insn) argument
1665 emit_lda(const expressionS *tok, int ntok, const void * unused ATTRIBUTE_UNUSED) argument
1683 emit_ldah(const expressionS *tok, int ntok ATTRIBUTE_UNUSED, const void * unused ATTRIBUTE_UNUSED) argument
2017 assemble_insn(const struct alpha_opcode *opcode, const expressionS *tok, int ntok, struct alpha_insn *insn, extended_bfd_reloc_code_real_type reloc) argument
2170 emit_ir_load(const expressionS *tok, int ntok, const void * opname) argument
2215 emit_loadstore(const expressionS *tok, int ntok, const void * opname) argument
2263 emit_ldXu(const expressionS *tok, int ntok, const void * vlgsize) argument
2326 emit_ldX(const expressionS *tok, int ntok, const void * vlgsize) argument
2338 emit_uldXu(const expressionS *tok, int ntok, const void * vlgsize) argument
2387 emit_uldX(const expressionS *tok, int ntok, const void * vlgsize) argument
2398 emit_ldil(const expressionS *tok, int ntok, const void * unused ATTRIBUTE_UNUSED) argument
2413 emit_stX(const expressionS *tok, int ntok, const void * vlgsize) argument
2515 emit_ustX(const expressionS *tok, int ntok, const void * vlgsize) argument
2586 emit_sextX(const expressionS *tok, int ntok, const void * vlgsize) argument
2619 emit_division(const expressionS *tok, int ntok, const void * symname) argument
2716 emit_division(const expressionS *tok, int ntok, const void * symname) argument
2822 emit_jsrjmp(const expressionS *tok, int ntok, const void * vopname) argument
2918 emit_retjcr(const expressionS *tok, int ntok, const void * vopname) argument
3191 find_macro_match(const struct alpha_macro *first_macro, const expressionS *tok, int *pntok) argument
3301 assemble_tokens(const char *opname, const expressionS *tok, int ntok, int local_macros_on) argument
5535 expressionS tok[MAX_INSN_ARGS]; local
[all...]
H A Dtc-arc.c1116 expressionS *tok,
1130 memset (tok, 0, sizeof (*tok) * ntok);
1157 tok->X_op = O_bracket;
1158 ++tok;
1168 tok->X_op = O_bracket;
1169 ++tok;
1177 tok->X_op = O_colon;
1179 ++tok;
1190 tok
1115 tokenize_arguments(char *str, expressionS *tok, int ntok) argument
1609 allocate_tok(expressionS *tok, int ntok, int cidx) argument
1735 find_opcode_match(const struct arc_opcode_hash_entry *entry, expressionS *tok, int *pntok, struct arc_flags *first_pflag, int nflgs, int *pcpumatch, const char **errmsg) argument
2095 pseudo_operand_match(const expressionS *tok, const struct arc_operand_operation *op) argument
2154 find_pseudo_insn(const char *opname, int ntok, const expressionS *tok) argument
2184 find_special_case_pseudo(const char *opname, int *ntok, expressionS *tok, int *nflgs, struct arc_flags *pflags) argument
2328 find_special_case(const char *opname, int *nflgs, struct arc_flags *pflags, expressionS *tok, int *ntok) argument
2348 assemble_tokens(const char *opname, expressionS *tok, int ntok, struct arc_flags *pflags, int nflgs) argument
2406 expressionS tok[MAX_INSN_ARGS]; local
3608 may_relax_expr(expressionS tok) argument
3679 relaxable_operand(const struct arc_relaxable_ins *ins, const expressionS *tok, int ntok) argument
3756 relax_insn_p(const struct arc_opcode *opcode, const expressionS *tok, int ntok, const struct arc_flags *pflags, int nflg) argument
3794 assemble_insn(const struct arc_opcode *opcode, const expressionS *tok, int ntok, const struct arc_flags *pflags, int nflg, struct arc_insn *insn) argument
[all...]
H A Dxtensa-istack.h48 expressionS tok[MAX_INSN_ARGS]; member in struct:tinsn_struct
H A Dtc-xtensa.c1904 expression_maybe_register (xtensa_opcode opc, int opnd, expressionS *tok)
1912 segT t = expression (tok);
1917 gas_assert (tok->X_op == O_constant);
1918 tok->X_op = O_symbol;
1919 tok->X_add_symbol = &abs_symbol;
1922 if ((tok->X_op == O_constant || tok->X_op == O_symbol)
1923 && ((reloc = xtensa_elf_suffix (&input_line_pointer, tok))
1929 if (tok->X_op == O_constant)
1931 tok
1900 expression_maybe_register(xtensa_opcode opc, int opnd, expressionS *tok) argument
2060 expressionS *tok, *last_tok; local
5540 expressionS *tok = &orig_insn.extra_arg; local
5568 expressionS *tok = &orig_insn.extra_arg; local
[all...]
H A Dtc-arc.h247 expressionS tok[MAX_INSN_ARGS]; member in struct:arc_relax_type
249 /* Number of tok (i.e. number of operands). Used for re-assembling
/haiku-buildtools/legacy/binutils/gas/config/
H A Dtc-alpha.c731 debug_exp (expressionS tok[], int ntok)
738 expressionS *t = &tok[i];
815 expressionS tok[],
818 expressionS *end_tok = tok + ntok;
822 expressionS *orig_tok = tok;
832 memset (tok, 0, sizeof (*tok) * ntok);
843 while (tok < end_tok && *input_line_pointer)
899 tok->X_add_number = 0;
912 expression (tok);
724 debug_exp(expressionS tok[], int ntok) argument
807 tokenize_arguments(char *str, expressionS tok[], int ntok) argument
995 find_opcode_match(const struct alpha_opcode *first_opcode, const expressionS *tok, int *pntok, int *pcpumatch) argument
1104 assemble_tokens_to_insn(const char *opname, const expressionS *tok, int ntok, struct alpha_insn *insn) argument
1517 emit_lda(const expressionS *tok, int ntok, const void * unused ATTRIBUTE_UNUSED) argument
1535 emit_ldah(const expressionS *tok, int ntok ATTRIBUTE_UNUSED, const void * unused ATTRIBUTE_UNUSED) argument
1844 assemble_insn(const struct alpha_opcode *opcode, const expressionS *tok, int ntok, struct alpha_insn *insn, bfd_reloc_code_real_type reloc) argument
1994 emit_ir_load(const expressionS *tok, int ntok, const void * opname) argument
2032 emit_loadstore(const expressionS *tok, int ntok, const void * opname) argument
2079 emit_ldXu(const expressionS *tok, int ntok, const void * vlgsize) argument
2142 emit_ldX(const expressionS *tok, int ntok, const void * vlgsize) argument
2154 emit_uldXu(const expressionS *tok, int ntok, const void * vlgsize) argument
2203 emit_uldX(const expressionS *tok, int ntok, const void * vlgsize) argument
2214 emit_ldil(const expressionS *tok, int ntok, const void * unused ATTRIBUTE_UNUSED) argument
2229 emit_stX(const expressionS *tok, int ntok, const void * vlgsize) argument
2331 emit_ustX(const expressionS *tok, int ntok, const void * vlgsize) argument
2402 emit_sextX(const expressionS *tok, int ntok, const void * vlgsize) argument
2435 emit_division(const expressionS *tok, int ntok, const void * symname) argument
2532 emit_division(const expressionS *tok, int ntok, const void * symname) argument
2638 emit_jsrjmp(const expressionS *tok, int ntok, const void * vopname) argument
2697 emit_retjcr(const expressionS *tok, int ntok, const void * vopname) argument
2731 emit_ldgp(const expressionS *tok, int ntok ATTRIBUTE_UNUSED, const void * unused ATTRIBUTE_UNUSED) argument
2970 find_macro_match(const struct alpha_macro *first_macro, const expressionS *tok, int *pntok) argument
3080 assemble_tokens(const char *opname, const expressionS *tok, int ntok, int local_macros_on) argument
4982 expressionS tok[MAX_INSN_ARGS]; local
[all...]
H A Dxtensa-istack.h48 expressionS tok[MAX_INSN_ARGS]; member in struct:tinsn_struct
H A Dtc-xtensa.c1778 expression_maybe_register (xtensa_opcode opc, int opnd, expressionS *tok)
1786 segT t = expression (tok);
1790 assert (tok->X_op == O_constant);
1791 tok->X_op = O_symbol;
1792 tok->X_add_symbol = &abs_symbol;
1795 if ((tok->X_op == O_constant || tok->X_op == O_symbol)
1796 && (reloc = xtensa_elf_suffix (&input_line_pointer, tok))
1807 tok->X_op = O_pltrel;
1811 if (tok
1774 expression_maybe_register(xtensa_opcode opc, int opnd, expressionS *tok) argument
1932 expressionS *tok, *last_tok; local
[all...]
/haiku-buildtools/gcc/gcc/config/s390/
H A Ds390-c.c166 s390_categorize_keyword (const cpp_token *tok) argument
168 if (tok->type == CPP_NAME)
170 cpp_hashnode *ident = tok->val.node.node;
189 need to examine the 'tok' parameter. */
192 s390_macro_to_expand (cpp_reader *pfile, const cpp_token *tok) argument
194 cpp_hashnode *expand_this = tok->val.node.node;
205 ident = s390_categorize_keyword (tok);
224 tok = cpp_peek_token (pfile, idx++);
225 while (tok->type == CPP_PADDING);
226 ident = s390_categorize_keyword (tok);
[all...]
/haiku-buildtools/gcc/gcc/c-family/
H A Dc-lex.c403 const cpp_token *tok;
410 tok = cpp_get_token_with_location (parse_in, loc);
411 type = tok->type;
420 *value = HT_IDENT_TO_GCC_IDENT (HT_NODE (tok->val.node.node));
426 unsigned int flags = cpp_classify_number (parse_in, tok, &suffix, *loc);
438 if (tok->val.str.len == 1 && *tok->val.str.text == '0')
440 *value = interpret_integer (tok, flags, &overflow);
444 *value = interpret_float (tok, flags, suffix, &overflow);
456 int len = tok
401 const cpp_token *tok; local
1104 lex_string(const cpp_token *tok, tree *valp, bool objc_string, bool translate) argument
[all...]
/haiku-buildtools/binutils/binutils/
H A Dmcparse.h97 const mc_keyword *tok; member in union:YYSTYPE
H A Dmcparse.y47 const mc_keyword *tok;
55 %token<tok> MCTOKEN
63 %type<tok> lang
/haiku-buildtools/gcc/gcc/config/
H A Ddarwin-c.c165 int tok; local
172 tok = pragma_lex (&decl);
173 if (tok == CPP_NAME && decl)
182 tok = pragma_lex (&x);
183 if (tok != CPP_COMMA)
188 if (tok != CPP_CLOSE_PAREN)
/haiku-buildtools/cloog/osl/source/extensions/
H A Dirregular.c231 char * content,*tok; local
251 tok = strtok(content," \n");
252 irregular->nb_statements = atoi(tok);
261 tok = strtok(NULL," \n");
262 irregular->nb_predicates[i] = atoi(tok);
266 tok = strtok(NULL, " \n");
267 irregular->predicates[i][j] = atoi(tok);
272 tok = strtok(NULL, " \n");
273 irregular->nb_control=atoi(tok);
274 tok
[all...]

Completed in 299 milliseconds

12