Skip to content

Commit 6076e54

Browse files
committed
Document that these functions are only called once
1 parent 6261017 commit 6076e54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/slang-core-module/slang-embedded-core-module-source.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,9 @@ struct IntrinsicOpInfo
329329
#if SLANG_CLANG
330330
// Clang takes around 10 minutes to compile this file with optimizations, with EarlyCSEPass taking
331331
// ~95% of the execution time. Disabling optimizations here reduces the compilation time to seconds
332-
// and has no noticeable impact on run-time performance.
332+
// and has no noticeable impact on run-time performance. These functions are only called once,
333+
// either at build time by slang-bootstrap, or on the first run of the slang-compiler library,
334+
// depending on the value of the SLANG_EMBED_CORE_MODULE CMake option.
333335
#pragma clang optimize off
334336
#endif
335337

0 commit comments

Comments
 (0)