[compiler-rt] [compiler-rt] Add cpu model init for Windows. (PR #111961)
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 11 00:56:02 PDT 2024
================
@@ -31,7 +31,15 @@
// We're choosing init priority 90 to force our constructors to run before any
// constructors in the end user application (starting at priority 101). This
// value matches the libgcc choice for the same functions.
-#define CONSTRUCTOR_ATTRIBUTE __attribute__((constructor(90)))
+#ifdef _WIN64
+// Contructor that replaces the ifunc runs currently with prio 10, see
+// the LowerIFuncPass. The resolver of FMV depends on the cpu features so set
----------------
mstorsjo wrote:
I wondered what this was about, if it was some feature in the compiler I was unaware of - but then I saw the other PR filed at the same time :-)
https://github.com/llvm/llvm-project/pull/111961
More information about the llvm-commits
mailing list