nir: Document a couple instances of parent_instr
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 6 Jun 2018 02:00:42 +0000 (19:00 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 16 Jun 2018 00:36:51 +0000 (17:36 -0700)
commit355868dbfc88313c0b0c59d3f038422ed6268255
tree1b57d1c53c5ea8ee7329722ed13bafdf1c0cdf0e
parent4467040cb658529cb0e41be463b94e15f48f17a2
nir: Document a couple instances of parent_instr

nir_ssa_def::parent_instr and nir_src::parent_instr have the same name,
but they mean really different things.  I choose to save the next person
the hour+ that I just spent figuring that out.  Even now that I know, I
doubt I'd notice in code review that someone typed foo->parent_instr
when they actually meant foo->ssa->parent_instr.

v2: Minor wording tweak in nir_ssa_def::parent_instr.  Suggested by
Jason.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir.h