[Builtins] Wire half-precision conversions through Darwin makefiles.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 14 May 2015 01:47:32 +0000 (01:47 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 14 May 2015 01:47:32 +0000 (01:47 +0000)
Follow-up to r237161, modeled after r236805.

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

llvm-svn: 237329

compiler-rt/make/platform/clang_darwin.mk
compiler-rt/make/platform/clang_macho_embedded.mk
compiler-rt/make/platform/darwin_bni.mk

index 9295ede..e66d441 100644 (file)
@@ -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 \
index 77885d5..d7870d4 100644 (file)
@@ -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 \
index b4c57d4..d78f295 100644 (file)
@@ -50,7 +50,8 @@ FUNCTIONS := absvdi2 absvsi2 addvdi3 addvsi3 ashldi3 ashrdi3 \
              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 \