summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp
diff options
context:
space:
mode:
authorNicolai Haehnle <nhaehnle@gmail.com>2018-03-05 15:21:04 +0000
committerNicolai Haehnle <nhaehnle@gmail.com>2018-03-05 15:21:04 +0000
commit8ebf7e4dfa222ae04e063f1c1e0bb5c945331ac7 (patch)
treee2e97ea9e1484e355a5569bca9534813c4dee71e /lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp
parent0b0eaf7ee2bc86108ae0628cb4fbdb5e52c25cfb (diff)
downloadbcm5719-llvm-8ebf7e4dfa222ae04e063f1c1e0bb5c945331ac7.tar.gz
bcm5719-llvm-8ebf7e4dfa222ae04e063f1c1e0bb5c945331ac7.zip
TableGen: Reimplement !foreach using the resolving mechanism
Summary: This changes the syntax of !foreach so that the first "parameter" is a new syntactic variable: !foreach(x, lst, expr) will define the variable x within the scope of expr, and evaluation of the !foreach will substitute elements of the given list (or dag) for x in expr. Aside from leading to a nicer syntax, this allows more complex expressions where x is deeply nested, or even constant expressions in which x does not occur at all. !foreach is currently not actually used anywhere in trunk, but I plan to use it in the AMDGPU backend. If out-of-tree targets are using it, they can adjust to the new syntax very easily. Change-Id: Ib966694d8ab6542279d6bc358b6f4d767945a805 Reviewers: arsenm, craig.topper, tra, MartinO Subscribers: wdng, llvm-commits, tpr Differential Revision: https://reviews.llvm.org/D43651 llvm-svn: 326705
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud