Open paul-tqh-nguyen opened 2 years ago
with irb.for_loop(0, num_nodes) as node_for_vars: node_idx = node_for_vars.iter_var_index
When using node_for_vars.* or node_idx outside of the with block, we should get an exception.
node_for_vars.*
node_idx
with
This checking should happen in the __str__ or assign methods.
__str__
assign
We shouldn't get an exception for node_for_vars.returned_variable.
node_for_vars.returned_variable
This should also apply to any variables initialized within the with body.
We should investigate if this idea might apply to the IR builder's scf.while functionality.
scf.while
When using
node_for_vars.*
ornode_idx
outside of thewith
block, we should get an exception.This checking should happen in the
__str__
orassign
methods.We shouldn't get an exception for
node_for_vars.returned_variable
.This should also apply to any variables initialized within the
with
body.We should investigate if this idea might apply to the IR builder's
scf.while
functionality.