src/share/vm/adlc/archDesc.cpp

Print this page
rev 7060 : 8058880: Introduce identifier TEMP_DEF for effects in adl.

*** 971,993 **** for (int i = 1; i < _last_machine_leaf; ++i) { char *ident = (char *)NodeClassNames[i]; constructOperand(ident, true); } // Create InstructForm and assign type for each ideal instruction. ! for ( int j = _last_machine_leaf+1; j < _last_opcode; ++j) { char *ident = (char *)NodeClassNames[j]; ! if(!strcmp(ident, "ConI") || !strcmp(ident, "ConP") || !strcmp(ident, "ConN") || !strcmp(ident, "ConNKlass") || !strcmp(ident, "ConF") || !strcmp(ident, "ConD") || !strcmp(ident, "ConL") || !strcmp(ident, "Con" ) || ! !strcmp(ident, "Bool") ) { constructOperand(ident, true); ! } ! else { InstructForm *insForm = new InstructForm(ident, true); // insForm->_opcode = nextUserOpType(ident); ! _globalNames.Insert(ident,insForm); addForm(insForm); } } { OperandForm *opForm; --- 971,992 ---- for (int i = 1; i < _last_machine_leaf; ++i) { char *ident = (char *)NodeClassNames[i]; constructOperand(ident, true); } // Create InstructForm and assign type for each ideal instruction. ! for (int j = _last_machine_leaf+1; j < _last_opcode; ++j) { char *ident = (char *)NodeClassNames[j]; ! if (!strcmp(ident, "ConI") || !strcmp(ident, "ConP") || !strcmp(ident, "ConN") || !strcmp(ident, "ConNKlass") || !strcmp(ident, "ConF") || !strcmp(ident, "ConD") || !strcmp(ident, "ConL") || !strcmp(ident, "Con" ) || ! !strcmp(ident, "Bool")) { constructOperand(ident, true); ! } else { InstructForm *insForm = new InstructForm(ident, true); // insForm->_opcode = nextUserOpType(ident); ! _globalNames.Insert(ident, insForm); addForm(insForm); } } { OperandForm *opForm;
*** 1036,1045 **** --- 1035,1047 ---- eForm = new Effect(ident); _globalNames.Insert(ident, eForm); ident = "TEMP"; eForm = new Effect(ident); _globalNames.Insert(ident, eForm); + ident = "TEMP_DEF"; + eForm = new Effect(ident); + _globalNames.Insert(ident, eForm); ident = "CALL"; eForm = new Effect(ident); _globalNames.Insert(ident, eForm); }
*** 1048,1058 **** int idealIndex = 0; for (idealIndex = 1; idealIndex < _last_machine_leaf; ++idealIndex) { const char *idealName = NodeClassNames[idealIndex]; _idealIndex.Insert((void*) idealName, (void*) (intptr_t) idealIndex); } ! for ( idealIndex = _last_machine_leaf+1; idealIndex < _last_opcode; ++idealIndex) { const char *idealName = NodeClassNames[idealIndex]; _idealIndex.Insert((void*) idealName, (void*) (intptr_t) idealIndex); } --- 1050,1060 ---- int idealIndex = 0; for (idealIndex = 1; idealIndex < _last_machine_leaf; ++idealIndex) { const char *idealName = NodeClassNames[idealIndex]; _idealIndex.Insert((void*) idealName, (void*) (intptr_t) idealIndex); } ! for (idealIndex = _last_machine_leaf+1; idealIndex < _last_opcode; ++idealIndex) { const char *idealName = NodeClassNames[idealIndex]; _idealIndex.Insert((void*) idealName, (void*) (intptr_t) idealIndex); }