[PATCH] D22174: Add no-op functions for non-x86 paths.
Alina Sbirlea via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 8 14:47:15 PDT 2016
asbirlea created this revision.
asbirlea added reviewers: llvm-commits, joerg, echristo, mehdi_amini.
Herald added a subscriber: mehdi_amini.
Stub functions for non-x86.
http://reviews.llvm.org/D22174
Files:
lib/builtins/cpu_model.c
Index: lib/builtins/cpu_model.c
===================================================================
--- lib/builtins/cpu_model.c
+++ lib/builtins/cpu_model.c
@@ -265,6 +265,20 @@
#endif
}
+#else
+/// No-op stub functions
+static bool getX86CpuIDAndInfo(unsigned value, unsigned *rEAX, unsigned *rEBX,
+ unsigned *rECX, unsigned *rEDX) {
+ return true;
+}
+static bool getX86CpuIDAndInfoEx(unsigned value, unsigned subleaf,
+ unsigned *rEAX, unsigned *rEBX, unsigned *rECX,
+ unsigned *rEDX) {
+ return true;
+}
+static bool getX86XCR0(unsigned *rEAX, unsigned *rEDX) {
+ return true;
+}
#endif
static void detectX86FamilyModel(unsigned EAX, unsigned *Family,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22174.63322.patch
Type: text/x-patch
Size: 764 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160708/a6900f38/attachment.bin>
More information about the llvm-commits
mailing list