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 963 of file Core.cpp.

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

Definition at line 1308 of file Core.cpp.

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

LLVMValueRef LLVMConstAdd ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 992 of file Core.cpp.

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

Definition at line 1215 of file Core.cpp.

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

LLVMValueRef LLVMConstAnd ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1094 of file Core.cpp.

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

LLVMValueRef LLVMConstAShr ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1133 of file Core.cpp.

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

LLVMValueRef LLVMConstBitCast ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1210 of file Core.cpp.

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

LLVMValueRef LLVMConstExactSDiv ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1068 of file Core.cpp.

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

LLVMValueRef LLVMConstExtractElement ( LLVMValueRef  VectorConstant,
LLVMValueRef  IndexConstant 
)

Definition at line 1264 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 1009 of file Core.cpp.

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

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

Definition at line 1116 of file Core.cpp.

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

LLVMValueRef LLVMConstFDiv ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1074 of file Core.cpp.

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

LLVMValueRef LLVMConstFMul ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1053 of file Core.cpp.

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

Definition at line 984 of file Core.cpp.

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

LLVMValueRef LLVMConstFPCast ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1251 of file Core.cpp.

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

LLVMValueRef LLVMConstFPExt ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1175 of file Core.cpp.

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

LLVMValueRef LLVMConstFPToSI ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1195 of file Core.cpp.

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

LLVMValueRef LLVMConstFPToUI ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1190 of file Core.cpp.

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

LLVMValueRef LLVMConstFPTrunc ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1170 of file Core.cpp.

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

LLVMValueRef LLVMConstFRem ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1089 of file Core.cpp.

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

LLVMValueRef LLVMConstFSub ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1031 of file Core.cpp.

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

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

Definition at line 1138 of file Core.cpp.

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

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

Definition at line 1109 of file Core.cpp.

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

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

Definition at line 1146 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 1300 of file Core.cpp.

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

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

Definition at line 1270 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 1245 of file Core.cpp.

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

LLVMValueRef LLVMConstIntToPtr ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1205 of file Core.cpp.

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

LLVMValueRef LLVMConstLShr ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1128 of file Core.cpp.

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

LLVMValueRef LLVMConstMul ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1036 of file Core.cpp.

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

Definition at line 971 of file Core.cpp.

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

Definition at line 988 of file Core.cpp.

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

LLVMValueRef LLVMConstNSWAdd ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 997 of file Core.cpp.

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

LLVMValueRef LLVMConstNSWMul ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1041 of file Core.cpp.

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

Definition at line 975 of file Core.cpp.

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

LLVMValueRef LLVMConstNSWSub ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1019 of file Core.cpp.

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

LLVMValueRef LLVMConstNUWAdd ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1003 of file Core.cpp.

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

LLVMValueRef LLVMConstNUWMul ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1047 of file Core.cpp.

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

Definition at line 979 of file Core.cpp.

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

LLVMValueRef LLVMConstNUWSub ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1025 of file Core.cpp.

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

LLVMValueRef LLVMConstOr ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1099 of file Core.cpp.

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

Definition at line 1239 of file Core.cpp.

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

LLVMValueRef LLVMConstPtrToInt ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1200 of file Core.cpp.

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

LLVMValueRef LLVMConstSDiv ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1063 of file Core.cpp.

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

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

Definition at line 1256 of file Core.cpp.

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

LLVMValueRef LLVMConstSExt ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1160 of file Core.cpp.

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

Definition at line 1227 of file Core.cpp.

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

LLVMValueRef LLVMConstShl ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1123 of file Core.cpp.

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

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

Definition at line 1278 of file Core.cpp.

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

LLVMValueRef LLVMConstSIToFP ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1185 of file Core.cpp.

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

LLVMValueRef LLVMConstSRem ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1084 of file Core.cpp.

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

LLVMValueRef LLVMConstSub ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1014 of file Core.cpp.

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

LLVMValueRef LLVMConstTrunc ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1155 of file Core.cpp.

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

Definition at line 1233 of file Core.cpp.

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

LLVMValueRef LLVMConstUDiv ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1058 of file Core.cpp.

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

LLVMValueRef LLVMConstUIToFP ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1180 of file Core.cpp.

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

LLVMValueRef LLVMConstURem ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1079 of file Core.cpp.

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

LLVMValueRef LLVMConstXor ( LLVMValueRef  LHSConstant,
LLVMValueRef  RHSConstant 
)

Definition at line 1104 of file Core.cpp.

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

LLVMValueRef LLVMConstZExt ( LLVMValueRef  ConstantVal,
LLVMTypeRef  ToType 
)

Definition at line 1165 of file Core.cpp.

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

Definition at line 1221 of file Core.cpp.

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

Definition at line 959 of file Core.cpp.

References map_to_llvmopcode().

Definition at line 967 of file Core.cpp.

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