mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 10:20:20 +01:00
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>
This commit is contained in:
parent
8ecaef967d
commit
ddffe30f40
1 changed files with 8 additions and 0 deletions
|
|
@ -1427,6 +1427,10 @@ index_ssa_block(nir_block *block, void *state)
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* The indices are applied top-to-bottom which has the very nice property
|
||||
* that, if A dominates B, then A->index <= B->index.
|
||||
*/
|
||||
void
|
||||
nir_index_ssa_defs(nir_function_impl *impl)
|
||||
{
|
||||
|
|
@ -1445,6 +1449,10 @@ index_instrs_block(nir_block *block, void *state)
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* The indices are applied top-to-bottom which has the very nice property
|
||||
* that, if A dominates B, then A->index <= B->index.
|
||||
*/
|
||||
unsigned
|
||||
nir_index_instrs(nir_function_impl *impl)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue