[PATCH] D125667: [pseudo] A basic implementation of compiling cxx grammar at build time.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 16 01:02:59 PDT 2022
hokein created this revision.
hokein added a reviewer: sammccall.
Herald added a subscriber: mgorny.
Herald added a project: All.
hokein requested review of this revision.
Herald added a subscriber: alextsao1999.
Herald added a project: clang-tools-extra.
The main idea is to compile the cxx grammar at build time, and construct
the core pieces (Grammar, LRTable) of the pseudoparse based on the compiled
data sources.
This is a tiny implementation, which is good for start:
- defines how the public API should look like;
- integrates the cxx grammar compilation workflow with the cmake system.
- onlynonterminal symbols of the C++ grammar are compiled, anything else are still doing the real compilation work at runtime, we can opt-in more bits in the future;
- splits the monolithic clangPsuedo library for better layering;
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D125667
Files:
clang-tools-extra/pseudo/CMakeLists.txt
clang-tools-extra/pseudo/gen/CMakeLists.txt
clang-tools-extra/pseudo/gen/Main.cpp
clang-tools-extra/pseudo/gen/cxx_gen.cmake
clang-tools-extra/pseudo/include/CMakeLists.txt
clang-tools-extra/pseudo/include/clang-pseudo/cxx/cxx.h
clang-tools-extra/pseudo/lib/CMakeLists.txt
clang-tools-extra/pseudo/lib/cxx/cxx.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125667.429636.patch
Type: text/x-patch
Size: 9567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220516/201aecb0/attachment.bin>
More information about the cfe-commits
mailing list