[compiler-rt] r237329 - [Builtins] Wire half-precision conversions through Darwin makefiles.

Ahmed Bougacha ahmed.bougacha at gmail.com
Wed May 13 18:47:32 PDT 2015


Author: ab
Date: Wed May 13 20:47:32 2015
New Revision: 237329

URL: http://llvm.org/viewvc/llvm-project?rev=237329&view=rev
Log:
[Builtins] Wire half-precision conversions through Darwin makefiles.

Follow-up to r237161, modeled after r236805.

Note that arm64 is omitted on purpose, as the conversions are supported
natively there.

Modified:
    compiler-rt/trunk/make/platform/clang_darwin.mk
    compiler-rt/trunk/make/platform/clang_macho_embedded.mk
    compiler-rt/trunk/make/platform/darwin_bni.mk

Modified: compiler-rt/trunk/make/platform/clang_darwin.mk
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/make/platform/clang_darwin.mk?rev=237329&r1=237328&r2=237329&view=diff
==============================================================================
--- compiler-rt/trunk/make/platform/clang_darwin.mk (original)
+++ compiler-rt/trunk/make/platform/clang_darwin.mk Wed May 13 20:47:32 2015
@@ -263,18 +263,23 @@ ATOMIC_FUNCTIONS := \
 	atomic_signal_fence \
 	atomic_thread_fence
 
+FP16_FUNCTIONS := \
+	extendhfsf2 \
+	truncdfhf2 \
+	truncsfhf2
+
 FUNCTIONS.eprintf := eprintf
 FUNCTIONS.10.4 := eprintf floatundidf floatundisf floatundixf
 
 FUNCTIONS.ios	    := divmodsi4 udivmodsi4 mulosi4 mulodi4 muloti4 \
-                       $(ATOMIC_FUNCTIONS)
+                       $(ATOMIC_FUNCTIONS) $(FP16_FUNCTIONS)
 # On x86, the divmod functions reference divsi.
 FUNCTIONS.ios.i386    := $(FUNCTIONS.ios) \
                          divsi3 udivsi3
 FUNCTIONS.ios.x86_64  := $(FUNCTIONS.ios.i386)
 FUNCTIONS.ios.arm64   := mulsc3 muldc3 divsc3 divdc3 $(ATOMIC_FUNCTIONS)
 
-FUNCTIONS.osx	:= mulosi4 mulodi4 muloti4 $(ATOMIC_FUNCTIONS)
+FUNCTIONS.osx	:= mulosi4 mulodi4 muloti4 $(ATOMIC_FUNCTIONS) $(FP16_FUNCTIONS)
 
 FUNCTIONS.profile_osx := GCDAProfiling InstrProfiling InstrProfilingBuffer \
                          InstrProfilingFile InstrProfilingPlatformDarwin \

Modified: compiler-rt/trunk/make/platform/clang_macho_embedded.mk
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/make/platform/clang_macho_embedded.mk?rev=237329&r1=237328&r2=237329&view=diff
==============================================================================
--- compiler-rt/trunk/make/platform/clang_macho_embedded.mk (original)
+++ compiler-rt/trunk/make/platform/clang_macho_embedded.mk Wed May 13 20:47:32 2015
@@ -156,6 +156,7 @@ COMMON_FUNCTIONS := \
 	divsf3 \
 	divsi3 \
 	extendsfdf2 \
+	extendhfsf2 \
 	ffssi2 \
 	fixdfsi \
 	fixsfsi \
@@ -172,7 +173,9 @@ COMMON_FUNCTIONS := \
 	negsf2 \
 	subdf3 \
 	subsf3 \
+	truncdfhf2 \
 	truncdfsf2 \
+	truncsfhf2 \
 	udivsi3 \
 	umodsi3 \
 	unorddf2 \

Modified: compiler-rt/trunk/make/platform/darwin_bni.mk
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/make/platform/darwin_bni.mk?rev=237329&r1=237328&r2=237329&view=diff
==============================================================================
--- compiler-rt/trunk/make/platform/darwin_bni.mk (original)
+++ compiler-rt/trunk/make/platform/darwin_bni.mk Wed May 13 20:47:32 2015
@@ -50,7 +50,8 @@ FUNCTIONS := absvdi2 absvsi2 addvdi3 add
              udivmoddi4 umoddi3 apple_versioning eprintf atomic \
              atomic_flag_clear atomic_flag_clear_explicit \
              atomic_flag_test_and_set atomic_flag_test_and_set_explicit \
-             atomic_signal_fence atomic_thread_fence
+             atomic_signal_fence atomic_thread_fence \
+             extendhfsf2 truncdfhf2 truncsfhf2 
 
 FUNCTIONS.i386 := $(FUNCTIONS) \
                 divxc3 fixunsxfdi fixunsxfsi fixxfdi floatdixf \





More information about the llvm-commits mailing list