|
LLVM 24.0.0git
|
A simple container for information about the supported runtime calls. More...
#include "llvm/IR/RuntimeLibcalls.h"
Static Public Member Functions | |
| static StringRef | getLibcallImplName (RTLIB::LibcallImpl CallImpl) |
| Get the libcall routine name for the specified libcall implementation. | |
| static RTLIB::Libcall | getLibcallFromImpl (RTLIB::LibcallImpl Impl) |
Return the libcall provided by Impl. | |
| static LLVM_ABI RTLIB::Libcall | getLibcallForIntrinsic (Intrinsic::ID ID, FunctionType *FTy) |
Return the runtime libcall that the floating-point math intrinsic ID may be lowered to, or RTLIB::UNKNOWN_LIBCALL if there is no such mapping. | |
| static iota_range< RTLIB::LibcallImpl > | lookupLibcallImplName (StringRef Name) |
| Check if a function name is a recognized runtime call of any kind. | |
| static LLVM_ABI bool | hasVectorMaskArgument (RTLIB::LibcallImpl Impl) |
| Returns true if the function has a vector mask argument, which is assumed to be the last argument. | |
Friends | |
| class | llvm::LibcallLoweringInfo |
A simple container for information about the supported runtime calls.
Definition at line 78 of file RuntimeLibcalls.h.
|
default |
References llvm::Default, llvm::FloatABI::Default, LLVM_ABI, llvm::NoLibrary, and llvm::None.
Referenced by RuntimeLibcallsInfo().
|
explicit |
Definition at line 32 of file RuntimeLibcalls.cpp.
References llvm::CallingConv::AArch64_VectorCall, llvm::AMDLIBM, llvm::ArmPL, llvm::None, setAvailable(), setLibcallImplCallingConv(), and llvm::SLEEFGNUABI.
|
explicit |
Definition at line 109 of file RuntimeLibcalls.cpp.
References RuntimeLibcallsInfo().
| std::pair< FunctionType *, AttributeList > RuntimeLibcallsInfo::getFunctionTy | ( | LLVMContext & | Ctx, |
| const Triple & | TT, | ||
| const DataLayout & | DL, | ||
| RTLIB::LibcallImpl | LibcallImpl ) const |
LibcallImpl, depending on the target TT. If the function has incomplete type information, return nullptr for the function type. Definition at line 159 of file RuntimeLibcalls.cpp.
References llvm::Alloc, llvm::MemoryEffectsBase< IRMemLocation >::argMemOnly(), llvm::MemoryEffectsBase< IRMemLocation >::argumentOrErrnoMemOnly(), llvm::ARM::ARM_ABI_APCS, llvm::ARM::computeTargetABI(), DL, llvm::MemoryEffectsBase< IRMemLocation >::errnoMemOnly(), llvm::fcNegInf, llvm::fcNegNormal, llvm::fcNegSubnormal, llvm::Free, llvm::FixedVectorType::get(), llvm::FunctionType::get(), llvm::PointerType::get(), llvm::StructType::get(), llvm::VectorType::get(), llvm::Type::getDoubleTy(), llvm::Type::getFloatTy(), llvm::Type::getInt1Ty(), getSizeTType(), llvm::Type::getVoidTy(), llvm::Attribute::getWithNoFPClass(), hasVectorMaskArgument(), llvm::Mod, llvm::NoModRef, llvm::CaptureInfo::none(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), and llvm::Uninitialized.
Referenced by llvm::DeclareRuntimeLibcallsPass::run().
|
static |
Return the runtime libcall that the floating-point math intrinsic ID may be lowered to, or RTLIB::UNKNOWN_LIBCALL if there is no such mapping.
FTy must be the intrinsic's call signature.
References LLVM_ABI.
|
inlinestatic |
Return the libcall provided by Impl.
Definition at line 130 of file RuntimeLibcalls.h.
Referenced by llvm::MipsSubtarget::initLibcallLoweringInfo(), and llvm::LibcallLoweringInfo::LibcallLoweringInfo().
|
inline |
Get the CallingConv that should be used for the specified libcall.
Definition at line 125 of file RuntimeLibcalls.h.
References Call.
Referenced by llvm::DeclareRuntimeLibcallsPass::run().
|
inlinestatic |
Get the libcall routine name for the specified libcall implementation.
Definition at line 110 of file RuntimeLibcalls.h.
Referenced by llvm::LegalizerHelper::createAtomicLibcall(), CreateFailBB(), llvm::LegalizerHelper::createLibcall(), llvm::LegalizerHelper::createMemLibcall(), llvm::TargetLoweringBase::getDefaultSafeStackPointerLocation(), llvm::SelectionDAG::getExternalSymbol(), llvm::TargetLoweringBase::getLibcallImplName(), llvm::LibcallLoweringInfo::getLibcallName(), llvm::lto::LTO::getRuntimeLibcallSymbols(), llvm::TargetLoweringBase::getSafeStackPointerLocation(), llvm::SelectionDAG::getTargetExternalSymbol(), lowerObjCCall(), peephole(), and llvm::DeclareRuntimeLibcallsPass::run().
|
inline |
Definition at line 141 of file RuntimeLibcalls.h.
Referenced by llvm::lto::LTO::getRuntimeLibcallSymbols().
|
inline |
Check if this is valid libcall for the current module, otherwise RTLIB::Unsupported.
Definition at line 170 of file RuntimeLibcalls.h.
References isAvailable(), and lookupLibcallImplName().
Referenced by llvm::lto::InputFile::Symbol::isLibcall().
|
static |
Returns true if the function has a vector mask argument, which is assumed to be the last argument.
FIXME: This should be generated by tablegen and support the argument at an arbitrary position
Definition at line 472 of file RuntimeLibcalls.cpp.
Referenced by llvm::TargetLowering::expandMultipleResultFPLibCall(), and getFunctionTy().
| bool RTLIB::RuntimeLibcallsInfo::invalidate | ( | Module & | M, |
| const PreservedAnalyses & | PA, | ||
| ModuleAnalysisManager::Invalidator & | ) |
Definition at line 43 of file RuntimeLibcallInfo.cpp.
References llvm::PreservedAnalyses::getChecker().
|
inline |
Definition at line 145 of file RuntimeLibcalls.h.
Referenced by llvm::lto::LTO::getRuntimeLibcallSymbols(), getSupportedLibcallImpl(), llvm::ARMSubtarget::initLibcallLoweringInfo(), and llvm::DeclareRuntimeLibcallsPass::run().
|
inlinestatic |
Check if a function name is a recognized runtime call of any kind.
This does not consider if this call is available for any current compilation, just that it is a known call somewhere. This returns the set of all LibcallImpls which match the name; multiple implementations with the same name may exist but differ in interpretation based on the target context.
Generated by tablegen.
Definition at line 161 of file RuntimeLibcalls.h.
Referenced by getSupportedLibcallImpl(), and isMips16HardFloatLibcall().
|
inline |
Definition at line 149 of file RuntimeLibcalls.h.
Referenced by RuntimeLibcallsInfo().
|
inline |
Set the CallingConv that should be used for the specified libcall implementation.
Definition at line 120 of file RuntimeLibcalls.h.
References Call.
Referenced by RuntimeLibcallsInfo().
|
friend |
Definition at line 84 of file RuntimeLibcalls.h.