Lines Matching refs:ConstantVal

700 unsigned long long LLVMConstIntGetZExtValue(LLVMValueRef ConstantVal) {
701 return unwrap<ConstantInt>(ConstantVal)->getZExtValue();
704 long long LLVMConstIntGetSExtValue(LLVMValueRef ConstantVal) {
705 return unwrap<ConstantInt>(ConstantVal)->getSExtValue();
780 LLVMOpcode LLVMGetConstOpcode(LLVMValueRef ConstantVal) {
781 return map_to_llvmopcode(unwrap<ConstantExpr>(ConstantVal)->getOpcode());
792 LLVMValueRef LLVMConstNeg(LLVMValueRef ConstantVal) {
793 return wrap(ConstantExpr::getNeg(unwrap<Constant>(ConstantVal)));
796 LLVMValueRef LLVMConstNSWNeg(LLVMValueRef ConstantVal) {
797 return wrap(ConstantExpr::getNSWNeg(unwrap<Constant>(ConstantVal)));
800 LLVMValueRef LLVMConstNUWNeg(LLVMValueRef ConstantVal) {
801 return wrap(ConstantExpr::getNUWNeg(unwrap<Constant>(ConstantVal)));
805 LLVMValueRef LLVMConstFNeg(LLVMValueRef ConstantVal) {
806 return wrap(ConstantExpr::getFNeg(unwrap<Constant>(ConstantVal)));
809 LLVMValueRef LLVMConstNot(LLVMValueRef ConstantVal) {
810 return wrap(ConstantExpr::getNot(unwrap<Constant>(ConstantVal)));
959 LLVMValueRef LLVMConstGEP(LLVMValueRef ConstantVal,
963 return wrap(ConstantExpr::getGetElementPtr(unwrap<Constant>(ConstantVal),
967 LLVMValueRef LLVMConstInBoundsGEP(LLVMValueRef ConstantVal,
970 Constant* Val = unwrap<Constant>(ConstantVal);
976 LLVMValueRef LLVMConstTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType) {
977 return wrap(ConstantExpr::getTrunc(unwrap<Constant>(ConstantVal),
981 LLVMValueRef LLVMConstSExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType) {
982 return wrap(ConstantExpr::getSExt(unwrap<Constant>(ConstantVal),
986 LLVMValueRef LLVMConstZExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType) {
987 return wrap(ConstantExpr::getZExt(unwrap<Constant>(ConstantVal),
991 LLVMValueRef LLVMConstFPTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType) {
992 return wrap(ConstantExpr::getFPTrunc(unwrap<Constant>(ConstantVal),
996 LLVMValueRef LLVMConstFPExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType) {
997 return wrap(ConstantExpr::getFPExtend(unwrap<Constant>(ConstantVal),
1001 LLVMValueRef LLVMConstUIToFP(LLVMValueRef ConstantVal, LLVMTypeRef ToType) {
1002 return wrap(ConstantExpr::getUIToFP(unwrap<Constant>(ConstantVal),
1006 LLVMValueRef LLVMConstSIToFP(LLVMValueRef ConstantVal, LLVMTypeRef ToType) {
1007 return wrap(ConstantExpr::getSIToFP(unwrap<Constant>(ConstantVal),
1011 LLVMValueRef LLVMConstFPToUI(LLVMValueRef ConstantVal, LLVMTypeRef ToType) {
1012 return wrap(ConstantExpr::getFPToUI(unwrap<Constant>(ConstantVal),
1016 LLVMValueRef LLVMConstFPToSI(LLVMValueRef ConstantVal, LLVMTypeRef ToType) {
1017 return wrap(ConstantExpr::getFPToSI(unwrap<Constant>(ConstantVal),
1021 LLVMValueRef LLVMConstPtrToInt(LLVMValueRef ConstantVal, LLVMTypeRef ToType) {
1022 return wrap(ConstantExpr::getPtrToInt(unwrap<Constant>(ConstantVal),
1026 LLVMValueRef LLVMConstIntToPtr(LLVMValueRef ConstantVal, LLVMTypeRef ToType) {
1027 return wrap(ConstantExpr::getIntToPtr(unwrap<Constant>(ConstantVal),
1031 LLVMValueRef LLVMConstBitCast(LLVMValueRef ConstantVal, LLVMTypeRef ToType) {
1032 return wrap(ConstantExpr::getBitCast(unwrap<Constant>(ConstantVal),
1036 LLVMValueRef LLVMConstAddrSpaceCast(LLVMValueRef ConstantVal,
1038 return wrap(ConstantExpr::getAddrSpaceCast(unwrap<Constant>(ConstantVal),
1042 LLVMValueRef LLVMConstZExtOrBitCast(LLVMValueRef ConstantVal,
1044 return wrap(ConstantExpr::getZExtOrBitCast(unwrap<Constant>(ConstantVal),
1048 LLVMValueRef LLVMConstSExtOrBitCast(LLVMValueRef ConstantVal,
1050 return wrap(ConstantExpr::getSExtOrBitCast(unwrap<Constant>(ConstantVal),
1054 LLVMValueRef LLVMConstTruncOrBitCast(LLVMValueRef ConstantVal,
1056 return wrap(ConstantExpr::getTruncOrBitCast(unwrap<Constant>(ConstantVal),
1060 LLVMValueRef LLVMConstPointerCast(LLVMValueRef ConstantVal,
1062 return wrap(ConstantExpr::getPointerCast(unwrap<Constant>(ConstantVal),
1066 LLVMValueRef LLVMConstIntCast(LLVMValueRef ConstantVal, LLVMTypeRef ToType,
1068 return wrap(ConstantExpr::getIntegerCast(unwrap<Constant>(ConstantVal),
1072 LLVMValueRef LLVMConstFPCast(LLVMValueRef ConstantVal, LLVMTypeRef ToType) {
1073 return wrap(ConstantExpr::getFPCast(unwrap<Constant>(ConstantVal),
1346 void LLVMSetInitializer(LLVMValueRef GlobalVar, LLVMValueRef ConstantVal) {
1348 ->setInitializer(unwrap<Constant>(ConstantVal));