[compiler-rt] [compiler-rt] Add cpu model init for Windows. (PR #111961)
Alexandros Lamprineas via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 14 13:37:10 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 _WIN32
+// Contructor that replaces the ifunc runs currently with prio 10, see
+// the LowerIFuncPass. The resolver of FMV depends on the cpu features so set
+// the priority to 9.
+#define CONSTRUCTOR_PRIOTITY 9
----------------
labrinea wrote:
Spelling, PRIORITY
https://github.com/llvm/llvm-project/pull/111961
More information about the llvm-commits
mailing list