LLVM API Documentation

Functions
Constant Expressions
Constants
Collaboration diagram for Constant Expressions:

Functions

LLVMOpcode LLVMGetConstOpcode (LLVMValueRef ConstantVal)
LLVMValueRef LLVMAlignOf (LLVMTypeRef Ty)
LLVMValueRef LLVMSizeOf (LLVMTypeRef Ty)
LLVMValueRef LLVMConstNeg (LLVMValueRef ConstantVal)
LLVMValueRef LLVMConstNSWNeg (LLVMValueRef ConstantVal)
LLVMValueRef LLVMConstNUWNeg (LLVMValueRef ConstantVal)
LLVMValueRef LLVMConstFNeg (LLVMValueRef ConstantVal)
LLVMValueRef LLVMConstNot (LLVMValueRef ConstantVal)
LLVMValueRef LLVMConstAdd (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstNSWAdd (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstNUWAdd (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstFAdd (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstSub (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstNSWSub (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstNUWSub (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstFSub (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstMul (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstNSWMul (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstNUWMul (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstFMul (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstUDiv (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstSDiv (LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
LLVMValueRef LLVMConstExactSDiv (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 LLVMConstInBoundsGEP (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 LLVMConstAddrSpaceCast (LLVMValueRef ConstantVal, LLVMTypeRef ToType)
LLVMValueRef LLVMConstZExtOrBitCast (LLVMValueRef ConstantVal, LLVMTypeRef ToType)
LLVMValueRef LLVMConstSExtOrBitCast (LLVMValueRef ConstantVal, LLVMTypeRef ToType)
LLVMValueRef LLVMConstTruncOrBitCast (LLVMValueRef ConstantVal, LLVMTypeRef ToType)
LLVMValueRef LLVMConstPointerCast (LLVMValueRef ConstantVal, LLVMTypeRef ToType)
LLVMValueRef LLVMConstIntCast (LLVMValueRef ConstantVal, LLVMTypeRef ToType, LLVMBool isSigned)
LLVMValueRef LLVMConstFPCast (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, LLVMBool HasSideEffects, LLVMBool IsAlignStack)
LLVMValueRef LLVMBlockAddress (LLVMValueRef F, LLVMBasicBlockRef BB)

Detailed Description

Functions in this group correspond to APIs on llvm::ConstantExpr.

See also:
llvm::ConstantExpr.

Function Documentation

Definition at line 869 of file Core.cpp.

References llvm::ConstantExpr::getAlignOf(), llvm::unwrap(), and llvm::wrap().

Definition at line 1214 of file Core.cpp.

References llvm::BlockAddress::get(), llvm::unwrap(), and llvm::wrap().

LLVMValueRef LLVMConstAdd ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 898 of file Core.cpp.

References llvm::ConstantExpr::getAdd(), and llvm::wrap().

Definition at line 1121 of file Core.cpp.

References llvm::ConstantExpr::getAddrSpaceCast(), llvm::unwrap(), and llvm::wrap().

LLVMValueRef LLVMConstAnd ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1000 of file Core.cpp.

References llvm::ConstantExpr::getAnd(), and llvm::wrap().

LLVMValueRef LLVMConstAShr ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1039 of file Core.cpp.

References llvm::ConstantExpr::getAShr(), and llvm::wrap().

LLVMValueRef LLVMConstBitCast ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1116 of file Core.cpp.

References llvm::ConstantExpr::getBitCast(), llvm::unwrap(), and llvm::wrap().

LLVMValueRef LLVMConstExactSDiv ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 974 of file Core.cpp.

References llvm::ConstantExpr::getExactSDiv(), and llvm::wrap().

LLVMValueRef LLVMConstExtractElement ( LLVMValueRef  VectorConstant,
LLVMValueRef  IndexConstant 
)

Definition at line 1170 of file Core.cpp.

References llvm::ConstantExpr::getExtractElement(), and llvm::wrap().

LLVMValueRef LLVMConstExtractValue ( LLVMValueRef  AggConstant,
unsigned IdxList,
unsigned  NumIdx 
)
LLVMValueRef LLVMConstFAdd ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 915 of file Core.cpp.

References llvm::ConstantExpr::getFAdd(), and llvm::wrap().

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

Definition at line 1022 of file Core.cpp.

References llvm::ConstantExpr::getFCmp(), and llvm::wrap().

LLVMValueRef LLVMConstFDiv ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 980 of file Core.cpp.

References llvm::ConstantExpr::getFDiv(), and llvm::wrap().

LLVMValueRef LLVMConstFMul ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 959 of file Core.cpp.

References llvm::ConstantExpr::getFMul(), and llvm::wrap().

Definition at line 890 of file Core.cpp.

References llvm::ConstantExpr::getFNeg(), and llvm::wrap().

LLVMValueRef LLVMConstFPCast ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1157 of file Core.cpp.

References llvm::ConstantExpr::getFPCast(), llvm::unwrap(), and llvm::wrap().

LLVMValueRef LLVMConstFPExt ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1081 of file Core.cpp.

References llvm::ConstantExpr::getFPExtend(), llvm::unwrap(), and llvm::wrap().

LLVMValueRef LLVMConstFPToSI ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1101 of file Core.cpp.

References llvm::ConstantExpr::getFPToSI(), llvm::unwrap(), and llvm::wrap().

LLVMValueRef LLVMConstFPToUI ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1096 of file Core.cpp.

References llvm::ConstantExpr::getFPToUI(), llvm::unwrap(), and llvm::wrap().

LLVMValueRef LLVMConstFPTrunc ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1076 of file Core.cpp.

References llvm::ConstantExpr::getFPTrunc(), llvm::unwrap(), and llvm::wrap().

LLVMValueRef LLVMConstFRem ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 995 of file Core.cpp.

References llvm::ConstantExpr::getFRem(), and llvm::wrap().

LLVMValueRef LLVMConstFSub ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 937 of file Core.cpp.

References llvm::ConstantExpr::getFSub(), and llvm::wrap().

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

Definition at line 1044 of file Core.cpp.

References llvm::ConstantExpr::getGetElementPtr(), and llvm::wrap().

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

Definition at line 1015 of file Core.cpp.

References llvm::ConstantExpr::getICmp(), and llvm::wrap().

LLVMValueRef LLVMConstInBoundsGEP ( LLVMValueRef  ConstantVal,
LLVMValueRef ConstantIndices,
unsigned  NumIndices 
)

Definition at line 1052 of file Core.cpp.

References llvm::ConstantExpr::getInBoundsGetElementPtr(), and llvm::wrap().

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

Definition at line 1206 of file Core.cpp.

References llvm::InlineAsm::get(), llvm::unwrap(), and llvm::wrap().

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

Definition at line 1176 of file Core.cpp.

References llvm::ConstantExpr::getInsertElement(), and llvm::wrap().

LLVMValueRef LLVMConstInsertValue ( LLVMValueRef  AggConstant,
LLVMValueRef  ElementValueConstant,
unsigned IdxList,
unsigned  NumIdx 
)
LLVMValueRef LLVMConstIntCast ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType,
LLVMBool  isSigned 
)

Definition at line 1151 of file Core.cpp.

References llvm::ConstantExpr::getIntegerCast(), llvm::unwrap(), and llvm::wrap().

LLVMValueRef LLVMConstIntToPtr ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1111 of file Core.cpp.

References llvm::ConstantExpr::getIntToPtr(), llvm::unwrap(), and llvm::wrap().

LLVMValueRef LLVMConstLShr ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1034 of file Core.cpp.

References llvm::ConstantExpr::getLShr(), and llvm::wrap().

LLVMValueRef LLVMConstMul ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 942 of file Core.cpp.

References llvm::ConstantExpr::getMul(), and llvm::wrap().

Definition at line 877 of file Core.cpp.

References llvm::ConstantExpr::getNeg(), and llvm::wrap().

Definition at line 894 of file Core.cpp.

References llvm::ConstantExpr::getNot(), and llvm::wrap().

LLVMValueRef LLVMConstNSWAdd ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 903 of file Core.cpp.

References llvm::ConstantExpr::getNSWAdd(), and llvm::wrap().

LLVMValueRef LLVMConstNSWMul ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 947 of file Core.cpp.

References llvm::ConstantExpr::getNSWMul(), and llvm::wrap().

Definition at line 881 of file Core.cpp.

References llvm::ConstantExpr::getNSWNeg(), and llvm::wrap().

LLVMValueRef LLVMConstNSWSub ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 925 of file Core.cpp.

References llvm::ConstantExpr::getNSWSub(), and llvm::wrap().

LLVMValueRef LLVMConstNUWAdd ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 909 of file Core.cpp.

References llvm::ConstantExpr::getNUWAdd(), and llvm::wrap().

LLVMValueRef LLVMConstNUWMul ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 953 of file Core.cpp.

References llvm::ConstantExpr::getNUWMul(), and llvm::wrap().

Definition at line 885 of file Core.cpp.

References llvm::ConstantExpr::getNUWNeg(), and llvm::wrap().

LLVMValueRef LLVMConstNUWSub ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 931 of file Core.cpp.

References llvm::ConstantExpr::getNUWSub(), and llvm::wrap().

LLVMValueRef LLVMConstOr ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1005 of file Core.cpp.

References llvm::ConstantExpr::getOr(), and llvm::wrap().

Definition at line 1145 of file Core.cpp.

References llvm::ConstantExpr::getPointerCast(), llvm::unwrap(), and llvm::wrap().

LLVMValueRef LLVMConstPtrToInt ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1106 of file Core.cpp.

References llvm::ConstantExpr::getPtrToInt(), llvm::unwrap(), and llvm::wrap().

LLVMValueRef LLVMConstSDiv ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 969 of file Core.cpp.

References llvm::ConstantExpr::getSDiv(), and llvm::wrap().

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

Definition at line 1162 of file Core.cpp.

References llvm::ConstantExpr::getSelect(), and llvm::wrap().

LLVMValueRef LLVMConstSExt ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1066 of file Core.cpp.

References llvm::ConstantExpr::getSExt(), llvm::unwrap(), and llvm::wrap().

Definition at line 1133 of file Core.cpp.

References llvm::ConstantExpr::getSExtOrBitCast(), llvm::unwrap(), and llvm::wrap().

LLVMValueRef LLVMConstShl ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1029 of file Core.cpp.

References llvm::ConstantExpr::getShl(), and llvm::wrap().

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

Definition at line 1184 of file Core.cpp.

References llvm::ConstantExpr::getShuffleVector(), and llvm::wrap().

LLVMValueRef LLVMConstSIToFP ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1091 of file Core.cpp.

References llvm::ConstantExpr::getSIToFP(), llvm::unwrap(), and llvm::wrap().

LLVMValueRef LLVMConstSRem ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 990 of file Core.cpp.

References llvm::ConstantExpr::getSRem(), and llvm::wrap().

LLVMValueRef LLVMConstSub ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 920 of file Core.cpp.

References llvm::ConstantExpr::getSub(), and llvm::wrap().

LLVMValueRef LLVMConstTrunc ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1061 of file Core.cpp.

References llvm::ConstantExpr::getTrunc(), llvm::unwrap(), and llvm::wrap().

Definition at line 1139 of file Core.cpp.

References llvm::ConstantExpr::getTruncOrBitCast(), llvm::unwrap(), and llvm::wrap().

LLVMValueRef LLVMConstUDiv ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 964 of file Core.cpp.

References llvm::ConstantExpr::getUDiv(), and llvm::wrap().

LLVMValueRef LLVMConstUIToFP ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1086 of file Core.cpp.

References llvm::ConstantExpr::getUIToFP(), llvm::unwrap(), and llvm::wrap().

LLVMValueRef LLVMConstURem ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 985 of file Core.cpp.

References llvm::ConstantExpr::getURem(), and llvm::wrap().

LLVMValueRef LLVMConstXor ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1010 of file Core.cpp.

References llvm::ConstantExpr::getXor(), and llvm::wrap().

LLVMValueRef LLVMConstZExt ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1071 of file Core.cpp.

References llvm::ConstantExpr::getZExt(), llvm::unwrap(), and llvm::wrap().

Definition at line 1127 of file Core.cpp.

References llvm::ConstantExpr::getZExtOrBitCast(), llvm::unwrap(), and llvm::wrap().

Definition at line 865 of file Core.cpp.

References map_to_llvmopcode().

Definition at line 873 of file Core.cpp.

References llvm::ConstantExpr::getSizeOf(), llvm::unwrap(), and llvm::wrap().