[PATCH] D31878: [Asm] Add debug tracing in table-generated assembly matcher

Oliver Stannard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 10 11:07:40 PDT 2017


olista01 created this revision.
Herald added a subscriber: jyknight.

This adds debug tracing to the table-generated assembly instruction matcher, enabled by the -debug-only=asm-matcher option.

The changes in the target AsmParsers are to add an MCInstrInfo reference under a consistent name, so that we can use it from table-generated code. This was already being used this way for targets that use deprecation warnings, but 5 targets did not have it, and Hexagon had it under a different name to the other backends.


Repository:
  rL LLVM

https://reviews.llvm.org/D31878

Files:
  lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
  lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
  lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp
  lib/Target/Mips/AsmParser/MipsAsmParser.cpp
  lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
  lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
  utils/TableGen/AsmMatcherEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31878.94658.patch
Type: text/x-patch
Size: 20582 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170410/d26ffeea/attachment-0001.bin>


More information about the llvm-commits mailing list