[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.

llvm-svn: 237329
This commit is contained in:
Ahmed Bougacha 2015-05-14 01:47:32 +00:00
parent ff2b29d0ea
commit a5d1a91163
3 changed files with 12 additions and 3 deletions

View 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 \

View 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 \

View 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 \