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/lib/CodeGen/MIRParser/MILexer.h | |
| parent | 9fab64643dfce6481c5a4897b8b2238cf4e6a7cc (diff) | |
| download | bcm5719-llvm-333e468d15dd0b41de1c1e490693a5fd9d4d62df.tar.gz bcm5719-llvm-333e468d15dd0b41de1c1e490693a5fd9d4d62df.zip | |
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/lib/CodeGen/MIRParser/MILexer.h')
| -rw-r--r-- | llvm/lib/CodeGen/MIRParser/MILexer.h | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/llvm/lib/CodeGen/MIRParser/MILexer.h b/llvm/lib/CodeGen/MIRParser/MILexer.h index ea155c3ae2f..6f90612a640 100644 --- a/llvm/lib/CodeGen/MIRParser/MILexer.h +++ b/llvm/lib/CodeGen/MIRParser/MILexer.h @@ -38,6 +38,7 @@ struct MIToken {      underscore,      colon,      coloncolon, +    dot,      exclaim,      lparen,      rparen, | 

