cornell-zhang/hcl-dialect

[API] Add hcl.return_() operation

Closed this issue · 2 comments

hcl.return() has been added previously in a non-function context, but the implementation is incorrect. Thus, we need to reimplement it after we have hcl.def_() op.

Should also support hcl.return_() in imperative programs, especially for the programs with if-else structure.