15#define DEBUG_TYPE "runtime-libcalls-info"
20#define GET_INIT_RUNTIME_LIBCALL_NAMES
21#define GET_SET_TARGET_RUNTIME_LIBCALL_SETS
22#define DEFINE_GET_LOOKUP_LIBCALL_IMPL_NAME
23#include "llvm/IR/RuntimeLibcalls.inc"
27void RuntimeLibcallsInfo::initLibcalls(
const Triple &TT,
31 setTargetRuntimeLibcallSets(TT, ExceptionModel,
FloatABI, EABIVersion,
36iota_range<RTLIB::LibcallImpl>
37RuntimeLibcallsInfo::libcallImplNameHit(uint16_t NameOffsetEntry,
40 for (uint16_t Entry :
ArrayRef(RuntimeLibcallNameOffsetTable)
41 .drop_front(NameOffsetEntry + 1)) {
42 if (Entry != StrOffset)
47 RTLIB::LibcallImpl ImplStart =
static_cast<RTLIB::LibcallImpl
>(
48 &RuntimeLibcallNameOffsetTable[NameOffsetEntry] -
49 &RuntimeLibcallNameOffsetTable[0]);
51 static_cast<RTLIB::LibcallImpl
>(ImplStart + NumAliases));
54bool RuntimeLibcallsInfo::isAAPCS_ABI(
const Triple &TT, StringRef ABIName) {
59bool RuntimeLibcallsInfo::darwinHasExp10(
const Triple &TT) {
62 return !
TT.isMacOSXVersionLT(10, 9);
64 return !
TT.isOSVersionLT(7, 0);
#define LLVM_ATTRIBUTE_ALWAYS_INLINE
LLVM_ATTRIBUTE_ALWAYS_INLINE - On compilers where we have a directive to do so, mark a method "always...
StringRef - Represent a constant reference to a string, i.e.
Triple - Helper class for working with autoconf configuration names.
LLVM_ABI LLVM_READONLY ARMABI computeTargetABI(const Triple &TT, StringRef ABIName="")
This is an optimization pass for GlobalISel generic memory operations.
auto enum_seq(EnumT Begin, EnumT End)
Iterate over an enum type from Begin up to - but not including - End.
ArrayRef(const T &OneElt) -> ArrayRef< T >