LLVM 22.0.0git
llvm::RTLIB Namespace Reference

Classes

struct  RuntimeLibcallsInfo
 A simple container for information about the supported runtime calls. More...

Functions

LLVM_ABI Libcall getFPLibCall (EVT VT, Libcall Call_F32, Libcall Call_F64, Libcall Call_F80, Libcall Call_F128, Libcall Call_PPCF128)
 GetFPLibCall - Helper to return the right libcall for the given floating point type, or UNKNOWN_LIBCALL if there is none.
LLVM_ABI Libcall getFPEXT (EVT OpVT, EVT RetVT)
 getFPEXT - Return the FPEXT_*_* value for the given types, or UNKNOWN_LIBCALL if there is none.
LLVM_ABI Libcall getFPROUND (EVT OpVT, EVT RetVT)
 getFPROUND - Return the FPROUND_*_* value for the given types, or UNKNOWN_LIBCALL if there is none.
LLVM_ABI Libcall getFPTOSINT (EVT OpVT, EVT RetVT)
 getFPTOSINT - Return the FPTOSINT_*_* value for the given types, or UNKNOWN_LIBCALL if there is none.
LLVM_ABI Libcall getFPTOUINT (EVT OpVT, EVT RetVT)
 getFPTOUINT - Return the FPTOUINT_*_* value for the given types, or UNKNOWN_LIBCALL if there is none.
LLVM_ABI Libcall getSINTTOFP (EVT OpVT, EVT RetVT)
 getSINTTOFP - Return the SINTTOFP_*_* value for the given types, or UNKNOWN_LIBCALL if there is none.
LLVM_ABI Libcall getUINTTOFP (EVT OpVT, EVT RetVT)
 getUINTTOFP - Return the UINTTOFP_*_* value for the given types, or UNKNOWN_LIBCALL if there is none.
LLVM_ABI Libcall getPOWI (EVT RetVT)
 getPOWI - Return the POWI_* value for the given types, or UNKNOWN_LIBCALL if there is none.
LLVM_ABI Libcall getPOW (EVT RetVT)
 getPOW - Return the POW_* value for the given types, or UNKNOWN_LIBCALL if there is none.
LLVM_ABI Libcall getLDEXP (EVT RetVT)
 getLDEXP - Return the LDEXP_* value for the given types, or UNKNOWN_LIBCALL if there is none.
LLVM_ABI Libcall getFREXP (EVT RetVT)
 getFREXP - Return the FREXP_* value for the given types, or UNKNOWN_LIBCALL if there is none.
LLVM_ABI Libcall getSIN (EVT RetVT)
 Return the SIN_* value for the given types, or UNKNOWN_LIBCALL if there is none.
LLVM_ABI Libcall getCOS (EVT RetVT)
 Return the COS_* value for the given types, or UNKNOWN_LIBCALL if there is none.
LLVM_ABI Libcall getSINCOS (EVT RetVT)
 getSINCOS - Return the SINCOS_* value for the given types, or UNKNOWN_LIBCALL if there is none.
LLVM_ABI Libcall getSINCOSPI (EVT RetVT)
 getSINCOSPI - Return the SINCOSPI_* value for the given types, or UNKNOWN_LIBCALL if there is none.
LLVM_ABI Libcall getMODF (EVT RetVT)
 getMODF - Return the MODF_* value for the given types, or UNKNOWN_LIBCALL if there is none.
LLVM_ABI Libcall getSYNC (unsigned Opc, MVT VT)
 Return the SYNC_FETCH_AND_* value for the given opcode and type, or UNKNOWN_LIBCALL if there is none.
LLVM_ABI Libcall getOutlineAtomicHelper (const Libcall(&LC)[5][4], AtomicOrdering Order, uint64_t MemSize)
 Return the outline atomics value for the given atomic ordering, access size and set of libcalls for a given atomic, or UNKNOWN_LIBCALL if there is none.
LLVM_ABI Libcall getOUTLINE_ATOMIC (unsigned Opc, AtomicOrdering Order, MVT VT)
 Return the outline atomics value for the given opcode, atomic ordering and type, or UNKNOWN_LIBCALL if there is none.
LLVM_ABI Libcall getMEMCPY_ELEMENT_UNORDERED_ATOMIC (uint64_t ElementSize)
 getMEMCPY_ELEMENT_UNORDERED_ATOMIC - Return MEMCPY_ELEMENT_UNORDERED_ATOMIC_* value for the given element size or UNKNOW_LIBCALL if there is none.
LLVM_ABI Libcall getMEMMOVE_ELEMENT_UNORDERED_ATOMIC (uint64_t ElementSize)
 getMEMMOVE_ELEMENT_UNORDERED_ATOMIC - Return MEMMOVE_ELEMENT_UNORDERED_ATOMIC_* value for the given element size or UNKNOW_LIBCALL if there is none.
LLVM_ABI Libcall getMEMSET_ELEMENT_UNORDERED_ATOMIC (uint64_t ElementSize)
 getMEMSET_ELEMENT_UNORDERED_ATOMIC - Return MEMSET_ELEMENT_UNORDERED_ATOMIC_* value for the given element size or UNKNOW_LIBCALL if there is none.
