[compiler-rt] [compiler-rt] Add cpu model init for Windows. (PR #111961)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 14 14:00:38 PDT 2024
================
@@ -0,0 +1,99 @@
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#include <processthreadsapi.h>
+#include <stdint.h>
+
+#ifndef PF_ARM_V82_DP_INSTRUCTIONS_AVAILABLE
+#define PF_ARM_V82_DP_INSTRUCTIONS_AVAILABLE -1
----------------
efriedma-quic wrote:
Is there some reason not to just use the actual numbers from the SDK, instead of -1? The new numbers should work even if you're using an old SDK. And then we don't need to worry about accidentally reporting features are missing if someone builds with an old SDK.
https://github.com/llvm/llvm-project/pull/111961
More information about the llvm-commits
mailing list