[PATCH] D75837: Introduce std.execute_region op
Nicolas Vasilache via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 9 08:03:24 PDT 2020
nicolasvasilache added a comment.
I'll reformulate based on your description
lambdas with implicit captures (or even explicit when possible) could be lowered to this without first lowering out structured loops/ifs or outlining
Lambdas often allow both captures and arguments.
I can see immediate use cases for this op allowing captures + arguments and see advantages in having one op that does both, as opposed to duplication/splitting into, e.g.:
1. one op "that can only capture",
2. one op "that can only take arguments" and
3. one op "that can do both".
Is there a fundamental reason to disallow arguments in your op?
Assuming there exists such a reason, isn't it trivial to check preconditions such as "empty arguments" in verifiers that need it?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75837/new/
https://reviews.llvm.org/D75837
More information about the llvm-commits
mailing list