[compiler-rt] r299786 - [builtins] Make some ISA macro checks work with MSVC
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 7 10:18:44 PDT 2017
Author: rnk
Date: Fri Apr 7 12:18:43 2017
New Revision: 299786
URL: http://llvm.org/viewvc/llvm-project?rev=299786&view=rev
Log:
[builtins] Make some ISA macro checks work with MSVC
Modified:
compiler-rt/trunk/lib/builtins/clear_cache.c
compiler-rt/trunk/lib/builtins/x86_64/floatdidf.c
compiler-rt/trunk/lib/builtins/x86_64/floatdisf.c
Modified: compiler-rt/trunk/lib/builtins/clear_cache.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/clear_cache.c?rev=299786&r1=299785&r2=299786&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/clear_cache.c (original)
+++ compiler-rt/trunk/lib/builtins/clear_cache.c Fri Apr 7 12:18:43 2017
@@ -90,7 +90,7 @@ uintptr_t GetCurrentProcess(void);
*/
void __clear_cache(void *start, void *end) {
-#if __i386__ || __x86_64__
+#if __i386__ || __x86_64__ || defined(_M_IX86) || defined(_M_X64)
/*
* Intel processors have a unified instruction and data cache
* so there is nothing to do
Modified: compiler-rt/trunk/lib/builtins/x86_64/floatdidf.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/x86_64/floatdidf.c?rev=299786&r1=299785&r2=299786&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/x86_64/floatdidf.c (original)
+++ compiler-rt/trunk/lib/builtins/x86_64/floatdidf.c Fri Apr 7 12:18:43 2017
@@ -4,7 +4,7 @@
/* double __floatdidf(di_int a); */
-#ifdef __x86_64__
+#if defined(__x86_64__) || defined(_M_X64)
#include "../int_lib.h"
Modified: compiler-rt/trunk/lib/builtins/x86_64/floatdisf.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/x86_64/floatdisf.c?rev=299786&r1=299785&r2=299786&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/x86_64/floatdisf.c (original)
+++ compiler-rt/trunk/lib/builtins/x86_64/floatdisf.c Fri Apr 7 12:18:43 2017
@@ -2,7 +2,7 @@
* License. See LICENSE.TXT for details.
*/
-#ifdef __x86_64__
+#if defined(__x86_64__) || defined(_M_X64)
#include "../int_lib.h"
More information about the llvm-commits
mailing list