summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins/int_lib.h
Commit message (Collapse)AuthorAgeFilesLines
* builtins: remove use of __attribute__((pcs("aapcs"))) on WindowsSaleem Abdulrasool2016-04-201-5/+1
| | | | | | | | | Windows does not honour the __attribute__((pcs)) on ARM. Although this will result in ABI mismatches, compiler-rt should largely be unneeded for resolving dependencies as we generate MS ABI compliant library calls now for the most part. llvm-svn: 266891
* fix a gcc warningNico Weber2015-12-221-1/+1
| | | | llvm-svn: 256256
* builtins: __builtin_clzll for x86 on MSVCSaleem Abdulrasool2015-10-151-2/+12
| | | | | | | | | Add an implementation for __builtin_clzll on MSVC even when _BitScanForward4 is unavailable. Patch by Tee Hao Wei! llvm-svn: 250359
* builtins: define and use ALWAYS_INLINESaleem Abdulrasool2015-10-111-0/+2
| | | | | | Abstract out the always inline spelling similar to ASAN. NFC. llvm-svn: 249986
* builtins: silence a MSVC warningSaleem Abdulrasool2015-10-101-0/+2
| | | | | | _BitReverse64 is only available on ARM and x64. Guard it accordingly. llvm-svn: 249949
* builtins: implement instrinics for clSaleem Abdulrasool2015-10-071-0/+28
| | | | | | | | | cl does not support the same intrinsics as clang. Provide implementations for the intrinsics using MSVC builtins. Patch by Tee Hao Wei! llvm-svn: 249515
* builtins: Use MSVC-equivalents of attributesSaleem Abdulrasool2015-10-061-1/+11
| | | | | | | | This allows us to build the builtins using MSVC. NFC. Patch by Tee Hao Wei! llvm-svn: 249375
* builtins: restrict aliasesSaleem Abdulrasool2015-08-211-0/+4
| | | | | | | | MachO and COFF do not support aliases. Restrict the alias to ELF targets. This should also fix the Darwin build. Make the FNALIAS usage an error on non-ELF targets. llvm-svn: 245669
* [compiler-rt] Add libgcc compatibility aliases for __cmp{s,d,f}f2.Josh Gao2015-08-211-0/+3
| | | | | | | | | | Reviewers: compnerd Subscribers: asl, llvm-commits Differential Revision: http://reviews.llvm.org/D12091 llvm-svn: 245663
* builtins: mark functions as aapcs on WindowsSaleem Abdulrasool2015-05-221-1/+5
| | | | | | | | Windows does not use AAPCS, but rather AAPCS-VFP, and thus the functions which are assumed to be AAPCS will cause invalid argument setup. Ensure that the functions are marked as AAPCS. llvm-svn: 238056
* builtins: remove unnecessary COMPILER_RT_EXPORTSaleem Abdulrasool2014-09-061-8/+2
| | | | | | | This macro did not do anything at this point, and is not particularly needed for Windows unless building the builtins as a shared library. NFC. llvm-svn: 217321
* builtins: add missing fileSaleem Abdulrasool2014-05-121-2/+8
| | | | | | | | Add (missing) definition of COMPILER_RT_EXPORT which is meant to be used for decorating functions that are meant to be exported. This is useful for platforms where exports and imports must be decorated explicitly (i.e. Windows). llvm-svn: 208593
* Move __clzti2 into 128bit fragment.Joerg Sonnenberger2014-03-011-2/+1
| | | | llvm-svn: 202593
* Consistently use COMPILER_RT_ABI for all public symbols.Joerg Sonnenberger2014-03-011-0/+15
| | | | | | Move prototypes into headers and fix a few inconsistencies. llvm-svn: 202591
* Move original compiler-rt functions (libgcc replacement) to lib/builtins ↵Alexey Samsonov2014-02-141-0/+56
directory llvm-svn: 201393
OpenPOWER on IntegriCloud