|
LLVM 24.0.0git
|
#include "llvm/IR/RuntimeLibcalls.h"#include "llvm/ADT/FloatingPointMode.h"#include "llvm/IR/Intrinsics.h"#include "llvm/IR/Module.h"#include "llvm/IR/SystemLibraries.h"#include "llvm/IR/Type.h"#include "llvm/TargetParser/ARMTargetParser.h"#include "llvm/IR/RuntimeLibcalls.inc"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "runtime-libcalls-info" |
| #define | GET_RUNTIME_LIBCALLS_INFO |
| #define | GET_INIT_RUNTIME_LIBCALL_NAMES |
| #define | GET_INIT_RUNTIME_LIBCALL_SIGNATURES |
| #define | GET_RUNTIME_LIBCALL_MASKED_VECTOR_LIBCALL_MAPPING |
| #define | GET_SET_TARGET_RUNTIME_LIBCALL_SETS |
| #define | DEFINE_GET_LOOKUP_LIBCALL_IMPL_NAME |
| #define | GET_RUNTIME_LIBCALL_INTRINSIC_TO_LIBCALL |
Functions | |
| static RuntimeLibrary | getVectorRuntimeLibrary (VectorLibrary VecLib) |
| static bool | shouldExtI32 (const Triple &T) |
| static bool | shouldSignExtI32Param (const Triple &T) |
| static bool | shouldSignExtI32Return (const Triple &T) |
| static bool | shouldZExtBool (const Triple &T) |
| static IntegerType * | getSizeTType (LLVMContext &Ctx, const DataLayout &DL) |
| TODO: There is really no guarantee that sizeof(size_t) is equal to the index size of the default address space. | |
| static unsigned | getLongSize (const Triple &TT, const DataLayout &DL) |
| static Type * | getLongDoubleType (LLVMContext &Ctx, LongDoubleFormat Format) |
| static Type * | convertToIRType (FuncArgTypeID ID, LLVMContext &Ctx, const Triple &TT, const DataLayout &DL, unsigned IntBits, LongDoubleFormat LdblFormat) |
| static std::optional< bool > | isSignedIntArgType (FuncArgTypeID ID) |
| static Attribute::AttrKind | getIntExtAttr (FuncArgTypeID ID, Type *Ty, const Triple &TT, unsigned IntBits, bool IsReturn) |
Variables | |
| static constexpr Attribute::AttrKind | CommonFnAttrs [] |
| #define DEBUG_TYPE "runtime-libcalls-info" |
Definition at line 17 of file RuntimeLibcalls.cpp.
| #define DEFINE_GET_LOOKUP_LIBCALL_IMPL_NAME |
Definition at line 27 of file RuntimeLibcalls.cpp.
| #define GET_INIT_RUNTIME_LIBCALL_NAMES |
Definition at line 23 of file RuntimeLibcalls.cpp.
| #define GET_INIT_RUNTIME_LIBCALL_SIGNATURES |
Definition at line 24 of file RuntimeLibcalls.cpp.
| #define GET_RUNTIME_LIBCALL_INTRINSIC_TO_LIBCALL |
Definition at line 28 of file RuntimeLibcalls.cpp.
| #define GET_RUNTIME_LIBCALL_MASKED_VECTOR_LIBCALL_MAPPING |
Definition at line 25 of file RuntimeLibcalls.cpp.
| #define GET_RUNTIME_LIBCALLS_INFO |
Definition at line 22 of file RuntimeLibcalls.cpp.
| #define GET_SET_TARGET_RUNTIME_LIBCALL_SETS |
Definition at line 26 of file RuntimeLibcalls.cpp.
|
static |
Definition at line 232 of file RuntimeLibcalls.cpp.
References DL, Floating, llvm::FixedVectorType::get(), llvm::IntegerType::get(), llvm::PointerType::get(), llvm::ScalableVectorType::get(), llvm::Type::getDoubleTy(), llvm::Type::getFloatTy(), llvm::Type::getFP128Ty(), llvm::Type::getInt1Ty(), llvm::Type::getInt32Ty(), getLongDoubleType(), getLongSize(), llvm::Type::getPPC_FP128Ty(), getSizeTType(), llvm::Type::getVoidTy(), llvm::Type::getX86_FP80Ty(), Int, V2F32, and V2F64.
Referenced by llvm::RTLIB::RuntimeLibcallsInfo::getDefaultFunctionTy().
|
static |
Definition at line 355 of file RuntimeLibcalls.cpp.
References isSignedIntArgType(), llvm::Attribute::None, shouldExtI32(), shouldSignExtI32Param(), shouldSignExtI32Return(), shouldZExtBool(), and llvm::Signed.
Referenced by llvm::RTLIB::RuntimeLibcallsInfo::getDefaultFunctionTy().
|
static |
Definition at line 215 of file RuntimeLibcalls.cpp.
References llvm::Type::getDoubleTy(), llvm::Type::getFloatTy(), llvm::Type::getFP128Ty(), llvm::Type::getPPC_FP128Ty(), llvm::Type::getX86_FP80Ty(), llvm::IEEEdouble, llvm::IEEEquad, llvm::IEEEsingle, llvm_unreachable, llvm::PPCDoubleDouble, and llvm::X87DoubleExtended.
Referenced by convertToIRType().
|
static |
|
static |
TODO: There is really no guarantee that sizeof(size_t) is equal to the index size of the default address space.
This matches TargetLibraryInfo and should be kept in sync.
Definition at line 200 of file RuntimeLibcalls.cpp.
References DL.
Referenced by convertToIRType(), and llvm::RTLIB::RuntimeLibcallsInfo::getFunctionTy().
|
static |
Definition at line 31 of file RuntimeLibcalls.cpp.
References llvm::Accelerate, llvm::AMDLIBM, llvm::ArmPL, llvm::DarwinLibSystemM, llvm::LIBMVEC, llvm_unreachable, llvm::MASSV, llvm::NoLibrary, llvm::SLEEFGNUABI, and llvm::SVML.
Referenced by llvm::RTLIB::RuntimeLibcallsInfo::RuntimeLibcallsInfo().
|
static |
Definition at line 161 of file RuntimeLibcalls.cpp.
References llvm::Triple::sparcv9, llvm::Triple::systemz, and T.
Referenced by getIntExtAttr(), and llvm::RTLIB::RuntimeLibcallsInfo::initExtensionsForTriple().
Definition at line 168 of file RuntimeLibcalls.cpp.
References T.
Referenced by getIntExtAttr(), and llvm::RTLIB::RuntimeLibcallsInfo::initExtensionsForTriple().
Definition at line 174 of file RuntimeLibcalls.cpp.
References T.
Referenced by getIntExtAttr(), and llvm::RTLIB::RuntimeLibcallsInfo::initExtensionsForTriple().
Definition at line 188 of file RuntimeLibcalls.cpp.
References T.
Referenced by getIntExtAttr(), and llvm::RTLIB::RuntimeLibcallsInfo::initBoolExtensionsForTriple().
|
staticconstexpr |
Definition at line 211 of file RuntimeLibcalls.cpp.
Referenced by llvm::RTLIB::RuntimeLibcallsInfo::getDefaultFunctionTy(), and llvm::RTLIB::RuntimeLibcallsInfo::getFunctionTy().