[flang-commits] [flang] [flang] Use precompiled parsing headers (PR #130600)

Kajetan Puchalski via flang-commits flang-commits at lists.llvm.org
Mon Mar 10 07:02:46 PDT 2025


================
@@ -72,3 +72,11 @@ add_flang_library(flangFrontend
   clangBasic
   clangDriver
 )
+
+target_precompile_headers(flangFrontend PRIVATE
+  [["flang/Parser/parsing.h"]]
+  [["flang/Parser/parse-tree.h"]]
+  [["flang/Parser/dump-parse-tree.h"]]
+  [["flang/Lower/PFTBuilder.h"]]
+  [["flang/Lower/Bridge.h"]]
+)
----------------
mrkajetanp wrote:

We could have Parser/, Lower/, Frontend/ etc. each have their own set of precompiled headers. There would be overlap between those for sure (i.e. we'd be precompiling the parse tree for each of them), but it could still improve the overall compile time.

https://github.com/llvm/llvm-project/pull/130600


More information about the flang-commits mailing list