[PATCH] D22390: MIRParser: Use dot instead of colon to mark subregisters

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 14 17:11:55 PDT 2016


MatzeB created this revision.
MatzeB added reviewers: qcolombet, arphaman.
MatzeB added a subscriber: llvm-commits.
MatzeB set the repository for this revision to rL LLVM.
Herald added a subscriber: mcrosier.

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 which should not start with a dot.

Repository:
  rL LLVM

https://reviews.llvm.org/D22390

Files:
  lib/CodeGen/MIRParser/MILexer.cpp
  lib/CodeGen/MIRParser/MILexer.h
  lib/CodeGen/MIRParser/MIParser.cpp
  lib/CodeGen/MIRPrinter.cpp
  test/CodeGen/MIR/X86/expected-subregister-after-colon.mir
  test/CodeGen/MIR/X86/subregister-operands.mir
  test/CodeGen/MIR/X86/unknown-subregister-index.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22390.64067.patch
Type: text/x-patch
Size: 4567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160715/5faa0aee/attachment.bin>


More information about the llvm-commits mailing list