Lines Matching refs:_AD
32 : _buf(buffer), _AD(archDesc),
34 _AD._syntax_errs = _AD._semantic_errs = 0; // No errors so far this file
35 _AD._warnings = 0; // No warnings either
42 _AD._preproc_list.add_signal();
48 if (!_AD._quiet_mode)
55 if( _AD._syntax_errs + _AD._semantic_errs + _AD._warnings == 0 ) {
56 if (!_AD._quiet_mode)
60 if( _AD._syntax_errs ) { // Any syntax errors?
61 fprintf(stderr,"%s: Found %d syntax error", _buf._fp->_name, _AD._syntax_errs);
62 if( _AD._syntax_errs > 1 ) fprintf(stderr,"s.\n\n");
65 if( _AD._semantic_errs ) { // Any semantic errors?
66 fprintf(stderr,"%s: Found %d semantic error", _buf._fp->_name, _AD._semantic_errs);
67 if( _AD._semantic_errs > 1 ) fprintf(stderr,"s.\n\n");
70 if( _AD._warnings ) { // Any warnings?
71 fprintf(stderr,"%s: Found %d warning", _buf._fp->_name, _AD._warnings);
72 if( _AD._warnings > 1 ) fprintf(stderr,"s.\n\n");
76 if (!_AD._quiet_mode)
78 _AD._TotalLines += linenum()-1; // -1 for overshoot in "nextline" routine
119 RegisterForm *regBlock = _AD.get_registers();
157 if (_AD._adl_debug > 1)
261 if (_AD._pipeline ) {
271 _AD.addForm(instr);
282 if (_AD._adl_debug > 1)
287 _AD.addForm(clone);
332 ChainList *lst = (ChainList *)_AD._chainRules[optype];
335 _AD._chainRules.Insert(optype, lst);
349 lst = (ChainList *)_AD._chainRules[result];
352 _AD._chainRules.Insert(result, lst);
375 ChainList *lst = (ChainList *)_AD._chainRules[chain_op];
378 _AD._chainRules.Insert(chain_op, lst);
414 if (_AD._adl_debug > 1) fprintf(stderr,"Parsing Operand Form %s\n", ident);
490 _AD.addForm(oper);
508 if (_AD._adl_debug > 1)
550 _AD.addForm(opc);
564 if (_AD._adl_debug > 1) fprintf(stderr,"Parsing Ins_Attribute Form %s\n", ident);
573 if (_AD._adl_debug > 1) fprintf(stderr,"Attribute Expression: %s\n", aexpr);
585 _AD.addForm(attrib);
599 if (_AD._adl_debug > 1) fprintf(stderr,"Parsing Op_Attribute Form %s\n", ident);
608 if (_AD._adl_debug > 1) fprintf(stderr,"Attribute Expression: %s\n", aexpr);
620 _AD.addForm(attrib);
711 if (_AD._adl_debug > 1) {
718 const Expr *old_expr = _AD.globalDefs().define(name, expr);
739 if (_AD._adl_debug > 1) fprintf(stderr,"Source Form: %s\n", rule);
742 _AD.addForm(source);
762 if (_AD._adl_debug > 1) fprintf(stderr,"Header Form: %s\n", rule);
764 if (_AD.get_registers() == NULL) {
767 _AD.addForm(pre_header);
771 _AD.addForm(header);
777 RegisterForm *regBlock = _AD.get_registers(); // Information about registers encoding
781 _AD.addForm(regBlock);
812 _AD.getForm(&encBlock);
816 _AD.addForm(encBlock);
851 EncClass *encoding = _AD._encode->add_EncClass(ec_name);
908 if (_AD._adlocation_debug) {
950 if (_AD._adlocation_debug) {
955 if (_AD._adl_debug > 1) fprintf(stderr,"EncodingClass Form: %s\n", ec_name);
1094 if (_AD._adl_debug > 1) fprintf(stderr,"Frame Form: %s\n", desc);
1097 _AD.addForm(frame);
1302 if (_AD._pipeline && !_AD._pipeline->_classlist.search(ident)) {
1308 _AD._pipeline->_classdict[ident]->is_pipeclass()->_instructs.addName(instr._ident);
1321 _AD.addForm(pipeline);
1381 if (_AD._pipeline && !_AD._pipeline->_classlist.search(pipe_class)) {
1387 _AD._pipeline->_classdict[pipe_class]->is_pipeclass()->_instructs.addName(node_class);
1392 _AD.addForm(machnode);
1641 if (_AD._adl_debug > 1) {
2295 if (_AD._adl_debug > 1) {
2301 _AD._register->addRegDef(rname, callconv, c_conv, idealtype, encoding, concrete);
2317 if (_AD._adl_debug >1) fprintf(stderr,"Register Class: %s\n", cname);
2319 RegClass *reg_class = _AD._register->addRegClass(cname);
2332 RegDef *regDef = _AD._register->getRegDef(rname);
2382 if (_AD._adl_debug >1) fprintf(stderr,"Allocation Class: %s\n", name);
2384 AllocClass *alloc_class = _AD._register->addAllocClass(name);
2398 RegDef *regDef = _AD._register->getRegDef(rname);
2465 const Form *form = _AD._globalNames[token];
2664 const Form *form = _AD._globalNames[inst];
2747 if (_AD._adl_debug > 1) fprintf(stderr,"Predicate: %s\n", rule);
2769 assert(_AD._encode->encClass(ec_name) == NULL, "shouldn't already exist");
2770 EncClass* encoding = _AD._encode->add_EncClass(ec_name);
2815 if (_AD._adlocation_debug) {
2879 if (_AD._adlocation_debug) {
2884 if (_AD._adl_debug > 1) fprintf(stderr, "EncodingClass Form: %s\n", ec_name);
2940 EncClass *encode_class = _AD._encode->encClass(ec_name);
2967 ((_AD._register == NULL ) || (_AD._register->getRegDef(param) == NULL)) ) {
3047 if (_AD._adl_debug > 1) fprintf(stderr,"Instruction Encode: %s\n", ec_name);
3063 assert(_AD._encode->encClass(ec_name) == NULL, "shouldn't already exist");
3064 EncClass* encoding = _AD._encode->add_EncClass(ec_name);
3098 if (_AD._adlocation_debug) {
3151 if (_AD._adlocation_debug) {
3156 if (_AD._adl_debug > 1) fprintf(stderr, "EncodingClass Form: %s\n", ec_name);
3188 if (_AD._adl_debug > 1) {
3259 if (_AD._adl_debug > 1) {
3328 if (_AD._adl_debug > 1) fprintf(stderr,"Interface Form: %s\n", iface_name);
3549 if (_AD._adl_debug > 1)
3552 match = new MatchRule(_AD, mnode, depth, cnstr, numleaves);
3668 if (_AD._adl_debug > 1) fprintf(stderr,"Format Rule: %s\n", desc);
3795 if (_AD._adl_debug > 1) fprintf(stderr,"Format Rule: %s\n", desc);
3815 if (_AD._adl_debug > 1) fprintf(stderr,"Effect description: %s\n", desc);
3942 if (_AD._adl_debug > 1) fprintf(stderr,"Expand Rule:\n");
3963 if (_AD._adl_debug > 1) fprintf(stderr,"Rewrite parameters: %s\n", params);
3972 if (_AD._adl_debug > 1) fprintf(stderr,"Rewrite Rule: %s\n", desc);
3989 if (_AD._adl_debug > 1) fprintf(stderr,"Attribute: %s\n", cost);
4033 _AD.has_match_rule(i, true);
4080 MatchNode* mroot = new MatchNode(_AD,result,name,operation,lChild,rChild);
4120 child = new MatchNode(_AD, result, token, opType);
4160 if (_AD._adlocation_debug) {
4248 if (include_location && _AD._adlocation_debug && !is_int_token(token2, junk)) {
4306 const char* def = _AD.get_preproc_def(start);
4309 const char* def2 = _AD.get_preproc_def(def1);
4313 const char* def3 = _AD.get_preproc_def(def2);
4569 if (_AD._adl_debug > 1) fprintf(stderr, "\tOperand Type: %s\t", ident);
4584 if (_AD._adl_debug > 1) fprintf(stderr, "\tOperand Name: %s\n", ident);
4631 if (_AD._adl_debug > 1) fprintf(stderr, "\tEffect Type: %s\t", ident);
4634 if (_AD._adl_debug > 1) fprintf(stderr, "\n");
4656 if (_AD._adl_debug > 1) fprintf(stderr, "\tOperand Name: %s\n", ident);
4693 _AD._ADL_file._name = file;
4704 _AD.set_preproc_def(flag, def);
4717 _AD.set_preproc_def(flag, NULL);
4729 _AD._syntax_errs += _AD.emit_msg(0, flag, linenum(), fmt, args);
4731 _AD._semantic_errs += _AD.emit_msg(0, flag, linenum(), fmt, args);
4733 _AD._warnings += _AD.emit_msg(0, flag, linenum(), fmt, args);
4740 _AD._no_output = 1;
4816 bool flag_def = preproc_taken() && (_AD.get_preproc_def(flag) != NULL);
4957 const char* file = _AD._ADL_file._name;