nir: Add a helper to determine if an intrinsic can be reordered
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 4 Jun 2019 11:02:31 +0000 (13:02 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Wed, 19 Jun 2019 12:08:28 +0000 (14:08 +0200)
commita1c737927c0d96f26ce487930aa9a2ed323814c9
treee5a1de6ef6eaf87e9c51d317a45ec8c2353b87b7
parent6fc83c253f5b6eacf9497558173c1b01262facb9
nir: Add a helper to determine if an intrinsic can be reordered

This is simple now, but we're going to be adding a few more conditions
to this later.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_instr_set.c
src/compiler/nir/nir_opt_gcm.c