0
0
mirror of https://github.com/llvm/llvm-project.git synced 2025-04-27 12:46:08 +00:00
Haojian Wu fe66aebd75 [pseudo] Define a clangPseudoCLI library.
- define a common data structure Language which is a compiled result of the
  bnf grammar. It is defined in Language.h;
- creates a clangPseudoCLI lib which defines a grammar commandline flag and
  expose a function to get the Language. It supports --grammar=cxx,
  --grammmar=/path/to/file.bnf;
- use the clangPseudoCLI in clang-pseudo, fuzzer, and benchmark tools (
  simplify the code and use the prebuilt cxx grammar);

Split out from https://reviews.llvm.org/D127448.

Differential Revision: https://reviews.llvm.org/D128679
2022-07-01 08:31:34 +02:00

10 lines
174 B
CMake

add_benchmark(ClangPseudoBenchmark Benchmark.cpp)
target_link_libraries(ClangPseudoBenchmark
PRIVATE
clangPseudo
clangPseudoCLI
clangPseudoGrammar
LLVMSupport
)