This is an archive of the discontinued LLVM Phabricator instance.

[TableGen] Fix a couple of minor issues regarding the paste operator
ClosedPublic

Authored by Paul-C-Anagnostopoulos on Nov 2 2020, 7:57 AM.

Details

Summary

This patch fixes a couple of minor problems with the paste (#) operator. It adds an assertion about the mode in which the operands are parsed. And it corrects an error message that was worded backward.

Most importantly, this patch updates the Programmer's Reference to fully describe and illustrate the paste operator.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptNov 2 2020, 7:57 AM
Paul-C-Anagnostopoulos requested review of this revision.Nov 2 2020, 7:57 AM
lattner accepted this revision.Nov 2 2020, 8:12 AM

very nice Paul, you're a machine :)

This revision is now accepted and ready to land.Nov 2 2020, 8:12 AM

Semi-retirement affords one the time to work on something fun and educational.

This revision was landed with ongoing or failed builds.Nov 2 2020, 9:22 AM
This revision was automatically updated to reflect the committed changes.
MaskRay added a subscriber: MaskRay.Nov 3 2020, 1:47 PM

Hi Paul, thanks for working on TableGen documentation. You can install sphinx-build, configure llvm-project with -DLLVM_ENABLE_SPHINX=on, and use docs-llvm-html to test whether the documentation builds. I just fixed some problems in d2c45f66204552177b164095501d560cd950a690 There is also a build bot (http://lab.llvm.org:8011/#/builders/30)

MaskRay added inline comments.Nov 3 2020, 1:48 PM
llvm/docs/TableGen/ProgRef.rst
16

I am not an expert of sphinx but I suspect this kind of recursive toctree is not supported.

Thank you for fixing those problems. I do build the documentation files with sphinx, but in a separate tree that doesn't match the actual tree.

Could you explain what I need to do to build the documentation in the real build? I'm not sure what "install sphinx-build" means, nor what "use docs-llvm-html" means. Treat me like a system build newbie.

Never mind, I found docs/REAME.txt. I should have read that weeks ago.

Thanks again for the fix and now I will check all the toctrees.