Lines Matching defs:token

94     ident = get_ident();         // Get first token
631 char *token = get_ident();
632 if (token == NULL) {
636 if (strcmp(token,"int_def")==0) { int_def_parse(); }
637 // if (strcmp(token,"str_def")==0) { str_def_parse(); }
789 char *token = get_ident();
790 if (token == NULL) {
794 if (strcmp(token,"reg_def")==0) { reg_def_parse(); }
795 else if (strcmp(token,"reg_class")==0) { reg_class_parse(); }
796 else if (strcmp(token,"alloc_class")==0) { alloc_class_parse(); }
797 else if (strcmp(token,"#define")==0) { preproc_define(); }
798 else { parse_err(SYNERR, "bad token %s inside register block.\n", token); break; }
824 char *token = get_ident();
825 if (token == NULL) {
829 if (strcmp(token,"enc_class")==0) { enc_class_parse(); }
972 char *token = get_ident();
973 if (token == NULL) {
977 if (strcmp(token,"stack_direction")==0) {
980 if (strcmp(token,"sync_stack_slots")==0) {
983 if (strcmp(token,"frame_pointer")==0) {
986 if (strcmp(token,"interpreter_frame_pointer")==0) {
989 if (strcmp(token,"inline_cache_reg")==0) {
992 if (strcmp(token,"compiler_method_oop_reg")==0) {
996 if (strcmp(token,"interpreter_method_oop_reg")==0) {
999 if (strcmp(token,"cisc_spilling_operand_name")==0) {
1002 if (strcmp(token,"stack_alignment")==0) {
1005 if (strcmp(token,"return_addr")==0) {
1008 if (strcmp(token,"in_preserve_stack_slots")==0) {
1011 if (strcmp(token,"out_preserve_stack_slots")==0) {
1012 parse_err(WARN, "Using obsolete token, out_preserve_stack_slots");
1015 if (strcmp(token,"varargs_C_out_slots_killed")==0) {
1018 if (strcmp(token,"calling_convention")==0) {
1021 if (strcmp(token,"return_value")==0) {
1024 if (strcmp(token,"c_frame_pointer")==0) {
1027 if (strcmp(token,"c_return_addr")==0) {
1030 if (strcmp(token,"c_calling_convention")==0) {
1033 if (strcmp(token,"c_return_value")==0) {
1159 char *token = NULL;
1163 token = get_expr(description, ")");
1164 if (token == NULL) {
1180 trim(token);
1181 return token;
1190 char *token = get_ident();
1191 if (token == NULL) {
1196 if (strcmp(token, "REG") == 0) {
1199 else if (strcmp(token, "STACK") == 0) {
1234 char *token = get_paren_expr("preserve_stack_slots");
1235 frame->_in_preserve_slots = token;
2086 char *token = get_ident();
2087 if (token == NULL) {
2092 if (strcmp(token,"peepmatch")==0) {
2094 else if (strcmp(token,"peepconstraint")==0) {
2096 else if (strcmp(token,"peepreplace")==0) {
2099 parse_err(SYNERR, "expected peepmatch, peepconstraint, or peepreplace for identifier %s.\n", token);
2339 // Check for ',' and position to next token.
2408 // Check for ',' and position to next token.
2431 char *token = NULL;
2464 else if ((token = get_ident_dup()) != NULL) {
2465 const Form *form = _AD._globalNames[token];
2473 match.add_instruction( parent, position, token, input );
2478 token);
2649 char *token = NULL;
3590 // (3) multi-token ANSIY C style strings
3636 skipws(); // Skip white space before next string token
3727 // (3) multi-token ANSIY C style strings
3766 skipws(); // Skip white space before next string token
4011 char *token; // Identifier which may be opcode or operand
4020 token = get_ident(); // Get identifier, opcode
4021 if (token == NULL) {
4032 if (strcmp(token, NodeClassNames[i]) == 0) {
4039 const char *name = token; // local name associated with this node
4040 const char *operation = token; // remember valid operation for later
4041 const Form *form = operands[token];
4044 // If this token is an entry in the local names table, record its type
4097 const char *token = NULL;
4105 token = get_ident();
4106 const Form *form = operands[token];
4112 parse_err(SYNERR, "undefined operand %s in match rule\n", token);
4117 parse_err(SYNERR, "missing type for argument '%s'\n", token);
4120 child = new MatchNode(_AD, result, token, opType);
4175 // Move to the closing token of the expression we are currently at,
4265 // NULL if some other token is found instead.
4268 char *start; // Pointer to start of token
4269 char *end; // Pointer to end of token
4298 _curchar = c; // Save the first character of next token
4301 _ptr = end; // Reset _ptr to point to next char after token
4323 return start; // Pointer to token in filebuf
4328 // or NULL if some other token is found instead.
4462 // invokes a parse_err if the next token is not an integer.
4466 char *start; // Pointer to start of token
4467 char *end; // Pointer to end of token
4486 _curchar = c; // Save the first character of next token
4492 // Reset _ptr to next char after token
4501 // invokes a parse_err if the next token is not a relation
4800 // #define or #undef, which tells the caller that a preprocessor token
4832 // pass this token up to the main parser as "#define" or "#undef"
4862 parse_err(SYNERR, "unimplemented: comment token in a funny place");
4988 bool ADLParser::is_int_token(const char* token, int& intval) {
4989 const char* cp = token;
4998 intval = atoi(token);
5063 void ADLParser::trim(char* &token) {
5064 while (*token <= ' ') token++;
5065 char* end = token + strlen(token);
5066 while (end > token && *(end-1) <= ' ') --end;