[PATCH] D31025: [Docs] Add tablegen backend for target opcode documentatio

Oliver Stannard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 9 06:11:41 PST 2017


olista01 updated this revision to Diff 122233.
olista01 added reviewers: rovka, MatzeB.
olista01 added a comment.

Instead of only printing the operands that appear in the assembly string (some of which correspond to more then one MachineOperand), print a flattened list of operands. Kristof's example instruction now generates this documentation:

  VST1d64TPseudoWB\_fixed
  =======================
  
  Flags: ``mayStore``, ``isPredicable``, ``hasExtraSrcRegAllocReq``, ``isCodeGenOnly``
  
  * DEF ``GPR:$wb``
  
  * USE ``addrmode6/GPR:$addr.addr``
  
  * USE ``addrmode6/i32imm:$addr.align``
  
  * USE ``QQPR:$src``
  
  * USE ``pred/i32imm:$p.anon0``
  
  * USE ``pred/i32imm:$p.anon1``
  
  Constraints: ``$addr.addr = $wb``
  
  Predicates: ``HasNEON``


Repository:
  rL LLVM

https://reviews.llvm.org/D31025

Files:
  utils/TableGen/CMakeLists.txt
  utils/TableGen/InstrDocsEmitter.cpp
  utils/TableGen/TableGen.cpp
  utils/TableGen/TableGenBackends.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31025.122233.patch
Type: text/x-patch
Size: 8773 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171109/9c1bd692/attachment.bin>


More information about the llvm-commits mailing list