Skip to content

Commit 71049ed

Browse files
committed
[flang] Use precompiled headers in Evaluate
flang/lib/Evaluate/check-expression.cpp: Elapsed (wall clock) time (h:mm:ss or m:ss): 1:11.91 -> 1:02.29 Maximum resident set size (kbytes): 2710788 -> 2414740 Similar improvements for other compilation units under Evaluate. cmake_pch.hxx.cxx compilation time: Elapsed (wall clock) time (h:mm:ss or m:ss): 0:13.93 Maximum resident set size (kbytes): 1492744 Signed-off-by: Kajetan Puchalski <[email protected]>
1 parent 747ac7c commit 71049ed

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

flang/lib/Evaluate/CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,17 @@ add_flang_library(FortranEvaluate
7373
acc_gen
7474
omp_gen
7575
)
76+
77+
target_precompile_headers(FortranEvaluate PRIVATE
78+
[["flang/Evaluate/common.h"]]
79+
[["flang/Evaluate/call.h"]]
80+
[["flang/Evaluate/traverse.h"]]
81+
[["flang/Evaluate/shape.h"]]
82+
[["flang/Evaluate/characteristics.h"]]
83+
[["flang/Evaluate/variable.h"]]
84+
[["flang/Evaluate/real.h"]]
85+
[["flang/Evaluate/type.h"]]
86+
[["flang/Evaluate/integer.h"]]
87+
[["flang/Evaluate/expression.h"]]
88+
[["flang/Evaluate/tools.h"]]
89+
)

0 commit comments

Comments
 (0)