summaryrefslogtreecommitdiff
path: root/utils/llvm-targets/gen-data-layout.sh
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-07-29 19:34:57 -0400
committerBen Gamari <ben@smart-cactus.org>2019-10-06 17:38:32 -0400
commit3da872c3d250b47dd4ce00f96bea5936601571fd (patch)
treef5df7cabd02fa688aad6e50bbf7763a151cf0ac9 /utils/llvm-targets/gen-data-layout.sh
parent8039b6257ce5288e9e38c2593ff2d5d6d316efd4 (diff)
downloadhaskell-wip/llvm-config.tar.gz
Refactor, document, and optimize LLVM configuration loadingwip/llvm-config
As described in the new Note [LLVM Configuration] in SysTools, we now load llvm-targets and llvm-passes lazily to avoid the overhead of doing so when -fllvm isn't used (also known as "the common case"). Noticed in #17003. Metric Decrease: T12234 T12150
Diffstat (limited to 'utils/llvm-targets/gen-data-layout.sh')
-rwxr-xr-xutils/llvm-targets/gen-data-layout.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/llvm-targets/gen-data-layout.sh b/utils/llvm-targets/gen-data-layout.sh
index 450d21903c..e55f6eccd9 100755
--- a/utils/llvm-targets/gen-data-layout.sh
+++ b/utils/llvm-targets/gen-data-layout.sh
@@ -15,6 +15,9 @@
#
# Add missing targets to the list below to have them included in
# llvm-targets file.
+#
+# See Note [LLVM Configuration] in SysTools for the whole story regarding LLVM
+# configuration data.
# Target sets for which to generate the llvm-targets file
TARGETS=(