Lines Matching defs:globals

1114 static void build_instruction_index_mapping( FILE *fp, FormDict &globals, PeepMatch *pmatch ) {
1127 InstructForm *inst = globals[inst_name]->is_instruction();
1133 inst->index_temps( fp, globals, inst_prefix, receiver );
1140 static void check_peepconstraints(FILE *fp, FormDict &globals, PeepMatch *pmatch, PeepConstraint *pconstraint) {
1145 build_instruction_index_mapping( fp, globals, pmatch );
1165 InstructForm *inst_left = globals[pmatch->instruction_name(left_index)]->is_instruction();
1167 int left_op_base = inst_left->oper_input_base(globals);
1179 OpClassForm *left_opclass = globals[left_comp_type]->is_opclass();
1180 Form::InterfaceType left_interface_type = left_opclass->interface_type(globals);
1189 InstructForm *inst_right = globals[pmatch->instruction_name(right_index)]->is_instruction();
1191 int right_op_base = inst_right->oper_input_base(globals);
1203 OpClassForm *right_opclass = globals[right_comp_type]->is_opclass();
1204 Form::InterfaceType right_interface_type = right_opclass->interface_type(globals);
1313 // static Form::DataType get_operand_type(FormDict &globals, InstructForm *instr, const char *op_name ) {
1325 // OpClassForm *right_opclass = globals[right_comp_type]->is_opclass();
1326 // Form::InterfaceType right_interface_type = right_opclass->interface_type(globals);
1332 static void generate_peepreplace( FILE *fp, FormDict &globals, PeepMatch *pmatch, PeepConstraint *pconstraint, PeepReplace *preplace, int max_position ) {
1341 InstructForm *root_form = globals[root_inst]->is_instruction();
1354 inst_form = globals[pmatch->instruction_name(inst_num)]->is_instruction();
1370 int op_base = root_form->oper_input_base(globals);
1376 if( root_form->captures_bottom_type(globals) ) {
1387 if( (op_form == NULL) || (op_form->is_base_constant(globals) == Form::none) ) {
2667 static void defineIn_RegMask(FILE *fp, FormDict &globals, OperandForm &oper) {
2668 uint num_edges = oper.num_edges(globals);
2679 const char* first_reg_class = oper.in_reg_class(0, globals);
2684 const char* some_reg_class = oper.in_reg_class(index, globals);
2705 const char *reg_class = oper.in_reg_class(index, globals);
2757 OperandForm *rep_var_to_operand(const char *encoding, OperandForm &oper, FormDict &globals) {
2768 Form *form = (Form*)globals[type];
2777 int rep_var_to_constant_index(const char *encoding, OperandForm &oper, FormDict &globals) {
2788 Form *form = (Form*)globals[type];
2793 if (op->_matrule && op->_matrule->is_base_constant(globals)) {
2794 idx = oper.constant_position(globals, comp);
2801 bool is_regI(const char *encoding, OperandForm &oper, FormDict &globals ) {
2804 OperandForm *op = rep_var_to_operand(encoding, oper, globals);
2807 if ( (op->_matrule && op->_matrule->is_base_register(globals)) ) {
2809 const char* ideal = op->ideal_type(globals);
2817 bool is_conP(const char *encoding, OperandForm &oper, FormDict &globals ) {
2820 OperandForm *op = rep_var_to_operand(encoding, oper, globals);
2823 if (op->_matrule && op->_matrule->is_base_constant(globals)) {
2825 Form::DataType dtype = op->is_base_constant(globals);
2835 void ArchDesc::define_oper_interface(FILE *fp, OperandForm &oper, FormDict &globals,
2861 Form *form = (Form*)globals[type];
2866 if ( (op->_matrule && op->_matrule->is_base_register(globals)) ) {
2868 int idx_offset = oper.register_position( globals, rep_var);
2881 } else if (op->_matrule && op->_matrule->is_base_constant(globals)) {
2884 const int idx = oper.constant_position(globals, comp);
2888 oper.access_constant(fp, globals, (uint)idx /* , const_type */);
2902 if( emit_position && (position != -1) && (oper.num_edges(globals) > 0) ) {
2908 && base != NULL && is_regI(base, oper, globals)
2909 && disp != NULL && is_conP(disp, oper, globals) ) {
2918 int idx = rep_var_to_constant_index(disp, oper, globals);
3033 extern void gen_oper_format(FILE *fp, FormDict &globals, OperandForm &oper, bool for_c_file);
3154 extern void gen_inst_format(FILE *fp, FormDict &globals, InstructForm &oper, bool for_c_file);
3236 OutputReduceOp(FILE *hpp, FILE *cpp, FormDict &globals, ArchDesc &AD)
3237 : OutputMap(hpp, cpp, globals, AD, "reduceOp") {};
3271 OutputLeftOp(FILE *hpp, FILE *cpp, FormDict &globals, ArchDesc &AD)
3272 : OutputMap(hpp, cpp, globals, AD, "leftOp") {};
3301 OutputRightOp(FILE *hpp, FILE *cpp, FormDict &globals, ArchDesc &AD)
3302 : OutputMap(hpp, cpp, globals, AD, "rightOp") {};
3331 OutputRuleName(FILE *hpp, FILE *cpp, FormDict &globals, ArchDesc &AD)
3332 : OutputMap(hpp, cpp, globals, AD, "ruleName") {};
3349 OutputSwallowed(FILE *hpp, FILE *cpp, FormDict &globals, ArchDesc &AD)
3350 : OutputMap(hpp, cpp, globals, AD, "swallowed") {};
3370 OutputInstChainRule(FILE *hpp, FILE *cpp, FormDict &globals, ArchDesc &AD)
3371 : OutputMap(hpp, cpp, globals, AD, "instruction_chain_rule") {};
3621 static void path_to_constant(FILE *fp, FormDict &globals,
3633 && mnode->base_operand(position, globals, result, name, optype) ) {
3659 uint lConsts = (mnode->_lChild) ? (mnode->_lChild->num_consts(globals) ) : 0;
3660 uint rConsts = (mnode->_rChild) ? (mnode->_rChild->num_consts(globals) ) : 0;
3663 path_to_constant(fp, globals, mnode->_lChild, idx);
3670 path_to_constant(fp, globals, mnode->_rChild, idx);