Lines Matching defs:chrec
46 automatically_generated_chrec_p (tree chrec)
48 return (chrec == chrec_not_analyzed_yet
49 || chrec == chrec_dont_know
50 || chrec == chrec_known);
125 chrec_zerop (tree chrec)
127 if (chrec == NULL_TREE)
130 if (TREE_CODE (chrec) == INTEGER_CST)
131 return integer_zerop (chrec);
139 evolution_function_is_constant_p (tree chrec)
141 if (chrec == NULL_TREE)
144 switch (TREE_CODE (chrec))
159 evolution_function_is_affine_p (tree chrec)
161 if (chrec == NULL_TREE)
164 switch (TREE_CODE (chrec))
167 if (evolution_function_is_invariant_p (CHREC_LEFT (chrec),
168 CHREC_VARIABLE (chrec))
169 && evolution_function_is_invariant_p (CHREC_RIGHT (chrec),
170 CHREC_VARIABLE (chrec)))
184 evolution_function_is_affine_or_constant_p (tree chrec)
186 return evolution_function_is_affine_p (chrec)
187 || evolution_function_is_constant_p (chrec);
190 /* Determines whether EXPR does not contains chrec expressions. */
202 no_evolution_in_loop_p (tree chrec, unsigned loop_num, bool *res)
206 if (chrec == chrec_not_analyzed_yet
207 || chrec == chrec_dont_know
208 || chrec_contains_symbols_defined_in_loop (chrec, loop_num))
211 scev = hide_evolution_in_other_loops_than_loop (chrec, loop_num);
216 /* Returns the type of the chrec. */
219 chrec_type (tree chrec)
221 if (automatically_generated_chrec_p (chrec))
224 return TREE_TYPE (chrec);