diff options
author | Simon Tatham <simon.tatham@arm.com> | 2020-01-14 12:02:30 +0000 |
---|---|---|
committer | Simon Tatham <simon.tatham@arm.com> | 2020-01-14 12:08:03 +0000 |
commit | 71d5454b377239213874a0d762860e6a3e60bf54 (patch) | |
tree | 997c672d5a8969fe9584d0472a5b2ac5b6ffd3de /lldb/packages/Python/lldbsuite/test/python_api/interpreter/TestRunCommandInterpreterAPI.py | |
parent | 877723b7ce813d25fc4a358b7d2cb90468733a72 (diff) | |
download | bcm5719-llvm-71d5454b377239213874a0d762860e6a3e60bf54.tar.gz bcm5719-llvm-71d5454b377239213874a0d762860e6a3e60bf54.zip |
[ARM,MVE] Use the new Tablegen `defvar` and `if` statements.
Summary:
This cleans up a lot of ugly `foreach` bodges that I've been using to
work around the lack of those two language features. Now they both
exist, I can make then all into something more legible!
In particular, in the common pattern in `ARMInstrMVE.td` where a
multiclass defines an `Instruction` instance plus one or more `Pat` that
select it, I've used a `defvar` to wrap `!cast<Instruction>(NAME)` so
that the patterns themselves become a little more legible.
Replacing a `foreach` with a `defvar` removes a level of block
structure, so several pieces of code have their indentation changed by
this patch. Best viewed with whitespace ignored.
NFC: the output of `llvm-tblgen -print-records` on the two affected
Tablegen sources is exactly identical before and after this change, so
there should be no effect at all on any of the other generated files.
Reviewers: MarkMurrayARM, miyuki
Reviewed By: MarkMurrayARM
Subscribers: kristof.beyls, hiraditya, dmgreen, cfe-commits, llvm-commits
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D72690
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/interpreter/TestRunCommandInterpreterAPI.py')
0 files changed, 0 insertions, 0 deletions