Lines Matching refs:ec_name
841 char *ec_name; // Name of encoding class being defined
845 ec_name = get_ident();
846 if (ec_name == NULL) {
851 EncClass *encoding = _AD._encode->add_EncClass(ec_name);
901 enc_class_parse_block(encoding, ec_name);
905 void ADLParser::enc_class_parse_block(EncClass* encoding, char* ec_name) {
955 if (_AD._adl_debug > 1) fprintf(stderr,"EncodingClass Form: %s\n", ec_name);
2766 char* ec_name = (char*) malloc(strlen(inst._ident) + strlen(prefix) + 1);
2767 sprintf(ec_name, "%s%s", prefix, inst._ident);
2769 assert(_AD._encode->encClass(ec_name) == NULL, "shouldn't already exist");
2770 EncClass* encoding = _AD._encode->add_EncClass(ec_name);
2789 ins_encode_parse_block_impl(inst, encoding, ec_name);
2794 NameAndList* params = encrule->add_encode(ec_name);
2812 void ADLParser::ins_encode_parse_block_impl(InstructForm& inst, EncClass* encoding, char* ec_name) {
2860 parse_err(SYNERR, "constanttablebase in instruct %s cannot have an argument (only constantaddress and constantoffset)", ec_name);
2884 if (_AD._adl_debug > 1) fprintf(stderr, "EncodingClass Form: %s\n", ec_name);
2931 char *ec_name = NULL; // String representation of encode rule
2934 ec_name = get_ident();
2935 if (ec_name == NULL) {
2940 EncClass *encode_class = _AD._encode->encClass(ec_name);
2943 // parse_err(WARN, "Using an undefined encode class '%s' in 'ins_encode'.\n", ec_name);
2947 NameAndList *params = encrule->add_encode(ec_name);
2968 parse_err(SYNERR, "Using non-locally defined parameter %s for encoding %s.\n", param, ec_name);
2985 ec_name);
2993 parse_err(SYNERR, "Expected encode parameter before ',' in encoding %s.\n", ec_name);
3014 parse_err(SYNERR, "Expected ')' after encoding %s.\n", ec_name);
3047 if (_AD._adl_debug > 1) fprintf(stderr,"Instruction Encode: %s\n", ec_name);
3060 char* ec_name = (char*) malloc(strlen(inst._ident) + strlen(prefix) + 1);
3061 sprintf(ec_name, "%s%s", prefix, inst._ident);
3063 assert(_AD._encode->encClass(ec_name) == NULL, "shouldn't already exist");
3064 EncClass* encoding = _AD._encode->add_EncClass(ec_name);
3077 constant_parse_expression(encoding, ec_name);
3082 NameAndList* params = encrule->add_encode(ec_name);
3094 void ADLParser::constant_parse_expression(EncClass* encoding, char* ec_name) {
3156 if (_AD._adl_debug > 1) fprintf(stderr, "EncodingClass Form: %s\n", ec_name);