static auto libcalls ()
static auto libcall_impls ()

Function Documentation

◆ getCOS()

RTLIB::Libcall llvm::RTLIB::getCOS ( EVT RetVT)

Return the COS_* value for the given types, or UNKNOWN_LIBCALL if there is none.

Definition at line 417 of file TargetLoweringBase.cpp.

References getFPLibCall().

◆ getFPEXT()

RTLIB::Libcall llvm::RTLIB::getFPEXT ( EVT OpVT,
EVT RetVT )

getFPEXT - Return the FPEXT_*_* value for the given types, or UNKNOWN_LIBCALL if there is none.

Definition at line 120 of file TargetLoweringBase.cpp.

Referenced by getConvRTLibDesc().

◆ getFPLibCall()

LLVM_ABI Libcall llvm::RTLIB::getFPLibCall ( EVT VT,
Libcall Call_F32,
Libcall Call_F64,
Libcall Call_F80,
Libcall Call_F128,
Libcall Call_PPCF128 )

GetFPLibCall - Helper to return the right libcall for the given floating point type, or UNKNOWN_LIBCALL if there is none.

References LLVM_ABI, and Opc.

Referenced by getCOS(), getFREXP(), getLDEXP(), getMODF(), getPOW(), getPOWI(), getSIN(), getSINCOS(), and getSINCOSPI().

◆ getFPROUND()

RTLIB::Libcall llvm::RTLIB::getFPROUND ( EVT OpVT,
EVT RetVT )

getFPROUND - Return the FPROUND_*_* value for the given types, or UNKNOWN_LIBCALL if there is none.

Definition at line 155 of file TargetLoweringBase.cpp.

Referenced by getConvRTLibDesc(), and llvm::RISCVTargetLowering::LowerOperation().

◆ getFPTOSINT()

RTLIB::Libcall llvm::RTLIB::getFPTOSINT ( EVT OpVT,
EVT RetVT )

getFPTOSINT - Return the FPTOSINT_*_* value for the given types, or UNKNOWN_LIBCALL if there is none.

Definition at line 202 of file TargetLoweringBase.cpp.

Referenced by findFPToIntLibcall(), getConvRTLibDesc(), llvm::LoongArchTargetLowering::ReplaceNodeResults(), and llvm::RISCVTargetLowering::ReplaceNodeResults().

◆ getFPTOUINT()

RTLIB::Libcall llvm::RTLIB::getFPTOUINT ( EVT OpVT,
EVT RetVT )

getFPTOUINT - Return the FPTOUINT_*_* value for the given types, or UNKNOWN_LIBCALL if there is none.

Definition at line 251 of file TargetLoweringBase.cpp.

Referenced by findFPToIntLibcall(), getConvRTLibDesc(), and llvm::RISCVTargetLowering::ReplaceNodeResults().

◆ getFREXP()

RTLIB::Libcall llvm::RTLIB::getFREXP ( EVT RetVT)

getFREXP - Return the FREXP_* value for the given types, or UNKNOWN_LIBCALL if there is none.

Definition at line 408 of file TargetLoweringBase.cpp.

References getFPLibCall().

◆ getLDEXP()

RTLIB::Libcall llvm::RTLIB::getLDEXP ( EVT RetVT)

getLDEXP - Return the LDEXP_* value for the given types, or UNKNOWN_LIBCALL if there is none.

Definition at line 403 of file TargetLoweringBase.cpp.

References getFPLibCall().

◆ getMEMCPY_ELEMENT_UNORDERED_ATOMIC()

RTLIB::Libcall llvm::RTLIB::getMEMCPY_ELEMENT_UNORDERED_ATOMIC ( uint64_t ElementSize)

getMEMCPY_ELEMENT_UNORDERED_ATOMIC - Return MEMCPY_ELEMENT_UNORDERED_ATOMIC_* value for the given element size or UNKNOW_LIBCALL if there is none.

Definition at line 561 of file TargetLoweringBase.cpp.

Referenced by llvm::SelectionDAG::getAtomicMemcpy().

◆ getMEMMOVE_ELEMENT_UNORDERED_ATOMIC()

RTLIB::Libcall llvm::RTLIB::getMEMMOVE_ELEMENT_UNORDERED_ATOMIC ( uint64_t ElementSize)

getMEMMOVE_ELEMENT_UNORDERED_ATOMIC - Return MEMMOVE_ELEMENT_UNORDERED_ATOMIC_* value for the given element size or UNKNOW_LIBCALL if there is none.

Definition at line 578 of file TargetLoweringBase.cpp.

Referenced by llvm::SelectionDAG::getAtomicMemmove().

◆ getMEMSET_ELEMENT_UNORDERED_ATOMIC()

RTLIB::Libcall llvm::RTLIB::getMEMSET_ELEMENT_UNORDERED_ATOMIC ( uint64_t ElementSize)

getMEMSET_ELEMENT_UNORDERED_ATOMIC - Return MEMSET_ELEMENT_UNORDERED_ATOMIC_* value for the given element size or UNKNOW_LIBCALL if there is none.

