summaryrefslogtreecommitdiff
path: root/utils/llvm-targets
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-07-29 19:34:57 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-07 12:01:46 -0400
commitb2577081528fe36facf5153bed256fe838a74ae6 (patch)
treec0ce42d462656bc3dae6543c5239a8e56a5e2217 /utils/llvm-targets
parent825c108bd26f20accf1eaef2ba652a2ee12924bb (diff)
downloadhaskell-b2577081528fe36facf5153bed256fe838a74ae6.tar.gz
Refactor, document, and optimize LLVM configuration loading
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')
-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=(