[PATCH] D124465: [AsmParser] Automatically declare and lex attribute keywords (NFC)

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 26 10:00:16 PDT 2022


nikic created this revision.
nikic added reviewers: aeubanks, nickdesaulniers, serge-sans-paille.
Herald added subscribers: ormris, steven_wu, hiraditya.
Herald added a project: All.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Rather than listing these by hand, include all enum attribute keywords from Attributes.inc. This reduces the number of places one has to update whenever an enum attribute is added.


https://reviews.llvm.org/D124465

Files:
  llvm/include/llvm/AsmParser/LLToken.h
  llvm/lib/AsmParser/LLLexer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124465.425252.patch
Type: text/x-patch
Size: 5098 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220426/75cf54ca/attachment.bin>


More information about the llvm-commits mailing list