LLVM API Documentation

Core.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LLVM_FOR_EACH_VALUE_SUBCLASS(macro)
#define LLVM_DECLARE_VALUE_CAST(name)   LLVMValueRef LLVMIsA##name(LLVMValueRef Val);

Typedefs

typedef struct LLVMOpaqueModule * LLVMModuleRef
typedef struct LLVMOpaqueType * LLVMTypeRef
typedef struct
LLVMOpaqueTypeHandle * 
LLVMTypeHandleRef
typedef struct LLVMOpaqueValue * LLVMValueRef
typedef struct
LLVMOpaqueBasicBlock * 
LLVMBasicBlockRef
typedef struct LLVMOpaqueBuilder * LLVMBuilderRef
typedef struct
LLVMOpaqueModuleProvider * 
LLVMModuleProviderRef
typedef struct
LLVMOpaqueMemoryBuffer * 
LLVMMemoryBufferRef
typedef struct
LLVMOpaquePassManager * 
LLVMPassManagerRef

Enumerations

enum  LLVMAttribute {
  LLVMZExtAttribute = 1<<0, LLVMSExtAttribute = 1<<1, LLVMNoReturnAttribute = 1<<2, LLVMInRegAttribute = 1<<3,
  LLVMStructRetAttribute = 1<<4, LLVMNoUnwindAttribute = 1<<5, LLVMNoAliasAttribute = 1<<6, LLVMByValAttribute = 1<<7,
  LLVMNestAttribute = 1<<8, LLVMReadNoneAttribute = 1<<9, LLVMReadOnlyAttribute = 1<<10
}
enum  LLVMTypeKind {
  LLVMVoidTypeKind, LLVMFloatTypeKind, LLVMDoubleTypeKind, LLVMX86_FP80TypeKind,
  LLVMFP128TypeKind, LLVMPPC_FP128TypeKind, LLVMLabelTypeKind, LLVMIntegerTypeKind,
  LLVMFunctionTypeKind, LLVMStructTypeKind, LLVMArrayTypeKind, LLVMPointerTypeKind,
  LLVMOpaqueTypeKind, LLVMVectorTypeKind
}
enum  LLVMLinkage {
  LLVMExternalLinkage, LLVMLinkOnceLinkage, LLVMWeakLinkage, LLVMAppendingLinkage,
  LLVMInternalLinkage, LLVMDLLImportLinkage, LLVMDLLExportLinkage, LLVMExternalWeakLinkage,
  LLVMGhostLinkage
}
enum  LLVMVisibility { LLVMDefaultVisibility, LLVMHiddenVisibility, LLVMProtectedVisibility }
enum  LLVMCallConv {
  LLVMCCallConv = 0, LLVMFastCallConv = 8, LLVMColdCallConv = 9, LLVMX86StdcallCallConv = 64,
  LLVMX86FastcallCallConv = 65
}
enum  LLVMIntPredicate {
  LLVMIntEQ = 32, LLVMIntNE, LLVMIntUGT, LLVMIntUGE,
  LLVMIntULT, LLVMIntULE, LLVMIntSGT, LLVMIntSGE,
  LLVMIntSLT, LLVMIntSLE
}
enum  LLVMRealPredicate {
  LLVMRealPredicateFalse, LLVMRealOEQ, LLVMRealOGT, LLVMRealOGE,
  LLVMRealOLT, LLVMRealOLE, LLVMRealONE, LLVMRealORD,
  LLVMRealUNO, LLVMRealUEQ, LLVMRealUGT, LLVMRealUGE,
  LLVMRealULT, LLVMRealULE, LLVMRealUNE, LLVMRealPredicateTrue
}

Functions

