LLVM API Documentation
#include <MBlazeIntrinsicInfo.h>


Public Member Functions | |
| std::string | getName (unsigned IntrID, Type **Tys=0, unsigned numTys=0) const |
| unsigned | lookupName (const char *Name, unsigned Len) const |
| unsigned | lookupGCCName (const char *Name) const |
| bool | isOverloaded (unsigned IID) const |
| Returns true if the intrinsic can be overloaded. | |
| Function * | getDeclaration (Module *M, unsigned ID, Type **Tys=0, unsigned numTys=0) const |
Definition at line 20 of file MBlazeIntrinsicInfo.h.
| Function * MBlazeIntrinsicInfo::getDeclaration | ( | Module * | M, |
| unsigned | ID, | ||
| Type ** | Tys = 0, |
||
| unsigned | numTys = 0 |
||
| ) | const [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 102 of file MBlazeIntrinsicInfo.cpp.
References llvm::Intrinsic::getAttributes(), llvm::Module::getContext(), getName(), llvm::Module::getOrInsertFunction(), getType(), and isOverloaded().
| std::string MBlazeIntrinsicInfo::getName | ( | unsigned | IID, |
| Type ** | Tys = 0, |
||
| unsigned | numTys = 0 |
||
| ) | const [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 41 of file MBlazeIntrinsicInfo.cpp.
References isOverloaded().
Referenced by getDeclaration().
Returns true if the intrinsic can be overloaded.
Implements llvm::TargetIntrinsicInfo.
Definition at line 75 of file MBlazeIntrinsicInfo.cpp.
Referenced by getDeclaration(), and getName().
| unsigned MBlazeIntrinsicInfo::lookupGCCName | ( | const char * | Name | ) | const |
Definition at line 71 of file MBlazeIntrinsicInfo.cpp.
References llvm::Intrinsic::getIntrinsicForGCCBuiltin().
Look up target intrinsic by name. Return intrinsic ID or 0 for unknown names.
Implements llvm::TargetIntrinsicInfo.
Definition at line 60 of file MBlazeIntrinsicInfo.cpp.