Skip to content

Commit e5a34f9

Browse files
authored
[Flang][OpenMP] Push genEval closer to leaf lowering functions (#77760)
This moves the lowering of the nested evaluations all the way to the bottom of the call stack. This PR does not attempt to change the leaf lowering functions beyond placing the call to `genEval` in there. Whether the nested evaluations should be lowered for any given op depends on the context in which that op is created, hence a `genNested` parameter was added. Contexts in which nested evaluations should not be lowered are during lowering of composite constructs, such as PARALLEL SECTIONS. This particular case is considered a block construct tied to the SECTIONS directive, and the lowering code will first create an empty parallel op, and then recursively lower the SECTIONS code. Similar situations occur when lowering most (if not all) compound/composite constructs. Recursive lowering [4/5]
1 parent 0a3a0ea commit e5a34f9

File tree

1 file changed

+134
-98
lines changed

1 file changed

+134
-98
lines changed

0 commit comments

Comments
 (0)