Lines Matching defs:instr

1042   fprintf(fp_cpp, "    st->print(\"%%s%%d instr%%s\", needs_comma ? \", \" : \"\", instr_count(), instr_count() != 1 ? \"s\" : \"\");\n");
1313 // static Form::DataType get_operand_type(FormDict &globals, InstructForm *instr, const char *op_name ) {
1314 // int op_index = instr->operand_position(op_name, Component::USE);
1316 // op_index = instr->operand_position(op_name, Component::DEF);
1318 // op_index = instr->operand_position(op_name, Component::USE_DEF);
1323 // ComponentList components_right = instr->_components;
3043 InstructForm *instr;
3045 for( ; (instr = (InstructForm*)_instructions.iter()) != NULL; ) {
3047 if ( instr->ideal_only() ) continue;
3049 defineOut_RegMask(_CPP_MISC_file._fp, instr->_ident, reg_mask(*instr));
3055 for( ; (instr = (InstructForm*)_instructions.iter()) != NULL; ) {
3057 if ( instr->ideal_only() ) continue;
3059 if( instr->expands() || instr->needs_projections() ||
3060 instr->has_temps() ||
3061 instr->is_mach_constant() ||
3062 instr->_matrule != NULL &&
3063 instr->num_opnds() != instr->num_unique_opnds() )
3064 defineExpand(_CPP_EXPAND_file._fp, instr);
3066 if ( instr->peepholes() )
3067 definePeephole(_CPP_PEEPHOLE_file._fp, instr);
3070 used |= instr->define_cisc_version(*this, fp);
3073 used |= instr->define_short_branch_methods(*this, fp);
3081 while( (instr = (InstructForm*)_instructions.iter()) != NULL ) {
3083 if ( instr->ideal_only() ) continue;
3086 int label_position = instr->label_position();
3089 fprintf(fp,"void %sNode::label_set( Label* label, uint block_num ) {\n", instr->_ident);
3096 fprintf(fp,"void %sNode::save_label( Label** label, uint* block_num ) {\n", instr->_ident);
3107 while( (instr = (InstructForm*)_instructions.iter()) != NULL ) {
3109 if ( instr->ideal_only() ) continue;
3112 int method_position = instr->method_position();
3115 fprintf(fp,"void %sNode::method_set( intptr_t method ) {\n", instr->_ident);
3125 while( (instr = (InstructForm*)_instructions.iter()) != NULL ) {
3127 uint reloc_size = instr->reloc(_globalNames);
3129 fprintf(fp,"int %sNode::reloc() const {\n", instr->_ident);
3145 for( ; (instr = (InstructForm*)_instructions.iter()) != NULL; ) {
3147 if ( instr->ideal_only() ) continue;
3149 if (instr->_insencode) defineEmit (fp, *instr);
3150 if (instr->is_mach_constant()) defineEvalConstant(fp, *instr);
3151 if (instr->_size) defineSize (fp, *instr);
3155 gen_inst_format(_CPP_FORMAT_file._fp, _globalNames, *instr, true);
3160 for( ; (instr = (InstructForm*)_instructions.iter()) != NULL; ) {
3162 if ( instr->ideal_only() ) continue;
3165 int memory_operand = instr->memory_operand(_globalNames);
3167 if ( instr->is_wide_memory_kill(_globalNames) ) {
3173 fprintf(fp,"const TypePtr *%sNode::adr_type() const { return TypePtr::BOTTOM; }\n", instr->_ident);
3174 fprintf(fp,"const MachOper* %sNode::memory_operand() const { return (MachOper*)-1; }\n", instr->_ident);
3176 fprintf(fp,"const MachOper* %sNode::memory_operand() const { return _opnds[%d]; }\n", instr->_ident, memory_operand);
3185 for ( ; (instr = (InstructForm*)_instructions.iter()) != NULL; ) {
3186 if (instr->_ins_pipe && _pipeline->_classlist.search(instr->_ins_pipe)) {
3187 int ident_len = (int)strlen(instr->_ident);
3219 for ( ; (instr = (InstructForm*)_instructions.iter()) != NULL; ) {
3220 if (instr->_ins_pipe && _pipeline->_classlist.search(instr->_ins_pipe)) {
3223 max_ident_len, instr->_ident, ((class PipeClassForm *)_pipeline->_classdict[instr->_ins_pipe])->_num);
3225 max_ident_len, instr->_ident, ((class PipeClassForm *)_pipeline->_classdict[instr->_ins_pipe])->_num);
4169 InstructForm *instr;
4170 for( ; (instr = (InstructForm*)_instructions.iter()) != NULL; ) {
4172 if ( instr->_matrule == NULL ) continue;
4174 MatchRule &mrule = *instr->_matrule;
4175 Predicate *pred = instr->build_predicate();
4178 const char *rootOp = instr->_ident;
4182 const char *result = instr->reduce_result();
4184 if( PrintAdlcCisc ) fprintf(stderr, " new instruction %s \n", instr->_ident ? instr->_ident : " ");
4192 && (instr != instr2 ) // Skip self
4197 found_cisc_alternate = instr->cisc_spills_to(*this, instr2);
4230 InstructForm *instr;
4231 while( (instr = (InstructForm*)_instructions.iter()) != NULL ) {
4233 if (instr->_matrule != NULL &&
4234 instr->is_short_branch()) {
4239 instr2->check_branch_variant(*this, instr);
4251 InstructForm *instr;
4252 while( (instr = (InstructForm*)_instructions.iter()) != NULL ) {
4254 if (!instr->ideal_only()) {
4255 instr->set_unique_opnds();