HomePhabricator

[Syntax] Add minimal TableGen for syntax nodes. NFC

Authored by sammccall on Oct 31 2020, 1:09 PM.

Description

[Syntax] Add minimal TableGen for syntax nodes. NFC

So far, only used to generate Kind and implement classof().

My plan is to have this general-purpose Nodes.inc in the style of AST
DeclNodes.inc etc, and additionally a special-purpose backend generating
the actual class definitions. But baby steps...

Differential Revision: https://reviews.llvm.org/D90540