Lines Matching refs:Form

32     _localNames(cmpstr, hashstr, Form::arena),
33 _effects(cmpstr, hashstr, Form::arena),
37 _ftype = Form::INS;
69 _ftype = Form::INS;
394 Form::CallType InstructForm::is_ideal_call() const {
395 if( _matrule == NULL ) return Form::invalid_type;
399 if(_matrule->find_type("CallStaticJava",idx)) return Form::JAVA_STATIC;
401 if(_matrule->find_type("Lock",idx)) return Form::JAVA_STATIC;
403 if(_matrule->find_type("Unlock",idx)) return Form::JAVA_STATIC;
405 if(_matrule->find_type("CallDynamicJava",idx)) return Form::JAVA_DYNAMIC;
407 if(_matrule->find_type("CallRuntime",idx)) return Form::JAVA_RUNTIME;
409 if(_matrule->find_type("CallLeaf",idx)) return Form::JAVA_LEAF;
411 if(_matrule->find_type("CallLeafNoFP",idx)) return Form::JAVA_LEAF;
414 return Form::invalid_type;
418 Form::DataType InstructForm::is_ideal_load() const {
419 if( _matrule == NULL ) return Form::none;
432 Form::DataType InstructForm::is_ideal_store() const {
433 if( _matrule == NULL ) return Form::none;
458 const Form *form = globals[def_type];
462 op->interface_type(globals) == Form::register_interface ) {
480 Form::DataType InstructForm::is_chain_of_constant(FormDict &globals) {
485 Form::DataType InstructForm::is_chain_of_constant(FormDict &globals,
492 Form::DataType InstructForm::is_chain_of_constant(FormDict &globals,
494 Form::DataType data_type = Form::none;
509 if ( data_type == Form::none ) return data_type;
535 Form::DataType data_type = is_chain_of_constant(globals);
536 if( data_type != Form::none )
560 if ( is_ideal_load() != Form::none || // Ideal load? Do not rematerialize
561 is_ideal_copy() != Form::none || // Ideal copy? Do not rematerialize
562 is_expensive() != Form::none) { // Expensive? Do not rematerialize
570 const Form *form = globals[c->_type];
595 if( is_ideal_load() != Form::none ) return true;
618 const Form *form = globals[comp->_type];
622 if( form->interface_type(globals) == Form::memory_interface ) {
664 const Form *form = globals[comp->_type];
669 if( form->interface_type(globals) == Form::memory_interface ) {
736 if( is_ideal_store() != Form::none ) {
742 if( is_ideal_load() != Form::none ) {
768 else if ( is_ideal_load() == Form::idealP ) return true;
769 else if ( is_ideal_store() != Form::none ) return true;
838 uint InstructForm::num_consts(FormDict &globals, Form::DataType type) const {
908 const Form* form = _effects[name];
935 const Form *form = globalAD->globalNames()[component->_type];
958 const Form *form = globalAD->globalNames()[component->_type];
1040 const Form *form = globals[comp->_type];
1048 Form::DataType type = oper->is_base_constant(globals);
1049 if ( (type == Form::idealF) || (type == Form::idealD) ) {
1059 Form::DataType data_type = is_chain_of_constant(globals);
1107 if( is_ideal_call() == Form::JAVA_STATIC ) {
1110 else if( is_ideal_call() == Form::JAVA_DYNAMIC ) {
1113 else if( is_ideal_call() == Form::JAVA_RUNTIME ) {
1116 else if( is_ideal_call() == Form::JAVA_LEAF ) {
1283 const Form *form = _localNames[rep_var];
1473 Dict names(cmpstr,hashstr,Form::arena); // Map Names to counts
1520 : _encClass(cmpstr,hashstr, Form::arena) {
1576 : _localNames(cmpstr,hashstr, Form::arena), _name(name) {
1825 _ftype = Form::EFF;
1856 _newopconst(cmpstr, hashstr, Form::arena) {
1857 _ftype = Form::EXP;
1931 _ftype = Form::OPCLASS;
1943 Form::InterfaceType OpClassForm::interface_type(FormDict &globals) const {
1944 if( _oplst.count() == 0 ) return Form::no_interface;
1947 Form::InterfaceType interface;
1953 const Form *form = globals[op_name];
1960 interface = (interface == operand->interface_type(globals) ? interface : Form::no_interface);
1973 const Form *form = globals[op_name];
2001 _localNames(cmpstr, hashstr, Form::arena) {
2002 _ftype = Form::OPER;
2014 _localNames(cmpstr, hashstr, Form::arena) {
2015 _ftype = Form::OPER;
2037 Form::InterfaceType OperandForm::interface_type(FormDict &globals) const {
2038 if( _interface == NULL ) return Form::no_interface;
2077 uint OperandForm::num_consts(FormDict &globals, Form::DataType type) const {
2108 const Form *form = globals[_matrule->_opType];
2129 Form::InterfaceType my_interface = interface_type(globals);
2142 Form::DataType OperandForm::is_user_name_for_sReg() const {
2145 if( strcmp(_ident,"stackSlotI") == 0 ) data_type = Form::idealI;
2146 else if( strcmp(_ident,"stackSlotP") == 0 ) data_type = Form::idealP;
2147 else if( strcmp(_ident,"stackSlotD") == 0 ) data_type = Form::idealD;
2148 else if( strcmp(_ident,"stackSlotF") == 0 ) data_type = Form::idealF;
2149 else if( strcmp(_ident,"stackSlotL") == 0 ) data_type = Form::idealL;
2191 const Form *frm = globals[type];
2282 const Form *form = (_localNames[name] ? _localNames[name] : globals[result]);
2342 const Form *form = globals[type];
2346 if( oper->_matrule->is_base_constant(globals) != Form::none ) {
2381 const Form *form = globals[type];
2427 Form *form = (Form*)globals[type];
2432 if ( op->is_base_constant(globals) == Form::idealP ) {
2446 Form::DataType dtype;
2454 } else if (_matrule && (dtype = _matrule->is_base_constant(globals)) != Form::none) {
2456 } else if (ideal_to_sReg_type(_ident) != Form::none) {
2474 Form::DataType dtype;
2483 } else if (_matrule && (dtype = _matrule->is_base_constant(globals)) != Form::none) {
2485 } else if (ideal_to_sReg_type(_ident) != Form::none) {
2501 case Form::idealI: fprintf(fp," st->print(\"#%%d\", _c%d);\n", const_index); break;
2502 case Form::idealP: fprintf(fp," if (_c%d) _c%d->dump_on(st);\n", const_index, const_index); break;
2503 case Form::idealN: fprintf(fp," if (_c%d) _c%d->dump_on(st);\n", const_index, const_index); break;
2504 case Form::idealL: fprintf(fp," st->print(\"#%%lld\", _c%d);\n", const_index); break;
2505 case Form::idealF: fprintf(fp," st->print(\"#%%f\", _c%d);\n", const_index); break;
2506 case Form::idealD: fprintf(fp," st->print(\"#%%f\", _c%d);\n", const_index); break;
2535 if ( ideal_to_const_type(type) != Form::none ) {
2552 Form::DataType OperandForm::simple_type(FormDict &globals) const {
2554 Form::DataType type = type_name ? ideal_to_const_type( type_name )
2555 : Form::none;
2559 Form::DataType OperandForm::is_base_constant(FormDict &globals) const {
2560 if ( _matrule == NULL ) return Form::none;
2567 Form::DataType type = simple_type(globals);
2568 if( type != Form::none ) {
2580 Form::DataType dtype = oper->is_base_constant(globals);
2650 Form::InterfaceType Interface::interface_type(FormDict &globals) const {
2652 if ( thsi->is_RegInterface() ) return Form::register_interface;
2653 if ( thsi->is_MemInterface() ) return Form::memory_interface;
2654 if ( thsi->is_ConstInterface() ) return Form::constant_interface;
2655 if ( thsi->is_CondInterface() ) return Form::conditional_interface;
2657 return Form::no_interface;
2799 : Form(Form::ATTR), _attrname(attr), _atype(type), _attrdef(attrdef) {
2837 _ftype = Form::COMP;
2860 const Form *frm = globals[_type];
2971 int ComponentList::operand_position(const char *name, int usedef, Form *fm) {
3051 int ComponentList::operand_position_format(const char *name, Form *fm) {
3180 const Form *f = globals[_opType];
3221 const Form *form = globals[_opType];
3286 uint MatchNode::num_consts(FormDict &globals, Form::DataType type) const {
3304 return num_consts( globals, Form::idealP );
3535 const Form *form1 = globals[op1];
3536 const Form *form2 = globals[op2];
3556 const Form *form = globals[_opType];
3557 const Form *form2 = globals[mRule2->_opType];
3564 DataType data_type = Form::none;
3572 && data_type != Form::none
3576 const Form *form2_left = name_left ? globals[name_left] : NULL;
3676 const Form *form = globals[_opType];
3677 const Form *form2 = globals[mRule2->_opType];
3710 const Form *form = globals[_opType];
3711 const Form *form2 = globals[mNode2->_opType];
3754 const Form *form = globals[_rChild->_opType];
3757 if( oper && oper->interface_type(globals) == Form::constant_interface )
3894 Form::DataType MatchRule::is_base_constant(FormDict &globals) const {
3905 return Form::none;
3912 const Form *form = globals[_opType];
3921 const Form *form = globals[rch];
4081 Form::DataType MatchRule::is_ideal_load() const {
4082 Form::DataType ideal_load = Form::none;
4142 Form::DataType MatchRule::is_ideal_store() const {
4143 Form::DataType ideal_store = Form::none;