nir: Add a nop intrinsic
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 16 Sep 2016 04:02:37 +0000 (21:02 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 3 Oct 2016 23:17:12 +0000 (16:17 -0700)
commit7697b4b98b155c818811709becdb408772371538
tree61198eb2847f5e588b9e3ca0b553c4360a95e7fc
parent0176c6a69236466a7f4bd1cb41fc09d88a5b4778
nir: Add a nop intrinsic

This intrinsic has no destination, no sources, no variables, and can be
eliminated.  In other words, it does nothing and will always get deleted by
dead code elimination.  However, it does provide a quick-and-easy way to
temporarily tag a particular location in a NIR shader.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/compiler/nir/nir_intrinsics.h