diff options
author | Matthias Braun <matze@braunis.de> | 2016-07-26 21:49:34 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2016-07-26 21:49:34 +0000 |
commit | 333e468d15dd0b41de1c1e490693a5fd9d4d62df (patch) | |
tree | 5a354127a5a567a7ff5cf898e8d6e7d394c9d9fe /llvm/unittests/MI | |
parent | 9fab64643dfce6481c5a4897b8b2238cf4e6a7cc (diff) | |
download | llvm-333e468d15dd0b41de1c1e490693a5fd9d4d62df.zip llvm-333e468d15dd0b41de1c1e490693a5fd9d4d62df.tar.gz llvm-333e468d15dd0b41de1c1e490693a5fd9d4d62df.tar.bz2 |
MIRParser: Use dot instead of colon to mark subregisters
Change the syntax to use `%0.sub8` to denote a subregister.
This seems like a more natural fit to denote subregisters; I also plan
to introduce a new ":classname" syntax in upcoming patches to denote the
register class of a vreg.
Note that this commit disallows plain identifiers to start with a '.'
character. This shouldn't affect anything as external names/IR
references are all prefixed with '$'/'%', plain identifiers are only
used for instruction names, register mask names and subreg indexes.
Differential Revision: https://reviews.llvm.org/D22390
llvm-svn: 276815
Diffstat (limited to 'llvm/unittests/MI')
-rw-r--r-- | llvm/unittests/MI/LiveIntervalTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/unittests/MI/LiveIntervalTest.cpp b/llvm/unittests/MI/LiveIntervalTest.cpp index 73987d3..12c3ad6 100644 --- a/llvm/unittests/MI/LiveIntervalTest.cpp +++ b/llvm/unittests/MI/LiveIntervalTest.cpp @@ -367,11 +367,11 @@ TEST(LiveIntervalTest, SubRegMoveDown) { " S_BRANCH %bb.1\n" " bb.2:\n" " successors: %bb.1\n" -" S_NOP 0, implicit %0:sub0\n" -" S_NOP 0, implicit %0:sub1\n" +" S_NOP 0, implicit %0.sub0\n" +" S_NOP 0, implicit %0.sub1\n" " S_NOP 0\n" -" undef %0:sub0 = IMPLICIT_DEF\n" -" %0:sub1 = IMPLICIT_DEF\n" +" undef %0.sub0 = IMPLICIT_DEF\n" +" %0.sub1 = IMPLICIT_DEF\n" " bb.1:\n" " S_NOP 0, implicit %0\n", [](MachineFunction &MF, LiveIntervals &LIS) { |