Lines Matching defs:gimple
2 GENERIC and GIMPLE folding code from match-and-simplify description.
878 /* The expression that is matched against the GENERIC or GIMPLE IL. */
1214 GENERIC and a GIMPLE variant. */
1299 GENERIC and a GIMPLE variant. */
1549 lower (vec<simplify *>& simplifiers, bool gimple)
1568 if (gimple)
1578 /* The decision tree built for generating GIMPLE and GENERIC pattern
1720 void gen (FILE *f, bool gimple);
2117 bool gimple;
2124 gimple = gimple_;
2217 && !gimple)
2354 && !gimple)
2428 expr::gen_transform (FILE *f, int indent, const char *dest, bool gimple,
2501 ops[i]->gen_transform (f, indent, dest1, gimple, depth + 1, optype1,
2512 if (gimple)
2680 capture::gen_transform (FILE *f, int indent, const char *dest, bool gimple,
2690 what->gen_transform (f, indent, buf, gimple, depth, in_type,
2697 if (!gimple
2710 if (gimple
2767 dt_operand::gen_predicate (FILE *f, int indent, const char *opname, bool gimple)
2775 if (gimple)
2809 /* Generate GIMPLE matching code for the decision tree operand. */
2928 dt_node::gen_kids (FILE *f, int indent, bool gimple, int depth)
2945 && (!gimple || !(*e->operation == CONSTRUCTOR)))
2949 if (gimple)
2961 if (gimple)
2968 if (gimple && !e->is_generic)
2990 gen_kids_1 (f, indent, gimple, depth, gimple_exprs, generic_exprs,
2993 kids[i]->gen (f, indent, gimple, depth);
3006 gen_kids_1 (f, indent, gimple, depth, gimple_exprs, generic_exprs,
3013 dt_node::gen_kids_1 (FILE *f, int indent, bool gimple, int depth,
3051 " if (gimple *_d%d = get_def (valueize, %s))\n",
3139 generic_exprs[i]->gen (f, indent + 6, gimple, depth);
3165 generic_exprs[i]->gen (f, indent + 4, gimple, depth);
3217 gimple ? "gimple" : "tree",
3219 gimple ? ", valueize" : "");
3228 preds[i]->gen_kids (f, indent + 4, gimple, depth);
3235 others[i]->gen (f, indent, gimple, depth);
3241 dt_operand::gen (FILE *f, int indent, bool gimple, int depth)
3252 n_braces = gen_predicate (f, indent, opname, gimple);
3256 if (gimple)
3268 n_braces = gen_match_op (f, indent, opname, gimple);
3273 gen_kids (f, indent, gimple, depth);
3291 dt_simplify::gen_1 (FILE *f, int indent, bool gimple, operand *result)
3301 gen_1 (f, indent, gimple, w->subexpr);
3314 gen_1 (f, indent, gimple, ife->trueexpr);
3322 gen_1 (f, indent, gimple, ife->falseexpr);
3338 capture_info cinfo (s, result, gimple);
3341 if (!gimple)
3377 if (gimple)
3430 else if (gimple)
3432 /* For GIMPLE simply drop NON_LVALUE_EXPR (which only appears
3577 ignored when in GIMPLE form. */
3652 dt_simplify::gen (FILE *f, int indent, bool gimple, int depth ATTRIBUTE_UNUSED)
3676 if (gimple)
3719 gen_1 (f, indent, gimple, s->result);
3808 /* Main entry to generate code for matching GIMPLE IL off the decision
3812 decision_tree::gen (FILE *f, bool gimple)
3820 gimple ? "GIMPLE" : "GENERIC",
3842 s->fname = xasprintf ("%s_simplify_%u", gimple ? "gimple" : "generic",
3844 if (gimple)
3876 s->s->gen_1 (f, 2, gimple, s->s->s->result);
3877 if (gimple)
3899 || (!gimple
3903 if (gimple)
3923 dop->gen_kids (f, 2, gimple, 0);
3924 if (gimple)
3936 if (gimple)
3949 if (gimple)
3959 if (gimple)
3973 if (gimple)
3988 || (!gimple
3999 if (gimple)
4012 if (gimple)
4023 write_predicate (FILE *f, predicate_id *p, decision_tree &dt, bool gimple)
4027 "{\n", gimple ? "gimple_" : "tree_", p->id,
4029 gimple ? ", tree (*valueize)(tree) ATTRIBUTE_UNUSED" : "");
4035 if (!gimple)
4037 dt.root->gen_kids (f, 2, gimple, 0);
4043 /* Write the common header for the GIMPLE/GENERIC IL matching routines. */
4062 parser (cpp_reader *, bool gimple);
4099 bool gimple;
5162 gimple = gimple_;
5193 and outputs GIMPLE or GENERIC IL matching and simplification routines. */
5205 bool gimple = true;
5209 if (strcmp (argv[i], "--gimple") == 0)
5210 gimple = true;
5212 gimple = false;
5220 "[--gimple] [--generic] [-v[v]] input\n");
5243 cpp_define (r, gimple ? "GIMPLE=1": "GENERIC=1");
5244 cpp_define (r, gimple ? "GENERIC=0": "GIMPLE=0");
5269 parser p (r, gimple);
5271 if (gimple)
5272 write_header (stdout, "gimple-match-head.cc");
5281 lower (pred->matchers, gimple);
5294 write_predicate (stdout, pred, dt, gimple);
5298 lower (p.simplifiers, gimple);
5311 dt.gen (stdout, gimple);