Lines Matching refs:GenVal
43 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfInt() local
44 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned); in LLVMCreateGenericValueOfInt()
45 return wrap(GenVal); in LLVMCreateGenericValueOfInt()
49 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfPointer() local
50 GenVal->PointerVal = P; in LLVMCreateGenericValueOfPointer()
51 return wrap(GenVal); in LLVMCreateGenericValueOfPointer()
55 GenericValue *GenVal = new GenericValue(); in LLVMCreateGenericValueOfFloat() local
58 GenVal->FloatVal = N; in LLVMCreateGenericValueOfFloat()
61 GenVal->DoubleVal = N; in LLVMCreateGenericValueOfFloat()
66 return wrap(GenVal); in LLVMCreateGenericValueOfFloat()
75 GenericValue *GenVal = unwrap(GenValRef); in LLVMGenericValueToInt() local
77 return GenVal->IntVal.getSExtValue(); in LLVMGenericValueToInt()
79 return GenVal->IntVal.getZExtValue(); in LLVMGenericValueToInt()
82 void *LLVMGenericValueToPointer(LLVMGenericValueRef GenVal) { in LLVMGenericValueToPointer() argument
83 return unwrap(GenVal)->PointerVal; in LLVMGenericValueToPointer()
86 double LLVMGenericValueToFloat(LLVMTypeRef TyRef, LLVMGenericValueRef GenVal) { in LLVMGenericValueToFloat() argument
89 return unwrap(GenVal)->FloatVal; in LLVMGenericValueToFloat()
91 return unwrap(GenVal)->DoubleVal; in LLVMGenericValueToFloat()
97 void LLVMDisposeGenericValue(LLVMGenericValueRef GenVal) { in LLVMDisposeGenericValue() argument
98 delete unwrap(GenVal); in LLVMDisposeGenericValue()