diff options
author | Connor Abbott <[email protected]> | 2015-07-21 19:54:30 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2015-08-24 13:31:42 -0700 |
commit | 6e47a34b29459dcf977a8c1223805cb0a275a8c8 (patch) | |
tree | c220da11d77ca6e05fc64ed01ea17b15b15998a3 /src/glsl/ir_expression_flattening.cpp | |
parent | 6f5c81f86f9b1b08b57435562be657fb2d220408 (diff) |
nir/cf: add a cursor structure
For now, it allows us to refactor the control flow insertion API's so
that there's a single entrypoint (with some wrappers). More importantly,
it will allow us to reduce the combinatorial explosion in the extract
function. There, we need to specify two points to extract, which may be
at the beginning of a block, the end of a block, or in the middle of a
block. And then there are various wrappers based off of that (before a
control flow node, before a control flow list, etc.). Rather than having
9 different functions, we can have one function and push the actual
logic of determining which variant to use down to the split function,
which will be shared with nir_cf_node_insert().
In the future, we may want to make the instruction insertion API's as
well as the builder use this, but that's a future cleanup.
Signed-off-by: Connor Abbott <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/ir_expression_flattening.cpp')
0 files changed, 0 insertions, 0 deletions