LLVM API Documentation
#include <AMDGPUIntrinsicInfo.h>
Public Member Functions | |
AMDGPUIntrinsicInfo () | |
std::string | getName (unsigned IntrId, Type **Tys=nullptr, unsigned numTys=0) const override |
unsigned | lookupName (const char *Name, unsigned Len) const override |
bool | isOverloaded (unsigned IID) const override |
Returns true if the intrinsic can be overloaded. | |
Function * | getDeclaration (Module *M, unsigned ID, Type **Tys=nullptr, unsigned numTys=0) const override |
Definition at line 34 of file AMDGPUIntrinsicInfo.h.
Definition at line 27 of file AMDGPUIntrinsicInfo.cpp.
Function * AMDGPUIntrinsicInfo::getDeclaration | ( | Module * | M, |
unsigned | ID, | ||
Type ** | Tys = nullptr , |
||
unsigned | numTys = 0 |
||
) | const [override, virtual] |
Create or insert an LLVM Function declaration for an intrinsic, and return it. The Tys and numTys are for intrinsics with overloaded types. See above for more information.
Implements llvm::TargetIntrinsicInfo.
Definition at line 73 of file AMDGPUIntrinsicInfo.cpp.
References llvm_unreachable.
std::string AMDGPUIntrinsicInfo::getName | ( | unsigned | IID, |
Type ** | Tys = nullptr , |
||
unsigned | numTys = 0 |
||
) | const [override, virtual] |
Return the name of a target intrinsic, e.g. "llvm.bfin.ssync". The Tys and numTys parameters are for intrinsics with overloaded types (e.g., those using iAny or fAny). For a declaration for an overloaded intrinsic, Tys should point to an array of numTys pointers to Type, and must provide exactly one type for each overloaded type in the intrinsic.
Implements llvm::TargetIntrinsicInfo.
Definition at line 30 of file AMDGPUIntrinsicInfo.cpp.
bool AMDGPUIntrinsicInfo::isOverloaded | ( | unsigned | IID | ) | const [override, virtual] |
Returns true if the intrinsic can be overloaded.
Implements llvm::TargetIntrinsicInfo.
Definition at line 66 of file AMDGPUIntrinsicInfo.cpp.
unsigned AMDGPUIntrinsicInfo::lookupName | ( | const char * | Name, |
unsigned | Len | ||
) | const [override, virtual] |
Look up target intrinsic by name. Return intrinsic ID or 0 for unknown names.
Implements llvm::TargetIntrinsicInfo.
Definition at line 48 of file AMDGPUIntrinsicInfo.cpp.
References llvm::Intrinsic::getIntrinsicForGCCBuiltin(), and llvm::Intrinsic::not_intrinsic.