[PATCH] D156429: [TableGen] Add new bang operator !format
Artem Belevich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 7 13:12:53 PDT 2023
tra added a comment.
In D156429#4567049 <https://reviews.llvm.org/D156429#4567049>, @michaelmaitland wrote:
> Here is a proposed use: https://reviews.llvm.org/D156432
I think we're overcomplicating things a bit too much here.
Specifically, this part: ` ``fmt`` can be a code fragment. `. If you want to eval some code, that should probably be done with a lambda in D148915 <https://reviews.llvm.org/D148915>, though I'm not sure if we can define and invoke it like we could in C++ `auto value = [](){ return "foo";} ()`
When functions/lambdas are available, they would provide a better way to implement D156432 <https://reviews.llvm.org/D156432> examples, IMO. I suspect it would obviate the need for `!format`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156429/new/
https://reviews.llvm.org/D156429
More information about the llvm-commits
mailing list