nir: Add is_not_negative helper function

This was taken from 636da12433, and is
needed by the next patch.
This commit is contained in:
Dylan Baker 2019-09-04 16:24:27 -07:00
parent f180b04d65
commit b84cbdfd4d

View file

@ -31,6 +31,12 @@
* the result.
*/
static bool
is_not_negative(enum ssa_ranges r)
{
return r == gt_zero || r == ge_zero || r == eq_zero;
}
static void *
pack_data(const struct ssa_result_range r)
{