mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 12:46:08 +00:00

- 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
10 lines
174 B
CMake
10 lines
174 B
CMake
add_benchmark(ClangPseudoBenchmark Benchmark.cpp)
|
|
|
|
target_link_libraries(ClangPseudoBenchmark
|
|
PRIVATE
|
|
clangPseudo
|
|
clangPseudoCLI
|
|
clangPseudoGrammar
|
|
LLVMSupport
|
|
)
|