nir: Add comments to nir_index_instrs and nir_index_ssa_defs
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 14 Sep 2015 19:25:28 +0000 (12:25 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 17 Sep 2015 15:16:01 +0000 (08:16 -0700)
commitddffe30f404b7dffef2b90879023433ecc7df3e3
tree13b2b1e77ecf7f2e16a7ebc0a4a27338ed4331f1
parent8ecaef967d6f2775bf7114d857baf3aaa13643a7
nir: Add comments to nir_index_instrs and nir_index_ssa_defs

The provided indices have the very nice property that if A dominates B then
A->index <= B->index.  We should document that somewhere.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/nir/nir.c