LLVM API Documentation

Classes | Enumerations | Functions
llvm::Intrinsic Namespace Reference

Classes

struct  IITDescriptor

Enumerations

enum  ID { not_intrinsic = 0 }

Functions

std::string getName (ID id, ArrayRef< Type * > Tys=None)
FunctionTypegetType (LLVMContext &Context, ID id, ArrayRef< Type * > Tys=None)
bool isOverloaded (ID id)
AttributeSet getAttributes (LLVMContext &C, ID id)
FunctiongetDeclaration (Module *M, ID id, ArrayRef< Type * > Tys=None)
ID getIntrinsicForGCCBuiltin (const char *Prefix, const char *BuiltinName)
 Map a GCC builtin name to an intrinsic ID.
ID getIntrinsicForMSBuiltin (const char *Prefix, const char *BuiltinName)
 Map a MS builtin name to an intrinsic ID.
void getIntrinsicInfoTableEntries (ID id, SmallVectorImpl< IITDescriptor > &T)

Detailed Description

Intrinsic Namespace - This namespace contains an enum with a value for every intrinsic/builtin function known by LLVM. These enum values are returned by Function::getIntrinsicID().


Enumeration Type Documentation

Enumerator:
not_intrinsic 

Definition at line 36 of file Intrinsics.h.


Function Documentation

AttributeSet llvm::Intrinsic::getAttributes ( LLVMContext &  C,
ID  id 
)
Function * llvm::Intrinsic::getDeclaration ( Module M,
ID  id,
ArrayRef< Type * >  Tys = None 
)
ID llvm::Intrinsic::getIntrinsicForGCCBuiltin ( const char *  Prefix,
const char *  BuiltinName 
)

Map a GCC builtin name to an intrinsic ID.

Referenced by llvm::AMDGPUIntrinsicInfo::lookupName().

ID llvm::Intrinsic::getIntrinsicForMSBuiltin ( const char *  Prefix,
const char *  BuiltinName 
)

Map a MS builtin name to an intrinsic ID.

void llvm::Intrinsic::getIntrinsicInfoTableEntries ( ID  id,
SmallVectorImpl< IITDescriptor > &  T 
)

getIntrinsicInfoTableEntries - Return the IIT table descriptor for the specified intrinsic into an array of IITDescriptors.

Definition at line 634 of file Function.cpp.

References DecodeIITType(), llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), and llvm::ArrayRef< T >::size().

Referenced by getType().

std::string llvm::Intrinsic::getName ( ID  id,
ArrayRef< Type * >  Tys = None 
)
FunctionType * llvm::Intrinsic::getType ( LLVMContext Context,
ID  id,
ArrayRef< Type * >  Tys = None 
)

Intrinsic::isOverloaded(ID) - Returns true if the intrinsic can be overloaded.

Definition at line 740 of file Function.cpp.