void LLVMDisposeMessage (char *Message)
LLVMModuleRef LLVMModuleCreateWithName (const char *ModuleID)
void LLVMDisposeModule (LLVMModuleRef M)
const char * LLVMGetDataLayout (LLVMModuleRef M)
void LLVMSetDataLayout (LLVMModuleRef M, const char *Triple)
const char * LLVMGetTarget (LLVMModuleRef M)
void LLVMSetTarget (LLVMModuleRef M, const char *Triple)
int LLVMAddTypeName (LLVMModuleRef M, const char *Name, LLVMTypeRef Ty)
void LLVMDeleteTypeName (LLVMModuleRef M, const char *Name)
void LLVMDumpModule (LLVMModuleRef M)
LLVMTypeKind LLVMGetTypeKind (LLVMTypeRef Ty)
LLVMTypeRef LLVMInt1Type (void)
LLVMTypeRef LLVMInt8Type (void)
LLVMTypeRef LLVMInt16Type (void)
LLVMTypeRef LLVMInt32Type (void)
LLVMTypeRef LLVMInt64Type (void)
LLVMTypeRef LLVMIntType (unsigned NumBits)
unsigned LLVMGetIntTypeWidth (LLVMTypeRef IntegerTy)
LLVMTypeRef LLVMFloatType (void)
LLVMTypeRef LLVMDoubleType (void)
LLVMTypeRef LLVMX86FP80Type (void)
LLVMTypeRef LLVMFP128Type (void)
LLVMTypeRef LLVMPPCFP128Type (void)
LLVMTypeRef LLVMFunctionType (LLVMTypeRef ReturnType, LLVMTypeRef *ParamTypes, unsigned ParamCount, int IsVarArg)
int LLVMIsFunctionVarArg (LLVMTypeRef FunctionTy)
LLVMTypeRef LLVMGetReturnType (LLVMTypeRef FunctionTy)
unsigned LLVMCountParamTypes (LLVMTypeRef FunctionTy)
void LLVMGetParamTypes (LLVMTypeRef FunctionTy, LLVMTypeRef *Dest)
LLVMTypeRef LLVMStructType (LLVMTypeRef *ElementTypes, unsigned ElementCount, int Packed)
unsigned LLVMCountStructElementTypes (LLVMTypeRef StructTy)
void LLVMGetStructElementTypes (LLVMTypeRef StructTy, LLVMTypeRef *Dest)
int LLVMIsPackedStruct (LLVMTypeRef StructTy)
LLVMTypeRef LLVMArrayType (LLVMTypeRef ElementType, unsigned ElementCount)
LLVMTypeRef LLVMPointerType (LLVMTypeRef ElementType, unsigned AddressSpace)
LLVMTypeRef LLVMVectorType (LLVMTypeRef ElementType, unsigned ElementCount)
LLVMTypeRef LLVMGetElementType (LLVMTypeRef Ty)
unsigned LLVMGetArrayLength (LLVMTypeRef ArrayTy)
unsigned LLVMGetPointerAddressSpace (LLVMTypeRef PointerTy)
unsigned LLVMGetVectorSize (LLVMTypeRef VectorTy)
LLVMTypeRef LLVMVoidType (void)
LLVMTypeRef LLVMLabelType (void)
LLVMTypeRef LLVMOpaqueType (void)
LLVMTypeHandleRef LLVMCreateTypeHandle (LLVMTypeRef PotentiallyAbstractTy)
void LLVMRefineType (LLVMTypeRef AbstractTy, LLVMTypeRef ConcreteTy)
LLVMTypeRef LLVMResolveTypeHandle (LLVMTypeHandleRef TypeHandle)
void LLVMDisposeTypeHandle (LLVMTypeHandleRef TypeHandle)
LLVMTypeRef LLVMTypeOf (LLVMValueRef Val)
const char * LLVMGetValueName (LLVMValueRef Val)
void LLVMSetValueName (LLVMValueRef Val, const char *Name)
void LLVMDumpValue (LLVMValueRef Val)
LLVMValueRef LLVMConstNull (LLVMTypeRef Ty)
LLVMValueRef LLVMConstAllOnes (LLVMTypeRef Ty)
LLVMValueRef LLVMGetUndef (LLVMTypeRef Ty)
int LLVMIsConstant (LLVMValueRef Val)
int LLVMIsNull (LLVMValueRef Val)
int LLVMIsUndef (LLVMValueRef Val)
LLVMValueRef LLVMConstInt (LLVMTypeRef IntTy, unsigned long long N, int SignExtend)
LLVMValueRef LLVMConstReal (LLVMTypeRef RealTy, double N)
LLVMValueRef LLVMConstRealOfString (LLVMTypeRef RealTy, const char *Text)
LLVMValueRef LLVMConstString (const char *Str, unsigned Length, int DontNullTerminate)
LLVMValueRef LLVMConstArray (LLVMTypeRef ElementTy, LLVMValueRef *ConstantVals, unsigned Length)
LLVMValueRef LLVMConstStruct (LLVMValueRef *ConstantVals, unsigned Count, int packed)
LLVMValueRef LLVMConstVector (LLVMValueRef *ScalarConstantVals, unsigned Size)
LLVMValueRef LLVMSizeOf (LLVMTypeRef Ty)
LLVMValueRef LLVMConstNeg (LLVMValueRef ConstantVal)
LLVMValueRef LLVMConstNot (LLVMValueRef ConstantVal)
LLVMValueRef LLVMConstAdd (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstSub (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstMul (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstUDiv (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstSDiv (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstFDiv (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstURem (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstSRem (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstFRem (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstAnd (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstOr (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstXor (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstICmp (LLVMIntPredicate Predicate, LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstFCmp (LLVMRealPredicate Predicate, LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstShl (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstLShr (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstAShr (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstGEP (LLVMValueRef ConstantVal, LLVMValueRef *ConstantIndices, unsigned NumIndices)
LLVMValueRef LLVMConstTrunc (LLVMValueRef ConstantVal, LLVMTypeRef ToType)
LLVMValueRef LLVMConstSExt (LLVMValueRef ConstantVal, LLVMTypeRef ToType)
LLVMValueRef LLVMConstZExt (LLVMValueRef ConstantVal, LLVMTypeRef ToType)
LLVMValueRef LLVMConstFPTrunc (LLVMValueRef ConstantVal, LLVMTypeRef ToType)
LLVMValueRef LLVMConstFPExt (LLVMValueRef ConstantVal, LLVMTypeRef ToType)
LLVMValueRef LLVMConstUIToFP (LLVMValueRef ConstantVal, LLVMTypeRef ToType)
LLVMValueRef LLVMConstSIToFP (LLVMValueRef ConstantVal, LLVMTypeRef ToType)
LLVMValueRef LLVMConstFPToUI (LLVMValueRef ConstantVal, LLVMTypeRef ToType)
LLVMValueRef LLVMConstFPToSI (LLVMValueRef ConstantVal, LLVMTypeRef ToType)
LLVMValueRef LLVMConstPtrToInt (LLVMValueRef ConstantVal, LLVMTypeRef ToType)
LLVMValueRef LLVMConstIntToPtr (LLVMValueRef ConstantVal, LLVMTypeRef ToType)
LLVMValueRef LLVMConstBitCast (LLVMValueRef ConstantVal, LLVMTypeRef ToType)
LLVMValueRef LLVMConstSelect (LLVMValueRef ConstantCondition, LLVMValueRef ConstantIfTrue, LLVMValueRef ConstantIfFalse)
LLVMValueRef LLVMConstExtractElement (LLVMValueRef VectorConstant, LLVMValueRef IndexConstant)
LLVMValueRef LLVMConstInsertElement (LLVMValueRef VectorConstant, LLVMValueRef ElementValueConstant, LLVMValueRef IndexConstant)
LLVMValueRef LLVMConstShuffleVector (LLVMValueRef VectorAConstant, LLVMValueRef VectorBConstant, LLVMValueRef MaskConstant)
LLVMValueRef LLVMConstExtractValue (LLVMValueRef AggConstant, unsigned *IdxList, unsigned NumIdx)
LLVMValueRef LLVMConstInsertValue (LLVMValueRef AggConstant, LLVMValueRef ElementValueConstant, unsigned *IdxList, unsigned NumIdx)
LLVMValueRef LLVMConstInlineAsm (LLVMTypeRef Ty, const char *AsmString, const char *Constraints, int HasSideEffects)
LLVMModuleRef LLVMGetGlobalParent (LLVMValueRef Global)
int LLVMIsDeclaration (LLVMValueRef Global)
LLVMLinkage LLVMGetLinkage (LLVMValueRef Global)
void LLVMSetLinkage (LLVMValueRef Global, LLVMLinkage Linkage)
const char * LLVMGetSection (LLVMValueRef Global)
void LLVMSetSection (LLVMValueRef Global, const char *Section)
LLVMVisibility LLVMGetVisibility (LLVMValueRef Global)
void LLVMSetVisibility (LLVMValueRef Global, LLVMVisibility Viz)
unsigned LLVMGetAlignment (LLVMValueRef Global)
void LLVMSetAlignment (LLVMValueRef Global, unsigned Bytes)
LLVMValueRef LLVMAddGlobal (LLVMModuleRef M, LLVMTypeRef Ty, const char *Name)
LLVMValueRef LLVMGetNamedGlobal (LLVMModuleRef M, const char *Name)
LLVMValueRef LLVMGetFirstGlobal (LLVMModuleRef M)
LLVMValueRef LLVMGetLastGlobal (LLVMModuleRef M)
LLVMValueRef LLVMGetNextGlobal (LLVMValueRef GlobalVar)
LLVMValueRef LLVMGetPreviousGlobal (LLVMValueRef GlobalVar)
void LLVMDeleteGlobal (LLVMValueRef GlobalVar)
LLVMValueRef LLVMGetInitializer (LLVMValueRef GlobalVar)
void LLVMSetInitializer (LLVMValueRef GlobalVar, LLVMValueRef ConstantVal)
int LLVMIsThreadLocal (LLVMValueRef GlobalVar)
void LLVMSetThreadLocal (LLVMValueRef GlobalVar, int IsThreadLocal)
int LLVMIsGlobalConstant (LLVMValueRef GlobalVar)
void LLVMSetGlobalConstant (LLVMValueRef GlobalVar, int IsConstant)
LLVMValueRef LLVMAddAlias (LLVMModuleRef M, LLVMTypeRef Ty, LLVMValueRef Aliasee, const char *Name)
LLVMValueRef LLVMAddFunction (LLVMModuleRef M, const char *Name, LLVMTypeRef FunctionTy)
LLVMValueRef LLVMGetNamedFunction (LLVMModuleRef M, const char *Name)
LLVMValueRef LLVMGetFirstFunction (LLVMModuleRef M)
LLVMValueRef LLVMGetLastFunction (LLVMModuleRef M)
LLVMValueRef LLVMGetNextFunction (LLVMValueRef Fn)
LLVMValueRef LLVMGetPreviousFunction (LLVMValueRef Fn)
void LLVMDeleteFunction (LLVMValueRef Fn)
unsigned LLVMGetIntrinsicID (LLVMValueRef Fn)
unsigned LLVMGetFunctionCallConv (LLVMValueRef Fn)
void LLVMSetFunctionCallConv (LLVMValueRef Fn, unsigned CC)
const char * LLVMGetGC (LLVMValueRef Fn)
void LLVMSetGC (LLVMValueRef Fn, const char *Name)
unsigned LLVMCountParams (LLVMValueRef Fn)
void LLVMGetParams (LLVMValueRef Fn, LLVMValueRef *Params)
LLVMValueRef LLVMGetParam (LLVMValueRef Fn, unsigned Index)
LLVMValueRef LLVMGetParamParent (LLVMValueRef Inst)
LLVMValueRef LLVMGetFirstParam (LLVMValueRef Fn)
LLVMValueRef LLVMGetLastParam (LLVMValueRef Fn)
LLVMValueRef LLVMGetNextParam (LLVMValueRef Arg)
LLVMValueRef LLVMGetPreviousParam (LLVMValueRef Arg)
void LLVMAddAttribute (LLVMValueRef Arg, LLVMAttribute PA)
void LLVMRemoveAttribute (LLVMValueRef Arg, LLVMAttribute PA)
void LLVMSetParamAlignment (LLVMValueRef Arg, unsigned align)
LLVMValueRef LLVMBasicBlockAsValue (LLVMBasicBlockRef BB)
int LLVMValueIsBasicBlock (LLVMValueRef Val)
LLVMBasicBlockRef LLVMValueAsBasicBlock (LLVMValueRef Val)
LLVMValueRef LLVMGetBasicBlockParent (LLVMBasicBlockRef BB)
unsigned LLVMCountBasicBlocks (LLVMValueRef Fn)
void LLVMGetBasicBlocks (LLVMValueRef Fn, LLVMBasicBlockRef *BasicBlocks)
LLVMBasicBlockRef LLVMGetFirstBasicBlock (LLVMValueRef Fn)
LLVMBasicBlockRef LLVMGetLastBasicBlock (LLVMValueRef Fn)
LLVMBasicBlockRef LLVMGetNextBasicBlock (LLVMBasicBlockRef BB)
LLVMBasicBlockRef LLVMGetPreviousBasicBlock (LLVMBasicBlockRef BB)
LLVMBasicBlockRef LLVMGetEntryBasicBlock (LLVMValueRef Fn)
LLVMBasicBlockRef LLVMAppendBasicBlock (LLVMValueRef Fn, const char *Name)
LLVMBasicBlockRef LLVMInsertBasicBlock (LLVMBasicBlockRef InsertBeforeBB, const char *Name)
void LLVMDeleteBasicBlock (LLVMBasicBlockRef BB)
LLVMBasicBlockRef LLVMGetInstructionParent (LLVMValueRef Inst)
LLVMValueRef LLVMGetFirstInstruction (LLVMBasicBlockRef BB)
LLVMValueRef LLVMGetLastInstruction (LLVMBasicBlockRef BB)
LLVMValueRef LLVMGetNextInstruction (LLVMValueRef Inst)
LLVMValueRef LLVMGetPreviousInstruction (LLVMValueRef Inst)
void LLVMSetInstructionCallConv (LLVMValueRef Instr, unsigned CC)
unsigned LLVMGetInstructionCallConv (LLVMValueRef Instr)
void LLVMAddInstrAttribute (LLVMValueRef Instr, unsigned index, LLVMAttribute)
void LLVMRemoveInstrAttribute (LLVMValueRef Instr, unsigned index, LLVMAttribute)
void LLVMSetInstrParamAlignment (LLVMValueRef Instr, unsigned index, unsigned align)
int LLVMIsTailCall (LLVMValueRef CallInst)
void LLVMSetTailCall (LLVMValueRef CallInst, int IsTailCall)
void LLVMAddIncoming (LLVMValueRef PhiNode, LLVMValueRef *IncomingValues, LLVMBasicBlockRef *IncomingBlocks, unsigned Count)
unsigned LLVMCountIncoming (LLVMValueRef PhiNode)
LLVMValueRef LLVMGetIncomingValue (LLVMValueRef PhiNode, unsigned Index)
LLVMBasicBlockRef LLVMGetIncomingBlock (LLVMValueRef PhiNode, unsigned Index)
LLVMBuilderRef LLVMCreateBuilder (void)
void LLVMPositionBuilder (LLVMBuilderRef Builder, LLVMBasicBlockRef Block, LLVMValueRef Instr)
void LLVMPositionBuilderBefore (LLVMBuilderRef Builder, LLVMValueRef Instr)
void LLVMPositionBuilderAtEnd (LLVMBuilderRef Builder, LLVMBasicBlockRef Block)
LLVMBasicBlockRef LLVMGetInsertBlock (LLVMBuilderRef Builder)
void LLVMClearInsertionPosition (LLVMBuilderRef Builder)
void LLVMInsertIntoBuilder (LLVMBuilderRef Builder, LLVMValueRef Instr)
void LLVMDisposeBuilder (LLVMBuilderRef Builder)
LLVMValueRef LLVMBuildRetVoid (LLVMBuilderRef)
LLVMValueRef LLVMBuildRet (LLVMBuilderRef, LLVMValueRef V)
LLVMValueRef LLVMBuildBr (LLVMBuilderRef, LLVMBasicBlockRef Dest)
LLVMValueRef LLVMBuildCondBr (LLVMBuilderRef, LLVMValueRef If, LLVMBasicBlockRef Then, LLVMBasicBlockRef Else)
LLVMValueRef LLVMBuildSwitch (LLVMBuilderRef, LLVMValueRef V, LLVMBasicBlockRef Else, unsigned NumCases)
LLVMValueRef LLVMBuildInvoke (LLVMBuilderRef, LLVMValueRef Fn, LLVMValueRef *Args, unsigned NumArgs, LLVMBasicBlockRef Then, LLVMBasicBlockRef Catch, const char *Name)
LLVMValueRef LLVMBuildUnwind (LLVMBuilderRef)
LLVMValueRef LLVMBuildUnreachable (LLVMBuilderRef)
void LLVMAddCase (LLVMValueRef Switch, LLVMValueRef OnVal, LLVMBasicBlockRef Dest)
LLVMValueRef LLVMBuildAdd (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
LLVMValueRef LLVMBuildSub (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
LLVMValueRef LLVMBuildMul (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
LLVMValueRef LLVMBuildUDiv (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
LLVMValueRef LLVMBuildSDiv (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
LLVMValueRef LLVMBuildFDiv (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
LLVMValueRef LLVMBuildURem (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
LLVMValueRef LLVMBuildSRem (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
LLVMValueRef LLVMBuildFRem (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
LLVMValueRef LLVMBuildShl (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
LLVMValueRef LLVMBuildLShr (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
LLVMValueRef LLVMBuildAShr (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
LLVMValueRef LLVMBuildAnd (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
LLVMValueRef LLVMBuildOr (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
LLVMValueRef LLVMBuildXor (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
LLVMValueRef LLVMBuildNeg (LLVMBuilderRef, LLVMValueRef V, const char *Name)
LLVMValueRef LLVMBuildNot (LLVMBuilderRef, LLVMValueRef V, const char *Name)
LLVMValueRef LLVMBuildMalloc (LLVMBuilderRef, LLVMTypeRef Ty, const char *Name)
LLVMValueRef LLVMBuildArrayMalloc (LLVMBuilderRef, LLVMTypeRef Ty, LLVMValueRef Val, const char *Name)
LLVMValueRef LLVMBuildAlloca (LLVMBuilderRef, LLVMTypeRef Ty, const char *Name)
LLVMValueRef LLVMBuildArrayAlloca (LLVMBuilderRef, LLVMTypeRef Ty, LLVMValueRef Val, const char *Name)
LLVMValueRef LLVMBuildFree (LLVMBuilderRef, LLVMValueRef PointerVal)
LLVMValueRef LLVMBuildLoad (LLVMBuilderRef, LLVMValueRef PointerVal, const char *Name)
LLVMValueRef LLVMBuildStore (LLVMBuilderRef, LLVMValueRef Val, LLVMValueRef Ptr)
LLVMValueRef LLVMBuildGEP (LLVMBuilderRef B, LLVMValueRef Pointer, LLVMValueRef *Indices, unsigned NumIndices, const char *Name)
LLVMValueRef LLVMBuildTrunc (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
LLVMValueRef LLVMBuildZExt (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
LLVMValueRef LLVMBuildSExt (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
LLVMValueRef LLVMBuildFPToUI (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
LLVMValueRef LLVMBuildFPToSI (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
LLVMValueRef LLVMBuildUIToFP (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
LLVMValueRef LLVMBuildSIToFP (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
LLVMValueRef LLVMBuildFPTrunc (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
LLVMValueRef LLVMBuildFPExt (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
LLVMValueRef LLVMBuildPtrToInt (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
LLVMValueRef LLVMBuildIntToPtr (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
LLVMValueRef LLVMBuildBitCast (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
LLVMValueRef LLVMBuildICmp (LLVMBuilderRef, LLVMIntPredicate Op, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
LLVMValueRef LLVMBuildFCmp (LLVMBuilderRef, LLVMRealPredicate Op, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
LLVMValueRef LLVMBuildPhi (LLVMBuilderRef, LLVMTypeRef Ty, const char *Name)
LLVMValueRef LLVMBuildCall (LLVMBuilderRef, LLVMValueRef Fn, LLVMValueRef *Args, unsigned NumArgs, const char *Name)
LLVMValueRef LLVMBuildSelect (LLVMBuilderRef, LLVMValueRef If, LLVMValueRef Then, LLVMValueRef Else, const char *Name)
LLVMValueRef LLVMBuildVAArg (LLVMBuilderRef, LLVMValueRef List, LLVMTypeRef Ty, const char *Name)
LLVMValueRef LLVMBuildExtractElement (LLVMBuilderRef, LLVMValueRef VecVal, LLVMValueRef Index, const char *Name)
LLVMValueRef LLVMBuildInsertElement (LLVMBuilderRef, LLVMValueRef VecVal, LLVMValueRef EltVal, LLVMValueRef Index, const char *Name)
LLVMValueRef LLVMBuildShuffleVector (LLVMBuilderRef, LLVMValueRef V1, LLVMValueRef V2, LLVMValueRef Mask, const char *Name)
LLVMValueRef LLVMBuildExtractValue (LLVMBuilderRef, LLVMValueRef AggVal, unsigned Index, const char *Name)
LLVMValueRef LLVMBuildInsertValue (LLVMBuilderRef, LLVMValueRef AggVal, LLVMValueRef EltVal, unsigned Index, const char *Name)
LLVMModuleProviderRef LLVMCreateModuleProviderForExistingModule (LLVMModuleRef M)
void LLVMDisposeModuleProvider (LLVMModuleProviderRef MP)
int LLVMCreateMemoryBufferWithContentsOfFile (const char *Path, LLVMMemoryBufferRef *OutMemBuf, char **OutMessage)
int LLVMCreateMemoryBufferWithSTDIN (LLVMMemoryBufferRef *OutMemBuf, char **OutMessage)
void LLVMDisposeMemoryBuffer (LLVMMemoryBufferRef MemBuf)
LLVMPassManagerRef LLVMCreatePassManager (void)
LLVMPassManagerRef LLVMCreateFunctionPassManager (LLVMModuleProviderRef MP)
int LLVMRunPassManager (LLVMPassManagerRef PM, LLVMModuleRef M)
int LLVMInitializeFunctionPassManager (LLVMPassManagerRef FPM)
int LLVMRunFunctionPassManager (LLVMPassManagerRef FPM, LLVMValueRef F)
int LLVMFinalizeFunctionPassManager (LLVMPassManagerRef FPM)
void LLVMDisposePassManager (LLVMPassManagerRef PM)


Define Documentation

#define LLVM_DECLARE_VALUE_CAST ( name   )     LLVMValueRef LLVMIsA##name(LLVMValueRef Val);

Definition at line 371 of file Core.h.

#define LLVM_FOR_EACH_VALUE_SUBCLASS ( macro   ) 

Definition at line 287 of file Core.h.


Typedef Documentation

typedef struct LLVMOpaqueBasicBlock* LLVMBasicBlockRef

Definition at line 69 of file Core.h.

typedef struct LLVMOpaqueBuilder* LLVMBuilderRef

Definition at line 70 of file Core.h.

typedef struct LLVMOpaqueMemoryBuffer* LLVMMemoryBufferRef

Definition at line 80 of file Core.h.

typedef struct LLVMOpaqueModuleProvider* LLVMModuleProviderRef

Definition at line 75 of file Core.h.

typedef struct LLVMOpaqueModule* LLVMModuleRef

The top-level container for all other LLVM Intermediate Representation (IR) objects. See the llvm::Module class.

Definition at line 53 of file Core.h.

typedef struct LLVMOpaquePassManager* LLVMPassManagerRef

See the llvm::PassManagerBase class.

Definition at line 83 of file Core.h.

typedef struct LLVMOpaqueTypeHandle* LLVMTypeHandleRef

When building recursive types using LLVMRefineType, LLVMTypeRef values may become invalid; use LLVMTypeHandleRef to resolve this problem. See the llvm::AbstractTypeHolder class.

Definition at line 66 of file Core.h.

typedef struct LLVMOpaqueType* LLVMTypeRef

Each value in the LLVM IR has a type, an LLVMTypeRef. See the llvm::Type class.

Definition at line 59 of file Core.h.

typedef struct LLVMOpaqueValue* LLVMValueRef

Definition at line 68 of file Core.h.


Enumeration Type Documentation

Enumerator:
LLVMZExtAttribute 
LLVMSExtAttribute 
LLVMNoReturnAttribute 
LLVMInRegAttribute 
LLVMStructRetAttribute 
LLVMNoUnwindAttribute 
LLVMNoAliasAttribute 
LLVMByValAttribute 
LLVMNestAttribute 
LLVMReadNoneAttribute 
LLVMReadOnlyAttribute 

Definition at line 85 of file Core.h.

Enumerator:
LLVMCCallConv 
LLVMFastCallConv 
LLVMColdCallConv 
LLVMX86StdcallCallConv 
LLVMX86FastcallCallConv 

Definition at line 136 of file Core.h.

Enumerator:
LLVMIntEQ  equal
LLVMIntNE  not equal
LLVMIntUGT  unsigned greater than
LLVMIntUGE  unsigned greater or equal
LLVMIntULT  unsigned less than
LLVMIntULE  unsigned less or equal
LLVMIntSGT  signed greater than
LLVMIntSGE  signed greater or equal
LLVMIntSLT  signed less than
LLVMIntSLE  signed less or equal

Definition at line 144 of file Core.h.

Enumerator:
LLVMExternalLinkage  Externally visible function
LLVMLinkOnceLinkage  Keep one copy of function when linking (inline)
LLVMWeakLinkage  Keep one copy of function when linking (weak)
LLVMAppendingLinkage  Special purpose, only applies to global arrays
LLVMInternalLinkage  Rename collisions when linking (static functions)
LLVMDLLImportLinkage  Function to be imported from DLL
LLVMDLLExportLinkage  Function to be accessible from DLL
LLVMExternalWeakLinkage  ExternalWeak linkage description
LLVMGhostLinkage  Stand-in functions for streaming fns from bitcode

Definition at line 116 of file Core.h.

Enumerator:
LLVMRealPredicateFalse  Always false (always folded)
LLVMRealOEQ  True if ordered and equal
LLVMRealOGT  True if ordered and greater than
LLVMRealOGE  True if ordered and greater than or equal
LLVMRealOLT  True if ordered and less than
LLVMRealOLE  True if ordered and less than or equal
LLVMRealONE  True if ordered and operands are unequal
LLVMRealORD  True if ordered (no nans)
LLVMRealUNO  True if unordered: isnan(X) | isnan(Y)
LLVMRealUEQ  True if unordered or equal
LLVMRealUGT  True if unordered or greater than
LLVMRealUGE  True if unordered, greater than, or equal
LLVMRealULT  True if unordered or less than
LLVMRealULE  True if unordered, less than, or equal
LLVMRealUNE  True if unordered or not equal
LLVMRealPredicateTrue  Always true (always folded)

Definition at line 157 of file Core.h.

Enumerator:
LLVMVoidTypeKind  type with no size
LLVMFloatTypeKind  32 bit floating point type
LLVMDoubleTypeKind  64 bit floating point type
LLVMX86_FP80TypeKind  80 bit floating point type (X87)
LLVMFP128TypeKind  128 bit floating point type (112-bit mantissa)
LLVMPPC_FP128TypeKind  128 bit floating point type (two 64-bits)
LLVMLabelTypeKind  Labels
LLVMIntegerTypeKind  Arbitrary bit width integers
LLVMFunctionTypeKind  Functions
LLVMStructTypeKind  Structures
LLVMArrayTypeKind  Arrays
LLVMPointerTypeKind  Pointers
LLVMOpaqueTypeKind  Opaque: type with unknown structure
LLVMVectorTypeKind  SIMD 'packed' format, or other vector type

Definition at line 99 of file Core.h.

Enumerator:
LLVMDefaultVisibility  The GV is visible
LLVMHiddenVisibility  The GV is hidden
LLVMProtectedVisibility  The GV is protected

Definition at line 130 of file Core.h.


Function Documentation

LLVMValueRef LLVMAddAlias ( LLVMModuleRef  M,
LLVMTypeRef  Ty,
LLVMValueRef  Aliasee,
const char *  Name 
)

Definition at line 698 of file Core.cpp.

void LLVMAddAttribute ( LLVMValueRef  Arg,
LLVMAttribute  PA 
)

Definition at line 837 of file Core.cpp.

void LLVMAddCase ( LLVMValueRef  Switch,
LLVMValueRef  OnVal,
LLVMBasicBlockRef  Dest 
)

Definition at line 1122 of file Core.cpp.

LLVMValueRef LLVMAddFunction ( LLVMModuleRef  M,
const char *  Name,
LLVMTypeRef  FunctionTy 
)

Definition at line 706 of file Core.cpp.

LLVMValueRef LLVMAddGlobal ( LLVMModuleRef  M,
LLVMTypeRef  Ty,
const char *  Name 
)

Definition at line 625 of file Core.cpp.

void LLVMAddIncoming ( LLVMValueRef  PhiNode,
LLVMValueRef *  IncomingValues,
LLVMBasicBlockRef *  IncomingBlocks,
unsigned  Count 
)

Definition at line 1022 of file Core.cpp.

References llvm::PHINode::addIncoming().

void LLVMAddInstrAttribute ( LLVMValueRef  Instr,
unsigned  index,
LLVMAttribute   
)

int LLVMAddTypeName ( LLVMModuleRef  M,
const char *  Name,
LLVMTypeRef  Ty 
)

See Module::addTypeName.

Definition at line 70 of file Core.cpp.

LLVMBasicBlockRef LLVMAppendBasicBlock ( LLVMValueRef  Fn,
const char *  Name 
)

Definition at line 914 of file Core.cpp.

LLVMTypeRef LLVMArrayType ( LLVMTypeRef  ElementType,
unsigned  ElementCount 
)

Definition at line 180 of file Core.cpp.

LLVMValueRef LLVMBasicBlockAsValue ( LLVMBasicBlockRef  BB  ) 

Definition at line 852 of file Core.cpp.

LLVMValueRef LLVMBuildAdd ( LLVMBuilderRef  ,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char *  Name 
)

Definition at line 1129 of file Core.cpp.

LLVMValueRef LLVMBuildAlloca ( LLVMBuilderRef  ,
LLVMTypeRef  Ty,
const char *  Name 
)

Definition at line 1224 of file Core.cpp.

LLVMValueRef LLVMBuildAnd ( LLVMBuilderRef  ,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char *  Name 
)

Definition at line 1189 of file Core.cpp.

LLVMValueRef LLVMBuildArrayAlloca ( LLVMBuilderRef  ,
LLVMTypeRef  Ty,
LLVMValueRef  Val,
const char *  Name 
)

Definition at line 1229 of file Core.cpp.

LLVMValueRef LLVMBuildArrayMalloc ( LLVMBuilderRef  ,
LLVMTypeRef  Ty,
LLVMValueRef  Val,
const char *  Name 
)

Definition at line 1219 of file Core.cpp.

LLVMValueRef LLVMBuildAShr ( LLVMBuilderRef  ,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char *  Name 
)

Definition at line 1184 of file Core.cpp.

LLVMValueRef LLVMBuildBitCast ( LLVMBuilderRef  ,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char *  Name 
)

Definition at line 1313 of file Core.cpp.

LLVMValueRef LLVMBuildBr ( LLVMBuilderRef  ,
LLVMBasicBlockRef  Dest 
)

Definition at line 1091 of file Core.cpp.

LLVMValueRef LLVMBuildCall ( LLVMBuilderRef  ,
LLVMValueRef  Fn,
LLVMValueRef *  Args,
unsigned  NumArgs,
const char *  Name 
)

Definition at line 1340 of file Core.cpp.

LLVMValueRef LLVMBuildCondBr ( LLVMBuilderRef  ,
LLVMValueRef  If,
LLVMBasicBlockRef  Then,
LLVMBasicBlockRef  Else 
)

Definition at line 1095 of file Core.cpp.

LLVMValueRef LLVMBuildExtractElement ( LLVMBuilderRef  ,
LLVMValueRef  VecVal,
LLVMValueRef  Index,
const char *  Name 
)

Definition at line 1359 of file Core.cpp.

LLVMValueRef LLVMBuildExtractValue ( LLVMBuilderRef  ,
LLVMValueRef  AggVal,
unsigned  Index,
const char *  Name 
)

Definition at line 1379 of file Core.cpp.

LLVMValueRef LLVMBuildFCmp ( LLVMBuilderRef  ,
LLVMRealPredicate  Op,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char *  Name 
)

Definition at line 1327 of file Core.cpp.

LLVMValueRef LLVMBuildFDiv ( LLVMBuilderRef  ,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char *  Name 
)

Definition at line 1154 of file Core.cpp.

LLVMValueRef LLVMBuildFPExt ( LLVMBuilderRef  ,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char *  Name 
)

Definition at line 1298 of file Core.cpp.

LLVMValueRef LLVMBuildFPToSI ( LLVMBuilderRef  ,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char *  Name 
)

Definition at line 1278 of file Core.cpp.

LLVMValueRef LLVMBuildFPToUI ( LLVMBuilderRef  ,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char *  Name 
)

Definition at line 1273 of file Core.cpp.

LLVMValueRef LLVMBuildFPTrunc ( LLVMBuilderRef  ,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char *  Name 
)

Definition at line 1293 of file Core.cpp.

LLVMValueRef LLVMBuildFree ( LLVMBuilderRef  ,
LLVMValueRef  PointerVal 
)

Definition at line 1234 of file Core.cpp.

LLVMValueRef LLVMBuildFRem ( LLVMBuilderRef  ,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char *  Name 
)

Definition at line 1169 of file Core.cpp.

LLVMValueRef LLVMBuildGEP ( LLVMBuilderRef  B,
LLVMValueRef  Pointer,
LLVMValueRef *  Indices,
unsigned  NumIndices,
const char *  Name 
)

Definition at line 1249 of file Core.cpp.

LLVMValueRef LLVMBuildICmp ( LLVMBuilderRef  ,
LLVMIntPredicate  Op,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char *  Name 
)

Definition at line 1320 of file Core.cpp.

LLVMValueRef LLVMBuildInsertElement ( LLVMBuilderRef  ,
LLVMValueRef  VecVal,
LLVMValueRef  EltVal,
LLVMValueRef  Index,
const char *  Name 
)

Definition at line 1365 of file Core.cpp.

LLVMValueRef LLVMBuildInsertValue ( LLVMBuilderRef  ,
LLVMValueRef  AggVal,
LLVMValueRef  EltVal,
unsigned  Index,
const char *  Name 
)

Definition at line 1384 of file Core.cpp.

LLVMValueRef LLVMBuildIntToPtr ( LLVMBuilderRef  ,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char *  Name 
)

Definition at line 1308 of file Core.cpp.

LLVMValueRef LLVMBuildInvoke ( LLVMBuilderRef  ,
LLVMValueRef  Fn,
LLVMValueRef *  Args,
unsigned  NumArgs,
LLVMBasicBlockRef  Then,
LLVMBasicBlockRef  Catch,
const char *  Name 
)

Definition at line 1105 of file Core.cpp.

LLVMValueRef LLVMBuildLoad ( LLVMBuilderRef  ,
LLVMValueRef  PointerVal,
const char *  Name 
)

Definition at line 1239 of file Core.cpp.

LLVMValueRef LLVMBuildLShr ( LLVMBuilderRef  ,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char *  Name 
)

Definition at line 1179 of file Core.cpp.

LLVMValueRef LLVMBuildMalloc ( LLVMBuilderRef  ,
LLVMTypeRef  Ty,
const char *  Name 
)

Definition at line 1214 of file Core.cpp.

LLVMValueRef LLVMBuildMul ( LLVMBuilderRef  ,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char *  Name 
)

Definition at line 1139 of file Core.cpp.

LLVMValueRef LLVMBuildNeg ( LLVMBuilderRef  ,
LLVMValueRef  V,
const char *  Name 
)

Definition at line 1204 of file Core.cpp.

LLVMValueRef LLVMBuildNot ( LLVMBuilderRef  ,
LLVMValueRef  V,
const char *  Name 
)

Definition at line 1208 of file Core.cpp.

LLVMValueRef LLVMBuildOr ( LLVMBuilderRef  ,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char *  Name 
)

Definition at line 1194 of file Core.cpp.

LLVMValueRef LLVMBuildPhi ( LLVMBuilderRef  ,
LLVMTypeRef  Ty,
const char *  Name 
)

Definition at line 1336 of file Core.cpp.

LLVMValueRef LLVMBuildPtrToInt ( LLVMBuilderRef  ,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char *  Name 
)

Definition at line 1303 of file Core.cpp.

LLVMValueRef LLVMBuildRet ( LLVMBuilderRef  ,
LLVMValueRef  V 
)

Definition at line 1087 of file Core.cpp.

LLVMValueRef LLVMBuildRetVoid ( LLVMBuilderRef   ) 

Definition at line 1083 of file Core.cpp.

LLVMValueRef LLVMBuildSDiv ( LLVMBuilderRef  ,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char *  Name 
)

Definition at line 1149 of file Core.cpp.

LLVMValueRef LLVMBuildSelect ( LLVMBuilderRef  ,
LLVMValueRef  If,
LLVMValueRef  Then,
LLVMValueRef  Else,
const char *  Name 
)

Definition at line 1347 of file Core.cpp.

LLVMValueRef LLVMBuildSExt ( LLVMBuilderRef  ,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char *  Name 
)

Definition at line 1268 of file Core.cpp.

LLVMValueRef LLVMBuildShl ( LLVMBuilderRef  ,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char *  Name 
)

Definition at line 1174 of file Core.cpp.

LLVMValueRef LLVMBuildShuffleVector ( LLVMBuilderRef  ,
LLVMValueRef  V1,
LLVMValueRef  V2,
LLVMValueRef  Mask,
const char *  Name 
)

Definition at line 1372 of file Core.cpp.

LLVMValueRef LLVMBuildSIToFP ( LLVMBuilderRef  ,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char *  Name 
)

Definition at line 1288 of file Core.cpp.

LLVMValueRef LLVMBuildSRem ( LLVMBuilderRef  ,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char *  Name 
)

Definition at line 1164 of file Core.cpp.

LLVMValueRef LLVMBuildStore ( LLVMBuilderRef  ,
LLVMValueRef  Val,
LLVMValueRef  Ptr 
)

Definition at line 1244 of file Core.cpp.

LLVMValueRef LLVMBuildSub ( LLVMBuilderRef  ,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char *  Name 
)

Definition at line 1134 of file Core.cpp.

LLVMValueRef LLVMBuildSwitch ( LLVMBuilderRef  ,
LLVMValueRef  V,
LLVMBasicBlockRef  Else,
unsigned  NumCases 
)

Definition at line 1100 of file Core.cpp.

LLVMValueRef LLVMBuildTrunc ( LLVMBuilderRef  ,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char *  Name 
)

Definition at line 1258 of file Core.cpp.

LLVMValueRef LLVMBuildUDiv ( LLVMBuilderRef  ,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char *  Name 
)

Definition at line 1144 of file Core.cpp.

LLVMValueRef LLVMBuildUIToFP ( LLVMBuilderRef  ,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char *  Name 
)

Definition at line 1283 of file Core.cpp.

LLVMValueRef LLVMBuildUnreachable ( LLVMBuilderRef   ) 

Definition at line 1118 of file Core.cpp.

LLVMValueRef LLVMBuildUnwind ( LLVMBuilderRef   ) 

Definition at line 1114 of file Core.cpp.

LLVMValueRef LLVMBuildURem ( LLVMBuilderRef  ,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char *  Name 
)

Definition at line 1159 of file Core.cpp.

LLVMValueRef LLVMBuildVAArg ( LLVMBuilderRef  ,
LLVMValueRef  List,
LLVMTypeRef  Ty,
const char *  Name 
)

Definition at line 1354 of file Core.cpp.

LLVMValueRef LLVMBuildXor ( LLVMBuilderRef  ,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char *  Name 
)

Definition at line 1199 of file Core.cpp.

LLVMValueRef LLVMBuildZExt ( LLVMBuilderRef  ,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char *  Name 
)

Definition at line 1263 of file Core.cpp.

void LLVMClearInsertionPosition ( LLVMBuilderRef  Builder  ) 

Definition at line 1069 of file Core.cpp.

LLVMValueRef LLVMConstAdd ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 371 of file Core.cpp.

LLVMValueRef LLVMConstAllOnes ( LLVMTypeRef  Ty  ) 

Definition at line 273 of file Core.cpp.

LLVMValueRef LLVMConstAnd ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 416 of file Core.cpp.

LLVMValueRef LLVMConstArray ( LLVMTypeRef  ElementTy,
LLVMValueRef *  ConstantVals,
unsigned  Length 
)

Definition at line 339 of file Core.cpp.

LLVMValueRef LLVMConstAShr ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 455 of file Core.cpp.

LLVMValueRef LLVMConstBitCast ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 523 of file Core.cpp.

LLVMValueRef LLVMConstExtractElement ( LLVMValueRef  VectorConstant,
LLVMValueRef  IndexConstant 
)

Definition at line 536 of file Core.cpp.

LLVMValueRef LLVMConstExtractValue ( LLVMValueRef  AggConstant,
unsigned *  IdxList,
unsigned  NumIdx 
)

Definition at line 558 of file Core.cpp.

LLVMValueRef LLVMConstFCmp ( LLVMRealPredicate  Predicate,
LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 438 of file Core.cpp.

LLVMValueRef LLVMConstFDiv ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 396 of file Core.cpp.

LLVMValueRef LLVMConstFPExt ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 488 of file Core.cpp.

LLVMValueRef LLVMConstFPToSI ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 508 of file Core.cpp.

LLVMValueRef LLVMConstFPToUI ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 503 of file Core.cpp.

LLVMValueRef LLVMConstFPTrunc ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 483 of file Core.cpp.

LLVMValueRef LLVMConstFRem ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 411 of file Core.cpp.

LLVMValueRef LLVMConstGEP ( LLVMValueRef  ConstantVal,
LLVMValueRef *  ConstantIndices,
unsigned  NumIndices 
)

Definition at line 460 of file Core.cpp.

LLVMValueRef LLVMConstICmp ( LLVMIntPredicate  Predicate,
LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 431 of file Core.cpp.

LLVMValueRef LLVMConstInlineAsm ( LLVMTypeRef  Ty,
const char *  AsmString,
const char *  Constraints,
int  HasSideEffects 
)

Definition at line 572 of file Core.cpp.

LLVMValueRef LLVMConstInsertElement ( LLVMValueRef  VectorConstant,
LLVMValueRef  ElementValueConstant,
LLVMValueRef  IndexConstant 
)

Definition at line 542 of file Core.cpp.

LLVMValueRef LLVMConstInsertValue ( LLVMValueRef  AggConstant,
LLVMValueRef  ElementValueConstant,
unsigned *  IdxList,
unsigned  NumIdx 
)

Definition at line 564 of file Core.cpp.

LLVMValueRef LLVMConstInt ( LLVMTypeRef  IntTy,
unsigned long long  N,
int  SignExtend 
)

Definition at line 297 of file Core.cpp.

LLVMValueRef LLVMConstIntToPtr ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 518 of file Core.cpp.

LLVMValueRef LLVMConstLShr ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 450 of file Core.cpp.

LLVMValueRef LLVMConstMul ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 381 of file Core.cpp.

LLVMValueRef LLVMConstNeg ( LLVMValueRef  ConstantVal  ) 

Definition at line 363 of file Core.cpp.

LLVMValueRef LLVMConstNot ( LLVMValueRef  ConstantVal  ) 

Definition at line 367 of file Core.cpp.

LLVMValueRef LLVMConstNull ( LLVMTypeRef  Ty  ) 

Definition at line 269 of file Core.cpp.

LLVMValueRef LLVMConstOr ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 421 of file Core.cpp.

LLVMValueRef LLVMConstPtrToInt ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 513 of file Core.cpp.

LLVMValueRef LLVMConstReal ( LLVMTypeRef  RealTy,
double  N 
)

Definition at line 317 of file Core.cpp.

References llvm::APFloat::convert(), and SemanticsForType().

LLVMValueRef LLVMConstRealOfString ( LLVMTypeRef  RealTy,
const char *  Text 
)

Definition at line 325 of file Core.cpp.

References llvm::lltok::APFloat, and SemanticsForType().

LLVMValueRef LLVMConstSDiv ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 391 of file Core.cpp.

LLVMValueRef LLVMConstSelect ( LLVMValueRef  ConstantCondition,
LLVMValueRef  ConstantIfTrue,
LLVMValueRef  ConstantIfFalse 
)

Definition at line 528 of file Core.cpp.

LLVMValueRef LLVMConstSExt ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 473 of file Core.cpp.

LLVMValueRef LLVMConstShl ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 445 of file Core.cpp.

LLVMValueRef LLVMConstShuffleVector ( LLVMValueRef  VectorAConstant,
LLVMValueRef  VectorBConstant,
LLVMValueRef  MaskConstant 
)

Definition at line 550 of file Core.cpp.

LLVMValueRef LLVMConstSIToFP ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 498 of file Core.cpp.

LLVMValueRef LLVMConstSRem ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 406 of file Core.cpp.

LLVMValueRef LLVMConstString ( const char *  Str,
unsigned  Length,
int  DontNullTerminate 
)

Definition at line 331 of file Core.cpp.

LLVMValueRef LLVMConstStruct ( LLVMValueRef *  ConstantVals,
unsigned  Count,
int  packed 
)

Definition at line 346 of file Core.cpp.

LLVMValueRef LLVMConstSub ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 376 of file Core.cpp.

LLVMValueRef LLVMConstTrunc ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 468 of file Core.cpp.

LLVMValueRef LLVMConstUDiv ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 386 of file Core.cpp.

LLVMValueRef LLVMConstUIToFP ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 493 of file Core.cpp.

LLVMValueRef LLVMConstURem ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 401 of file Core.cpp.

LLVMValueRef LLVMConstVector ( LLVMValueRef *  ScalarConstantVals,
unsigned  Size 
)

Definition at line 352 of file Core.cpp.

LLVMValueRef LLVMConstXor ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 426 of file Core.cpp.

LLVMValueRef LLVMConstZExt ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 478 of file Core.cpp.

unsigned LLVMCountBasicBlocks ( LLVMValueRef  Fn  ) 

Definition at line 868 of file Core.cpp.

unsigned LLVMCountIncoming ( LLVMValueRef  PhiNode  ) 

Definition at line 1029 of file Core.cpp.

unsigned LLVMCountParams ( LLVMValueRef  Fn  ) 

Definition at line 781 of file Core.cpp.

unsigned LLVMCountParamTypes ( LLVMTypeRef  FunctionTy  ) 

Definition at line 140 of file Core.cpp.

unsigned LLVMCountStructElementTypes ( LLVMTypeRef  StructTy  ) 

Definition at line 163 of file Core.cpp.

LLVMBuilderRef LLVMCreateBuilder ( void   ) 

Definition at line 1044 of file Core.cpp.

LLVMPassManagerRef LLVMCreateFunctionPassManager ( LLVMModuleProviderRef  MP  ) 

Constructs a new function-by-function pass pipeline over the module provider. It does not take ownership of the module provider. This type of pipeline is suitable for code generation and JIT compilation tasks. See llvm::FunctionPassManager::FunctionPassManager.

Definition at line 1687 of file PassManager.cpp.

int LLVMCreateMemoryBufferWithContentsOfFile ( const char *  Path,
LLVMMemoryBufferRef *  OutMemBuf,
char **  OutMessage 
)

Definition at line 1406 of file Core.cpp.

References Error().

int LLVMCreateMemoryBufferWithSTDIN ( LLVMMemoryBufferRef *  OutMemBuf,
char **  OutMessage 
)

Definition at line 1419 of file Core.cpp.

LLVMModuleProviderRef LLVMCreateModuleProviderForExistingModule ( LLVMModuleRef  M  ) 

Definition at line 1395 of file Core.cpp.

LLVMPassManagerRef LLVMCreatePassManager ( void   ) 

Constructs a new whole-module pass pipeline. This type of pipeline is suitable for link-time optimization and whole-module transformations. See llvm::PassManager::PassManager.

Definition at line 1683 of file PassManager.cpp.

LLVMTypeHandleRef LLVMCreateTypeHandle ( LLVMTypeRef  PotentiallyAbstractTy  ) 

Definition at line 219 of file Core.cpp.

void LLVMDeleteBasicBlock ( LLVMBasicBlockRef  BB  ) 

Definition at line 925 of file Core.cpp.

void LLVMDeleteFunction ( LLVMValueRef  Fn  ) 

Definition at line 748 of file Core.cpp.

void LLVMDeleteGlobal ( LLVMValueRef  GlobalVar  ) 

Definition at line 667 of file Core.cpp.

void LLVMDeleteTypeName ( LLVMModuleRef  M,
const char *  Name 
)

void LLVMDisposeBuilder ( LLVMBuilderRef  Builder  ) 

Definition at line 1077 of file Core.cpp.

void LLVMDisposeMemoryBuffer ( LLVMMemoryBufferRef  MemBuf  ) 

Definition at line 1430 of file Core.cpp.

void LLVMDisposeMessage ( char *  Message  ) 

Definition at line 36 of file Core.cpp.

void LLVMDisposeModule ( LLVMModuleRef  M  ) 

See llvm::Module::~Module.

Definition at line 47 of file Core.cpp.

void LLVMDisposeModuleProvider ( LLVMModuleProviderRef  MP  ) 

Definition at line 1399 of file Core.cpp.

void LLVMDisposePassManager ( LLVMPassManagerRef  PM  ) 

Frees the memory of a pass pipeline. For function pipelines, does not free the module provider. See llvm::PassManagerBase::~PassManagerBase.

Definition at line 1707 of file PassManager.cpp.

void LLVMDisposeTypeHandle ( LLVMTypeHandleRef  TypeHandle  ) 

Definition at line 223 of file Core.cpp.

LLVMTypeRef LLVMDoubleType ( void   ) 

Definition at line 115 of file Core.cpp.

void LLVMDumpModule ( LLVMModuleRef  M  ) 

See Module::dump.

Definition at line 83 of file Core.cpp.

void LLVMDumpValue ( LLVMValueRef  Val  ) 

Definition at line 252 of file Core.cpp.

int LLVMFinalizeFunctionPassManager ( LLVMPassManagerRef  FPM  ) 

Finalizes all of the function passes scheduled in in the function pass manager. Returns 1 if any of the passes modified the module, 0 otherwise. See llvm::FunctionPassManager::doFinalization.

Definition at line 1703 of file PassManager.cpp.

LLVMTypeRef LLVMFloatType ( void   ) 

Definition at line 114 of file Core.cpp.

LLVMTypeRef LLVMFP128Type ( void   ) 

Definition at line 117 of file Core.cpp.

LLVMTypeRef LLVMFunctionType ( LLVMTypeRef  ReturnType,
LLVMTypeRef *  ParamTypes,
unsigned  ParamCount,
int  IsVarArg 
)

Definition at line 122 of file Core.cpp.

References E.

unsigned LLVMGetAlignment ( LLVMValueRef  Global  ) 

Definition at line 615 of file Core.cpp.

unsigned LLVMGetArrayLength ( LLVMTypeRef  ArrayTy  ) 

Definition at line 196 of file Core.cpp.

LLVMValueRef LLVMGetBasicBlockParent ( LLVMBasicBlockRef  BB  ) 

Definition at line 864 of file Core.cpp.

void LLVMGetBasicBlocks ( LLVMValueRef  Fn,
LLVMBasicBlockRef *  BasicBlocks 
)

Definition at line 872 of file Core.cpp.

References llvm::Function::begin(), E, and llvm::Function::end().

const char* LLVMGetDataLayout ( LLVMModuleRef  M  ) 

Data layout. See Module::getDataLayout.

Definition at line 52 of file Core.cpp.

LLVMTypeRef LLVMGetElementType ( LLVMTypeRef  Ty  ) 

Definition at line 192 of file Core.cpp.

LLVMBasicBlockRef LLVMGetEntryBasicBlock ( LLVMValueRef  Fn  ) 

Definition at line 878 of file Core.cpp.

LLVMBasicBlockRef LLVMGetFirstBasicBlock ( LLVMValueRef  Fn  ) 

Definition at line 882 of file Core.cpp.

References llvm::Function::begin(), and llvm::Function::end().

LLVMValueRef LLVMGetFirstFunction ( LLVMModuleRef  M  ) 

Definition at line 716 of file Core.cpp.

References llvm::Module::begin(), llvm::Module::end(), and Mod.

LLVMValueRef LLVMGetFirstGlobal ( LLVMModuleRef  M  ) 

Definition at line 635 of file Core.cpp.

References llvm::Module::global_begin(), llvm::Module::global_end(), and Mod.

LLVMValueRef LLVMGetFirstInstruction ( LLVMBasicBlockRef  BB  ) 

Definition at line 935 of file Core.cpp.

References llvm::BasicBlock::begin(), and llvm::BasicBlock::end().

LLVMValueRef LLVMGetFirstParam ( LLVMValueRef  Fn  ) 

Definition at line 805 of file Core.cpp.

References llvm::Function::arg_begin(), and llvm::Function::arg_end().

unsigned LLVMGetFunctionCallConv ( LLVMValueRef  Fn  ) 

Definition at line 758 of file Core.cpp.

const char* LLVMGetGC ( LLVMValueRef  Fn  ) 

Definition at line 766 of file Core.cpp.

References F, llvm::Function::getGC(), and llvm::Function::hasGC().

LLVMModuleRef LLVMGetGlobalParent ( LLVMValueRef  Global  ) 

Definition at line 580 of file Core.cpp.

LLVMBasicBlockRef LLVMGetIncomingBlock ( LLVMValueRef  PhiNode,
unsigned  Index 
)

Definition at line 1037 of file Core.cpp.

LLVMValueRef LLVMGetIncomingValue ( LLVMValueRef  PhiNode,
unsigned  Index 
)

Definition at line 1033 of file Core.cpp.

LLVMValueRef LLVMGetInitializer ( LLVMValueRef  GlobalVar  ) 

Definition at line 671 of file Core.cpp.

LLVMBasicBlockRef LLVMGetInsertBlock ( LLVMBuilderRef  Builder  ) 

Definition at line 1065 of file Core.cpp.

unsigned LLVMGetInstructionCallConv ( LLVMValueRef  Instr  ) 

Definition at line 969 of file Core.cpp.

References II, and V.

LLVMBasicBlockRef LLVMGetInstructionParent ( LLVMValueRef  Inst  ) 

Definition at line 931 of file Core.cpp.

unsigned LLVMGetIntrinsicID ( LLVMValueRef  Fn  ) 

Definition at line 752 of file Core.cpp.

References F.

unsigned LLVMGetIntTypeWidth ( LLVMTypeRef  IntegerTy  ) 

Definition at line 108 of file Core.cpp.

LLVMBasicBlockRef LLVMGetLastBasicBlock ( LLVMValueRef  Fn  ) 

Definition at line 890 of file Core.cpp.

References llvm::Function::begin(), and llvm::Function::end().

LLVMValueRef LLVMGetLastFunction ( LLVMModuleRef  M  ) 

Definition at line 724 of file Core.cpp.

References llvm::Module::begin(), llvm::Module::end(), and Mod.

LLVMValueRef LLVMGetLastGlobal ( LLVMModuleRef  M  ) 

Definition at line 643 of file Core.cpp.

References llvm::Module::global_begin(), llvm::Module::global_end(), and Mod.

LLVMValueRef LLVMGetLastInstruction ( LLVMBasicBlockRef  BB  ) 

Definition at line 943 of file Core.cpp.

References llvm::BasicBlock::begin(), and llvm::BasicBlock::end().

LLVMValueRef LLVMGetLastParam ( LLVMValueRef  Fn  ) 

Definition at line 813 of file Core.cpp.

References llvm::Function::arg_begin(), and llvm::Function::arg_end().

LLVMLinkage LLVMGetLinkage ( LLVMValueRef  Global  ) 

Definition at line 588 of file Core.cpp.

LLVMValueRef LLVMGetNamedFunction ( LLVMModuleRef  M,
const char *  Name 
)

Definition at line 712 of file Core.cpp.

LLVMValueRef LLVMGetNamedGlobal ( LLVMModuleRef  M,
const char *  Name 
)

Definition at line 631 of file Core.cpp.

LLVMBasicBlockRef LLVMGetNextBasicBlock ( LLVMBasicBlockRef  BB  ) 

Definition at line 898 of file Core.cpp.

References llvm::Function::end(), and llvm::BasicBlock::getParent().

LLVMValueRef LLVMGetNextFunction ( LLVMValueRef  Fn  ) 

Definition at line 732 of file Core.cpp.

References llvm::Module::end(), and llvm::GlobalValue::getParent().

LLVMValueRef LLVMGetNextGlobal ( LLVMValueRef  GlobalVar  ) 

Definition at line 651 of file Core.cpp.

References llvm::GlobalValue::getParent(), llvm::Module::global_end(), and GV.

LLVMValueRef LLVMGetNextInstruction ( LLVMValueRef  Inst  ) 

Definition at line 951 of file Core.cpp.

References llvm::BasicBlock::end(), and llvm::Instruction::getParent().

LLVMValueRef LLVMGetNextParam ( LLVMValueRef  Arg  ) 

Definition at line 821 of file Core.cpp.

References A, llvm::Function::arg_end(), and llvm::Argument::getParent().

LLVMValueRef LLVMGetParam ( LLVMValueRef  Fn,
unsigned  Index 
)

Definition at line 794 of file Core.cpp.

References AI.

LLVMValueRef LLVMGetParamParent ( LLVMValueRef  Inst  ) 

Definition at line 801 of file Core.cpp.

void LLVMGetParams ( LLVMValueRef  Fn,
LLVMValueRef *  Params 
)

Definition at line 787 of file Core.cpp.

References llvm::Function::arg_begin(), llvm::Function::arg_end(), and E.

void LLVMGetParamTypes ( LLVMTypeRef  FunctionTy,
LLVMTypeRef *  Dest 
)

Definition at line 144 of file Core.cpp.

References E, llvm::FunctionType::param_begin(), llvm::FunctionType::param_end(), and Ty.

unsigned LLVMGetPointerAddressSpace ( LLVMTypeRef  PointerTy  ) 

Definition at line 200 of file Core.cpp.

LLVMBasicBlockRef LLVMGetPreviousBasicBlock ( LLVMBasicBlockRef  BB  ) 

Definition at line 906 of file Core.cpp.

References llvm::Function::begin(), and llvm::BasicBlock::getParent().

LLVMValueRef LLVMGetPreviousFunction ( LLVMValueRef  Fn  ) 

Definition at line 740 of file Core.cpp.

References llvm::Module::begin(), and llvm::GlobalValue::getParent().

LLVMValueRef LLVMGetPreviousGlobal ( LLVMValueRef  GlobalVar  ) 

Definition at line 659 of file Core.cpp.

References llvm::GlobalValue::getParent(), llvm::Module::global_begin(), and GV.

LLVMValueRef LLVMGetPreviousInstruction ( LLVMValueRef  Inst  ) 

Definition at line 959 of file Core.cpp.

References llvm::BasicBlock::begin(), and llvm::Instruction::getParent().

LLVMValueRef LLVMGetPreviousParam ( LLVMValueRef  Arg  ) 

Definition at line 829 of file Core.cpp.

References A, llvm::Function::arg_begin(), and llvm::Argument::getParent().

LLVMTypeRef LLVMGetReturnType ( LLVMTypeRef  FunctionTy  ) 

Definition at line 136 of file Core.cpp.

const char* LLVMGetSection ( LLVMValueRef  Global  ) 

Definition at line 597 of file Core.cpp.

void LLVMGetStructElementTypes ( LLVMTypeRef  StructTy,
LLVMTypeRef *  Dest 
)

Definition at line 167 of file Core.cpp.

References E, llvm::StructType::element_begin(), llvm::StructType::element_end(), and Ty.

const char* LLVMGetTarget ( LLVMModuleRef  M  ) 

Target triple. See Module::getTargetTriple.

Definition at line 61 of file Core.cpp.

LLVMTypeKind LLVMGetTypeKind ( LLVMTypeRef  Ty  ) 

See llvm::LLVMTypeKind::getTypeID.

Definition at line 92 of file Core.cpp.

LLVMValueRef LLVMGetUndef ( LLVMTypeRef  Ty  ) 

Definition at line 277 of file Core.cpp.

const char* LLVMGetValueName ( LLVMValueRef  Val  ) 

Definition at line 244 of file Core.cpp.

unsigned LLVMGetVectorSize ( LLVMTypeRef  VectorTy  ) 

Definition at line 204 of file Core.cpp.

LLVMVisibility LLVMGetVisibility ( LLVMValueRef  Global  ) 

Definition at line 605 of file Core.cpp.

int LLVMInitializeFunctionPassManager ( LLVMPassManagerRef  FPM  ) 

Initializes all of the function passes scheduled in the function pass manager. Returns 1 if any of the passes modified the module, 0 otherwise. See llvm::FunctionPassManager::doInitialization.

Definition at line 1695 of file PassManager.cpp.

LLVMBasicBlockRef LLVMInsertBasicBlock ( LLVMBasicBlockRef  InsertBeforeBB,
const char *  Name 
)

Definition at line 918 of file Core.cpp.

References llvm::BasicBlock::getParent().

void LLVMInsertIntoBuilder ( LLVMBuilderRef  Builder,
LLVMValueRef  Instr 
)

Definition at line 1073 of file Core.cpp.

LLVMTypeRef LLVMInt16Type ( void   ) 

Definition at line 100 of file Core.cpp.

LLVMTypeRef LLVMInt1Type ( void   ) 

Definition at line 98 of file Core.cpp.

LLVMTypeRef LLVMInt32Type ( void   ) 

Definition at line 101 of file Core.cpp.

LLVMTypeRef LLVMInt64Type ( void   ) 

Definition at line 102 of file Core.cpp.

LLVMTypeRef LLVMInt8Type ( void   ) 

Definition at line 99 of file Core.cpp.

LLVMTypeRef LLVMIntType ( unsigned  NumBits  ) 

Definition at line 104 of file Core.cpp.

int LLVMIsConstant ( LLVMValueRef  Val  ) 

Definition at line 281 of file Core.cpp.

int LLVMIsDeclaration ( LLVMValueRef  Global  ) 

Definition at line 584 of file Core.cpp.

int LLVMIsFunctionVarArg ( LLVMTypeRef  FunctionTy  ) 

Definition at line 132 of file Core.cpp.

int LLVMIsGlobalConstant ( LLVMValueRef  GlobalVar  ) 

Definition at line 688 of file Core.cpp.

int LLVMIsNull ( LLVMValueRef  Val  ) 

Definition at line 285 of file Core.cpp.

References llvm::CallingConv::C.

int LLVMIsPackedStruct ( LLVMTypeRef  StructTy  ) 

Definition at line 174 of file Core.cpp.

int LLVMIsTailCall ( LLVMValueRef  CallInst  ) 

Definition at line 1012 of file Core.cpp.

int LLVMIsThreadLocal ( LLVMValueRef  GlobalVar  ) 

Definition at line 680 of file Core.cpp.

int LLVMIsUndef ( LLVMValueRef  Val  ) 

Definition at line 291 of file Core.cpp.

LLVMTypeRef LLVMLabelType ( void   ) 

Definition at line 211 of file Core.cpp.

LLVMModuleRef LLVMModuleCreateWithName ( const char *  ModuleID  ) 

See llvm::Module::Module.

Definition at line 43 of file Core.cpp.

LLVMTypeRef LLVMOpaqueType ( void   ) 

Definition at line 213 of file Core.cpp.

References llvm::OpaqueType::get().

LLVMTypeRef LLVMPointerType ( LLVMTypeRef  ElementType,
unsigned  AddressSpace 
)

Definition at line 184 of file Core.cpp.

void LLVMPositionBuilder ( LLVMBuilderRef  Builder,
LLVMBasicBlockRef  Block,
LLVMValueRef  Instr 
)

Definition at line 1048 of file Core.cpp.

References BB, and llvm::BasicBlock::end().

void LLVMPositionBuilderAtEnd ( LLVMBuilderRef  Builder,
LLVMBasicBlockRef  Block 
)

Definition at line 1060 of file Core.cpp.

References BB.

void LLVMPositionBuilderBefore ( LLVMBuilderRef  Builder,
LLVMValueRef  Instr 
)

Definition at line 1055 of file Core.cpp.

References llvm::Instruction::getParent().

LLVMTypeRef LLVMPPCFP128Type ( void   ) 

Definition at line 118 of file Core.cpp.

void LLVMRefineType ( LLVMTypeRef  AbstractTy,
LLVMTypeRef  ConcreteTy 
)

Definition at line 231 of file Core.cpp.

void LLVMRemoveAttribute ( LLVMValueRef  Arg,
LLVMAttribute  PA 
)

Definition at line 841 of file Core.cpp.

void LLVMRemoveInstrAttribute ( LLVMValueRef  Instr,
unsigned  index,
LLVMAttribute   
)

LLVMTypeRef LLVMResolveTypeHandle ( LLVMTypeHandleRef  TypeHandle  ) 

Definition at line 227 of file Core.cpp.

int LLVMRunFunctionPassManager ( LLVMPassManagerRef  FPM,
LLVMValueRef  F 
)

Executes all of the function passes scheduled in the function pass manager on the provided function. Returns 1 if any of the passes modified the function, false otherwise. See llvm::FunctionPassManager::run(Function&).

Definition at line 1699 of file PassManager.cpp.

int LLVMRunPassManager ( LLVMPassManagerRef  PM,
LLVMModuleRef  M 
)

Initializes, executes on the provided module, and finalizes all of the passes scheduled in the pass manager. Returns 1 if any of the passes modified the module, 0 otherwise. See llvm::PassManager::run(Module&).

Definition at line 1691 of file PassManager.cpp.

void LLVMSetAlignment ( LLVMValueRef  Global,
unsigned  Bytes 
)

Definition at line 619 of file Core.cpp.

void LLVMSetDataLayout ( LLVMModuleRef  M,
const char *  Triple 
)

Definition at line 56 of file Core.cpp.

void LLVMSetFunctionCallConv ( LLVMValueRef  Fn,
unsigned  CC 
)

Definition at line 762 of file Core.cpp.

void LLVMSetGC ( LLVMValueRef  Fn,
const char *  Name 
)

Definition at line 771 of file Core.cpp.

References llvm::Function::clearGC(), F, and llvm::Function::setGC().

void LLVMSetGlobalConstant ( LLVMValueRef  GlobalVar,
int  IsConstant 
)

Definition at line 692 of file Core.cpp.

void LLVMSetInitializer ( LLVMValueRef  GlobalVar,
LLVMValueRef  ConstantVal 
)

Definition at line 675 of file Core.cpp.

void LLVMSetInstrParamAlignment ( LLVMValueRef  Instr,
unsigned  index,
unsigned  align 
)

void LLVMSetInstructionCallConv ( LLVMValueRef  Instr,
unsigned  CC 
)

Definition at line 979 of file Core.cpp.

References II, and V.

void LLVMSetLinkage ( LLVMValueRef  Global,
LLVMLinkage  Linkage 
)

Definition at line 592 of file Core.cpp.

void LLVMSetParamAlignment ( LLVMValueRef  Arg,
unsigned  align 
)

Definition at line 845 of file Core.cpp.

References llvm::Attribute::constructAlignmentFromInt().

void LLVMSetSection ( LLVMValueRef  Global,
const char *  Section 
)

Definition at line 601 of file Core.cpp.

void LLVMSetTailCall ( LLVMValueRef  CallInst,
int  IsTailCall 
)

Definition at line 1016 of file Core.cpp.

void LLVMSetTarget ( LLVMModuleRef  M,
const char *  Triple 
)

Definition at line 65 of file Core.cpp.

void LLVMSetThreadLocal ( LLVMValueRef  GlobalVar,
int  IsThreadLocal 
)

Definition at line 684 of file Core.cpp.

void LLVMSetValueName ( LLVMValueRef  Val,
const char *  Name 
)

Definition at line 248 of file Core.cpp.

void LLVMSetVisibility ( LLVMValueRef  Global,
LLVMVisibility  Viz 
)

Definition at line 610 of file Core.cpp.

LLVMValueRef LLVMSizeOf ( LLVMTypeRef  Ty  ) 

Definition at line 359 of file Core.cpp.

LLVMTypeRef LLVMStructType ( LLVMTypeRef *  ElementTypes,
unsigned  ElementCount,
int  Packed 
)

Definition at line 153 of file Core.cpp.

References E.

LLVMTypeRef LLVMTypeOf ( LLVMValueRef  Val  ) 

Definition at line 240 of file Core.cpp.

References llvm::Intrinsic::getType().

LLVMBasicBlockRef LLVMValueAsBasicBlock ( LLVMValueRef  Val  ) 

Definition at line 860 of file Core.cpp.

int LLVMValueIsBasicBlock ( LLVMValueRef  Val  ) 

Definition at line 856 of file Core.cpp.

LLVMTypeRef LLVMVectorType ( LLVMTypeRef  ElementType,
unsigned  ElementCount 
)

Definition at line 188 of file Core.cpp.

LLVMTypeRef LLVMVoidType ( void   ) 

Definition at line 210 of file Core.cpp.

LLVMTypeRef LLVMX86FP80Type ( void   ) 

Definition at line 116 of file Core.cpp.