LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::Intrinsic Namespace Reference


Enumerations

enum  ID { not_intrinsic = 0, GET_INTRINSIC_ENUM_VALUES, num_intrinsics }

Functions

std::string getName (ID id, const Type **Tys=0, unsigned numTys=0)
const FunctionTypegetType (ID id, const Type **Tys=0, unsigned numTys=0)
PAListPtr getParamAttrs (ID id)
FunctiongetDeclaration (Module *M, ID id, const Type **Tys=0, unsigned numTys=0)


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

enum ID
 

Enumeration values:
not_intrinsic 
GET_INTRINSIC_ENUM_VALUES 
num_intrinsics 

Definition at line 34 of file Intrinsics.h.


Function Documentation

Function* getDeclaration Module M,
ID  id,
const Type **  Tys = 0,
unsigned  numTys = 0
 

Intrinsic::getDeclaration(M, ID) - Create or insert an LLVM Function declaration for an intrinsic, and return it.

The Tys and numTys parameters are for intrinsics with overloaded types (i.e., 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.

Referenced by FFSOpt::CallOptimizer(), CycleCounter::CycleCounter(), LowerInvoke::doInitialization(), LibCallOptimization::EmitMemCpy(), and llvm::InlineFunction().

std::string getName ID  id,
const Type **  Tys = 0,
unsigned  numTys = 0
 

Intrinsic::getName(ID) - Return the LLVM name for an intrinsic, such as "llvm.ppc.altivec.lvx".

Referenced by llvm::SDNode::getOperationName(), llvm::SourceFileInfo::operator<(), llvm::SourceFileInfo::operator==(), llvm::MachineFunction::viewCFG(), llvm::SelectionDAG::viewGraph(), and StatisticInfo::~StatisticInfo().

PAListPtr getParamAttrs ID  id  ) 
 

Intrinsic::getParamAttrs(ID) - Return the attributes for an intrinsic.

Referenced by llvm::PAListPtr::getParamAlignment(), llvm::PAListPtr::paramHasAttr(), and Verifier::VerifyIntrinsicPrototype().

const FunctionType* getType ID  id,
const Type **  Tys = 0,
unsigned  numTys = 0
 

Intrinsic::getType(ID) - Return the function type for an intrinsic.

Referenced by llvm::PHINode::addIncoming(), BasicAliasAnalysis::alias(), llvm::TargetData::getIndexedOffset(), llvm::InsertValueInst::getType(), llvm::ExtractValueInst::getType(), llvm::ShuffleVectorInst::getType(), llvm::InsertElementInst::getType(), llvm::GetElementPtrInst::getType(), llvm::AllocationInst::getType(), llvm::InlineAsm::getType(), llvm::GlobalValue::getType(), llvm::ConstantPointerNull::getType(), llvm::ConstantVector::getType(), llvm::ConstantStruct::getType(), llvm::ConstantArray::getType(), llvm::ConstantInt::getType(), llvm::ICmpInst::ICmpInst(), llvm::Instruction::isAssociative(), LLVMTypeOf(), PerformHeapAllocSRoA(), llvm::MemIntrinsic::setAlignment(), llvm::MemIntrinsic::setDest(), llvm::MemIntrinsic::setLength(), llvm::MemMoveInst::setSource(), llvm::MemCpyInst::setSource(), and llvm::MemSetInst::setValue().




This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.