Definition at line 595 of file TargetLoweringBase.cpp.

Referenced by llvm::SelectionDAG::getAtomicMemset().

◆ getMODF()

RTLIB::Libcall llvm::RTLIB::getMODF ( EVT RetVT)

getMODF - Return the MODF_* value for the given types, or UNKNOWN_LIBCALL if there is none.

Definition at line 431 of file TargetLoweringBase.cpp.

References getFPLibCall().

Referenced by llvm::BasicTTIImplBase< BasicTTIImpl >::getIntrinsicInstrCost().

◆ getOUTLINE_ATOMIC()

RTLIB::Libcall llvm::RTLIB::getOUTLINE_ATOMIC ( unsigned Opc,
AtomicOrdering Order,
MVT VT )

Return the outline atomics value for the given opcode, atomic ordering and type, or UNKNOWN_LIBCALL if there is none.

Definition at line 481 of file TargetLoweringBase.cpp.

References getOutlineAtomicHelper(), llvm::MVT::getScalarSizeInBits(), llvm::MVT::isScalarInteger(), LCALL5, and Opc.

◆ getOutlineAtomicHelper()

RTLIB::Libcall llvm::RTLIB::getOutlineAtomicHelper ( const Libcall(&) LC[5][4],
AtomicOrdering Order,
uint64_t MemSize )

Return the outline atomics value for the given atomic ordering, access size and set of libcalls for a given atomic, or UNKNOWN_LIBCALL if there is none.

Definition at line 436 of file TargetLoweringBase.cpp.

References llvm::Acquire, llvm::AcquireRelease, llvm::Monotonic, llvm::Release, and llvm::SequentiallyConsistent.

Referenced by getOUTLINE_ATOMIC().

◆ getPOW()

RTLIB::Libcall llvm::RTLIB::getPOW ( EVT RetVT)

getPOW - Return the POW_* value for the given types, or UNKNOWN_LIBCALL if there is none.

Definition at line 399 of file TargetLoweringBase.cpp.

References getFPLibCall().

◆ getPOWI()

RTLIB::Libcall llvm::RTLIB::getPOWI ( EVT RetVT)

getPOWI - Return the POWI_* value for the given types, or UNKNOWN_LIBCALL if there is none.

Definition at line 394 of file TargetLoweringBase.cpp.

References getFPLibCall().

◆ getSIN()

RTLIB::Libcall llvm::RTLIB::getSIN ( EVT RetVT)

Return the SIN_* value for the given types, or UNKNOWN_LIBCALL if there is none.

Definition at line 413 of file TargetLoweringBase.cpp.

References getFPLibCall().

◆ getSINCOS()

RTLIB::Libcall llvm::RTLIB::getSINCOS ( EVT RetVT)

getSINCOS - Return the SINCOS_* value for the given types, or UNKNOWN_LIBCALL if there is none.

Definition at line 421 of file TargetLoweringBase.cpp.

References getFPLibCall().

Referenced by llvm::BasicTTIImplBase< BasicTTIImpl >::getIntrinsicInstrCost(), and isSinCosLibcallAvailable().

◆ getSINCOSPI()

RTLIB::Libcall llvm::RTLIB::getSINCOSPI ( EVT RetVT)

getSINCOSPI - Return the SINCOSPI_* value for the given types, or UNKNOWN_LIBCALL if there is none.

Definition at line 426 of file TargetLoweringBase.cpp.

References getFPLibCall().

Referenced by llvm::BasicTTIImplBase< BasicTTIImpl >::getIntrinsicInstrCost().

◆ getSINTTOFP()

RTLIB::Libcall llvm::RTLIB::getSINTTOFP ( EVT OpVT,
EVT RetVT )

getSINTTOFP - Return the SINTTOFP_*_* value for the given types, or UNKNOWN_LIBCALL if there is none.

Definition at line 300 of file TargetLoweringBase.cpp.

Referenced by getConvRTLibDesc().

◆ getSYNC()

RTLIB::Libcall llvm::RTLIB::getSYNC ( unsigned Opc,
MVT VT )

Return the SYNC_FETCH_AND_* value for the given opcode and type, or UNKNOWN_LIBCALL if there is none.

Definition at line 523 of file TargetLoweringBase.cpp.

References OP_TO_LIBCALL, and Opc.

◆ getUINTTOFP()

RTLIB::Libcall llvm::RTLIB::getUINTTOFP ( EVT OpVT,
EVT RetVT )

getUINTTOFP - Return the UINTTOFP_*_* value for the given types, or UNKNOWN_LIBCALL if there is none.

Definition at line 348 of file TargetLoweringBase.cpp.

Referenced by getConvRTLibDesc().

◆ libcall_impls()

auto llvm::RTLIB::libcall_impls ( )
inlinestatic

Definition at line 52 of file RuntimeLibcalls.h.

References llvm::enum_seq().

◆ libcalls()

auto llvm::RTLIB::libcalls ( )
inlinestatic

Definition at line 48 of file RuntimeLibcalls.h.

References llvm::enum_seq().